Skip to content

/AWS1/IF_LIC=>UPDATELICENSECONFIGURATION()

About UpdateLicenseConfiguration

Modifies the attributes of an existing license configuration.

Method Signature

METHODS /AWS1/IF_LIC~UPDATELICENSECONFIGURATION
  IMPORTING
    !IV_LICENSECONFIGURATIONARN TYPE /AWS1/LICSTRING OPTIONAL
    !IV_LICENSECONFSTATUS TYPE /AWS1/LICLICENSECONFSTATUS OPTIONAL
    !IT_LICENSERULES TYPE /AWS1/CL_LICSTRINGLIST_W=>TT_STRINGLIST OPTIONAL
    !IV_LICENSECOUNT TYPE /AWS1/LICBOXLONG OPTIONAL
    !IV_LICENSECOUNTHARDLIMIT TYPE /AWS1/LICBOXBOOLEAN OPTIONAL
    !IV_NAME TYPE /AWS1/LICSTRING OPTIONAL
    !IV_DESCRIPTION TYPE /AWS1/LICSTRING OPTIONAL
    !IT_PRODUCTINFORMATIONLIST TYPE /AWS1/CL_LICPRODUCTINFORMATION=>TT_PRODUCTINFORMATIONLIST OPTIONAL
    !IV_DISASSOCIATEWHENNOTFOUND TYPE /AWS1/LICBOXBOOLEAN OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_licupdlicenseconfrsp
  RAISING
    /AWS1/CX_LICACCESSDENIEDEX
    /AWS1/CX_LICAUTHEXCEPTION
    /AWS1/CX_LICCONFLICTEXCEPTION
    /AWS1/CX_LICINVPARAMVALUEEX
    /AWS1/CX_LICRLIMEXCEEDEDEX
    /AWS1/CX_LICRESRCLIMITEXCDEX
    /AWS1/CX_LICSERVERINTERNALEX
    /AWS1/CX_LICCLIENTEXC
    /AWS1/CX_LICSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_licenseconfigurationarn TYPE /AWS1/LICSTRING /AWS1/LICSTRING

Amazon Resource Name (ARN) of the license configuration.

Optional arguments:

iv_licenseconfstatus TYPE /AWS1/LICLICENSECONFSTATUS /AWS1/LICLICENSECONFSTATUS

New status of the license configuration.

it_licenserules TYPE /AWS1/CL_LICSTRINGLIST_W=>TT_STRINGLIST TT_STRINGLIST

New license rule. The only rule that you can add after you create a license configuration is licenseAffinityToHost.

iv_licensecount TYPE /AWS1/LICBOXLONG /AWS1/LICBOXLONG

New number of licenses managed by the license configuration.

iv_licensecounthardlimit TYPE /AWS1/LICBOXBOOLEAN /AWS1/LICBOXBOOLEAN

New hard limit of the number of available licenses.

iv_name TYPE /AWS1/LICSTRING /AWS1/LICSTRING

New name of the license configuration.

iv_description TYPE /AWS1/LICSTRING /AWS1/LICSTRING

New description of the license configuration.

it_productinformationlist TYPE /AWS1/CL_LICPRODUCTINFORMATION=>TT_PRODUCTINFORMATIONLIST TT_PRODUCTINFORMATIONLIST

New product information.

iv_disassociatewhennotfound TYPE /AWS1/LICBOXBOOLEAN /AWS1/LICBOXBOOLEAN

When true, disassociates a resource when software is uninstalled.

RETURNING

oo_output TYPE REF TO /aws1/cl_licupdlicenseconfrsp /AWS1/CL_LICUPDLICENSECONFRSP

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->updatelicenseconfiguration(
  it_licenserules = VALUE /aws1/cl_licstringlist_w=>tt_stringlist(
    ( new /aws1/cl_licstringlist_w( |string| ) )
  )
  it_productinformationlist = VALUE /aws1/cl_licproductinformation=>tt_productinformationlist(
    (
      new /aws1/cl_licproductinformation(
        it_productinfmtionfiltlist = VALUE /aws1/cl_licproductinfmtionf00=>tt_productinformationfiltlist(
          (
            new /aws1/cl_licproductinfmtionf00(
              it_productinfmtionfiltvalue = VALUE /aws1/cl_licstringlist_w=>tt_stringlist(
                ( new /aws1/cl_licstringlist_w( |string| ) )
              )
              iv_productinfmtionfiltcomp00 = |string|
              iv_productinfmtionfiltname = |string|
            )
          )
        )
        iv_resourcetype = |string|
      )
    )
  )
  iv_description = |string|
  iv_disassociatewhennotfound = ABAP_TRUE
  iv_licenseconfigurationarn = |string|
  iv_licenseconfstatus = |string|
  iv_licensecount = 123
  iv_licensecounthardlimit = ABAP_TRUE
  iv_name = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.