/AWS1/IF_LIC=>CHECKOUTLICENSE()¶
About CheckoutLicense¶
Checks out the specified license.
If the account that created the license is the same that is performing the check out, you must specify the account as the beneficiary.
Method Signature¶
METHODS /AWS1/IF_LIC~CHECKOUTLICENSE
IMPORTING
!IV_PRODUCTSKU TYPE /AWS1/LICSTRING OPTIONAL
!IV_CHECKOUTTYPE TYPE /AWS1/LICCHECKOUTTYPE OPTIONAL
!IV_KEYFINGERPRINT TYPE /AWS1/LICSTRING OPTIONAL
!IT_ENTITLEMENTS TYPE /AWS1/CL_LICENTITLEMENTDATA=>TT_ENTITLEMENTDATALIST OPTIONAL
!IV_CLIENTTOKEN TYPE /AWS1/LICCLIENTTOKEN OPTIONAL
!IV_BENEFICIARY TYPE /AWS1/LICSTRING OPTIONAL
!IV_NODEID TYPE /AWS1/LICSTRING OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_liccheckoutlicensersp
RAISING
/AWS1/CX_LICACCESSDENIEDEX
/AWS1/CX_LICAUTHEXCEPTION
/AWS1/CX_LICINVPARAMVALUEEX
/AWS1/CX_LICNOENTITLEMENTSAL00
/AWS1/CX_LICRLIMEXCEEDEDEX
/AWS1/CX_LICREDIRECTEXCEPTION
/AWS1/CX_LICRESOURCENOTFOUNDEX
/AWS1/CX_LICSERVERINTERNALEX
/AWS1/CX_LICUNSUPPEDDIGITALS00
/AWS1/CX_LICVALIDATIONEX
/AWS1/CX_LICCLIENTEXC
/AWS1/CX_LICSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_productsku TYPE /AWS1/LICSTRING /AWS1/LICSTRING¶
Product SKU.
iv_checkouttype TYPE /AWS1/LICCHECKOUTTYPE /AWS1/LICCHECKOUTTYPE¶
Checkout type.
iv_keyfingerprint TYPE /AWS1/LICSTRING /AWS1/LICSTRING¶
Key fingerprint identifying the license.
it_entitlements TYPE /AWS1/CL_LICENTITLEMENTDATA=>TT_ENTITLEMENTDATALIST TT_ENTITLEMENTDATALIST¶
License entitlements.
iv_clienttoken TYPE /AWS1/LICCLIENTTOKEN /AWS1/LICCLIENTTOKEN¶
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
Optional arguments:¶
iv_beneficiary TYPE /AWS1/LICSTRING /AWS1/LICSTRING¶
License beneficiary.
iv_nodeid TYPE /AWS1/LICSTRING /AWS1/LICSTRING¶
Node ID.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_liccheckoutlicensersp /AWS1/CL_LICCHECKOUTLICENSERSP¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->checkoutlicense(
it_entitlements = VALUE /aws1/cl_licentitlementdata=>tt_entitlementdatalist(
(
new /aws1/cl_licentitlementdata(
iv_name = |string|
iv_unit = |string|
iv_value = |string|
)
)
)
iv_beneficiary = |string|
iv_checkouttype = |string|
iv_clienttoken = |string|
iv_keyfingerprint = |string|
iv_nodeid = |string|
iv_productsku = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_checkouttype = lo_result->get_checkouttype( ).
lv_string = lo_result->get_licenseconsumptiontoken( ).
LOOP AT lo_result->get_entitlementsallowed( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_string = lo_row_1->get_name( ).
lv_string = lo_row_1->get_value( ).
lv_entitlementdataunit = lo_row_1->get_unit( ).
ENDIF.
ENDLOOP.
lv_signedtoken = lo_result->get_signedtoken( ).
lv_string = lo_result->get_nodeid( ).
lv_iso8601datetime = lo_result->get_issuedat( ).
lv_iso8601datetime = lo_result->get_expiration( ).
lv_string = lo_result->get_licensearn( ).
ENDIF.