/AWS1/IF_LIC=>CREATEGRANTVERSION()¶
About CreateGrantVersion¶
Creates a new version of the specified grant. For more information, see Granted licenses in License Manager in the License Manager User Guide.
Method Signature¶
METHODS /AWS1/IF_LIC~CREATEGRANTVERSION
IMPORTING
!IV_CLIENTTOKEN TYPE /AWS1/LICCLIENTTOKEN OPTIONAL
!IV_GRANTARN TYPE /AWS1/LICARN OPTIONAL
!IV_GRANTNAME TYPE /AWS1/LICSTRING OPTIONAL
!IT_ALLOWEDOPERATIONS TYPE /AWS1/CL_LICALLOWEDOPLIST_W=>TT_ALLOWEDOPERATIONLIST OPTIONAL
!IV_STATUS TYPE /AWS1/LICGRANTSTATUS OPTIONAL
!IV_STATUSREASON TYPE /AWS1/LICSTATUSREASONMESSAGE OPTIONAL
!IV_SOURCEVERSION TYPE /AWS1/LICSTRING OPTIONAL
!IO_OPTIONS TYPE REF TO /AWS1/CL_LICOPTIONS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_liccreategrantvrsrsp
RAISING
/AWS1/CX_LICACCESSDENIEDEX
/AWS1/CX_LICAUTHEXCEPTION
/AWS1/CX_LICINVPARAMVALUEEX
/AWS1/CX_LICRLIMEXCEEDEDEX
/AWS1/CX_LICRESRCLIMITEXCDEX
/AWS1/CX_LICSERVERINTERNALEX
/AWS1/CX_LICVALIDATIONEX
/AWS1/CX_LICCLIENTEXC
/AWS1/CX_LICSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_clienttoken TYPE /AWS1/LICCLIENTTOKEN /AWS1/LICCLIENTTOKEN¶
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
iv_grantarn TYPE /AWS1/LICARN /AWS1/LICARN¶
Amazon Resource Name (ARN) of the grant.
Optional arguments:¶
iv_grantname TYPE /AWS1/LICSTRING /AWS1/LICSTRING¶
Grant name.
it_allowedoperations TYPE /AWS1/CL_LICALLOWEDOPLIST_W=>TT_ALLOWEDOPERATIONLIST TT_ALLOWEDOPERATIONLIST¶
Allowed operations for the grant.
iv_status TYPE /AWS1/LICGRANTSTATUS /AWS1/LICGRANTSTATUS¶
Grant status.
iv_statusreason TYPE /AWS1/LICSTATUSREASONMESSAGE /AWS1/LICSTATUSREASONMESSAGE¶
Grant status reason.
iv_sourceversion TYPE /AWS1/LICSTRING /AWS1/LICSTRING¶
Current version of the grant.
io_options TYPE REF TO /AWS1/CL_LICOPTIONS /AWS1/CL_LICOPTIONS¶
The options specified for the grant.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_liccreategrantvrsrsp /AWS1/CL_LICCREATEGRANTVRSRSP¶
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->creategrantversion(
io_options = new /aws1/cl_licoptions( |string| )
it_allowedoperations = VALUE /aws1/cl_licallowedoplist_w=>tt_allowedoperationlist(
( new /aws1/cl_licallowedoplist_w( |string| ) )
)
iv_clienttoken = |string|
iv_grantarn = |string|
iv_grantname = |string|
iv_sourceversion = |string|
iv_status = |string|
iv_statusreason = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_arn = lo_result->get_grantarn( ).
lv_grantstatus = lo_result->get_status( ).
lv_string = lo_result->get_version( ).
ENDIF.