Skip to content

/AWS1/IF_LIC=>CREATELICENSEASSETRULESET()

About CreateLicenseAssetRuleset

Creates a license asset ruleset.

Method Signature

METHODS /AWS1/IF_LIC~CREATELICENSEASSETRULESET
  IMPORTING
    !IV_NAME TYPE /AWS1/LICLICENSEASSETRESNAME OPTIONAL
    !IV_DESCRIPTION TYPE /AWS1/LICLICENSEASSETRESDESC OPTIONAL
    !IT_RULES TYPE /AWS1/CL_LICLICENSEASSETRULE=>TT_LICENSEASSETRULELIST OPTIONAL
    !IT_TAGS TYPE /AWS1/CL_LICTAG=>TT_TAGLIST OPTIONAL
    !IV_CLIENTTOKEN TYPE /AWS1/LICSTRING OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_liccrelicenseastrls01
  RAISING
    /AWS1/CX_LICACCESSDENIEDEX
    /AWS1/CX_LICAUTHEXCEPTION
    /AWS1/CX_LICINVPARAMVALUEEX
    /AWS1/CX_LICRLIMEXCEEDEDEX
    /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_name TYPE /AWS1/LICLICENSEASSETRESNAME /AWS1/LICLICENSEASSETRESNAME

License asset ruleset name.

it_rules TYPE /AWS1/CL_LICLICENSEASSETRULE=>TT_LICENSEASSETRULELIST TT_LICENSEASSETRULELIST

License asset rules.

iv_clienttoken TYPE /AWS1/LICSTRING /AWS1/LICSTRING

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

Optional arguments:

iv_description TYPE /AWS1/LICLICENSEASSETRESDESC /AWS1/LICLICENSEASSETRESDESC

License asset ruleset description.

it_tags TYPE /AWS1/CL_LICTAG=>TT_TAGLIST TT_TAGLIST

Tags to add to the license asset ruleset.

RETURNING

oo_output TYPE REF TO /aws1/cl_liccrelicenseastrls01 /AWS1/CL_LICCRELICENSEASTRLS01

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->createlicenseassetruleset(
  it_rules = VALUE /aws1/cl_liclicenseassetrule=>tt_licenseassetrulelist(
    (
      new /aws1/cl_liclicenseassetrule(
        io_rulestatement = new /aws1/cl_licrulestatement(
          io_instancerulestatement = new /aws1/cl_licinstancerulestmt(
            io_andrulestatement = new /aws1/cl_licandrulestatement(
              it_matchingrulestatements = VALUE /aws1/cl_licmatchingrulestmt=>tt_matchingrulestatementlist(
                (
                  new /aws1/cl_licmatchingrulestmt(
                    it_valuetomatch = VALUE /aws1/cl_licstringlist_w=>tt_stringlist(
                      ( new /aws1/cl_licstringlist_w( |string| ) )
                    )
                    iv_constraint = |string|
                    iv_keytomatch = |string|
                  )
                )
              )
              it_scriptrulestatements = VALUE /aws1/cl_licscriptrulestmt=>tt_scriptrulestatementlist(
                (
                  new /aws1/cl_licscriptrulestmt(
                    iv_keytomatch = |string|
                    iv_script = |string|
                  )
                )
              )
            )
            io_matchingrulestatement = new /aws1/cl_licmatchingrulestmt(
              it_valuetomatch = VALUE /aws1/cl_licstringlist_w=>tt_stringlist(
                ( new /aws1/cl_licstringlist_w( |string| ) )
              )
              iv_constraint = |string|
              iv_keytomatch = |string|
            )
            io_orrulestatement = new /aws1/cl_licorrulestatement(
              it_matchingrulestatements = VALUE /aws1/cl_licmatchingrulestmt=>tt_matchingrulestatementlist(
                (
                  new /aws1/cl_licmatchingrulestmt(
                    it_valuetomatch = VALUE /aws1/cl_licstringlist_w=>tt_stringlist(
                      ( new /aws1/cl_licstringlist_w( |string| ) )
                    )
                    iv_constraint = |string|
                    iv_keytomatch = |string|
                  )
                )
              )
              it_scriptrulestatements = VALUE /aws1/cl_licscriptrulestmt=>tt_scriptrulestatementlist(
                (
                  new /aws1/cl_licscriptrulestmt(
                    iv_keytomatch = |string|
                    iv_script = |string|
                  )
                )
              )
            )
            io_scriptrulestatement = new /aws1/cl_licscriptrulestmt(
              iv_keytomatch = |string|
              iv_script = |string|
            )
          )
          io_licenseconfrulestatement = new /aws1/cl_liclicenseconfrlstmt(
            io_andrulestatement = new /aws1/cl_licandrulestatement(
              it_matchingrulestatements = VALUE /aws1/cl_licmatchingrulestmt=>tt_matchingrulestatementlist(
                (
                  new /aws1/cl_licmatchingrulestmt(
                    it_valuetomatch = VALUE /aws1/cl_licstringlist_w=>tt_stringlist(
                      ( new /aws1/cl_licstringlist_w( |string| ) )
                    )
                    iv_constraint = |string|
                    iv_keytomatch = |string|
                  )
                )
              )
              it_scriptrulestatements = VALUE /aws1/cl_licscriptrulestmt=>tt_scriptrulestatementlist(
                (
                  new /aws1/cl_licscriptrulestmt(
                    iv_keytomatch = |string|
                    iv_script = |string|
                  )
                )
              )
            )
            io_matchingrulestatement = new /aws1/cl_licmatchingrulestmt(
              it_valuetomatch = VALUE /aws1/cl_licstringlist_w=>tt_stringlist(
                ( new /aws1/cl_licstringlist_w( |string| ) )
              )
              iv_constraint = |string|
              iv_keytomatch = |string|
            )
            io_orrulestatement = new /aws1/cl_licorrulestatement(
              it_matchingrulestatements = VALUE /aws1/cl_licmatchingrulestmt=>tt_matchingrulestatementlist(
                (
                  new /aws1/cl_licmatchingrulestmt(
                    it_valuetomatch = VALUE /aws1/cl_licstringlist_w=>tt_stringlist(
                      ( new /aws1/cl_licstringlist_w( |string| ) )
                    )
                    iv_constraint = |string|
                    iv_keytomatch = |string|
                  )
                )
              )
              it_scriptrulestatements = VALUE /aws1/cl_licscriptrulestmt=>tt_scriptrulestatementlist(
                (
                  new /aws1/cl_licscriptrulestmt(
                    iv_keytomatch = |string|
                    iv_script = |string|
                  )
                )
              )
            )
          )
          io_licenserulestatement = new /aws1/cl_liclicenserulestmt(
            io_andrulestatement = new /aws1/cl_licandrulestatement(
              it_matchingrulestatements = VALUE /aws1/cl_licmatchingrulestmt=>tt_matchingrulestatementlist(
                (
                  new /aws1/cl_licmatchingrulestmt(
                    it_valuetomatch = VALUE /aws1/cl_licstringlist_w=>tt_stringlist(
                      ( new /aws1/cl_licstringlist_w( |string| ) )
                    )
                    iv_constraint = |string|
                    iv_keytomatch = |string|
                  )
                )
              )
              it_scriptrulestatements = VALUE /aws1/cl_licscriptrulestmt=>tt_scriptrulestatementlist(
                (
                  new /aws1/cl_licscriptrulestmt(
                    iv_keytomatch = |string|
                    iv_script = |string|
                  )
                )
              )
            )
            io_matchingrulestatement = new /aws1/cl_licmatchingrulestmt(
              it_valuetomatch = VALUE /aws1/cl_licstringlist_w=>tt_stringlist(
                ( new /aws1/cl_licstringlist_w( |string| ) )
              )
              iv_constraint = |string|
              iv_keytomatch = |string|
            )
            io_orrulestatement = new /aws1/cl_licorrulestatement(
              it_matchingrulestatements = VALUE /aws1/cl_licmatchingrulestmt=>tt_matchingrulestatementlist(
                (
                  new /aws1/cl_licmatchingrulestmt(
                    it_valuetomatch = VALUE /aws1/cl_licstringlist_w=>tt_stringlist(
                      ( new /aws1/cl_licstringlist_w( |string| ) )
                    )
                    iv_constraint = |string|
                    iv_keytomatch = |string|
                  )
                )
              )
              it_scriptrulestatements = VALUE /aws1/cl_licscriptrulestmt=>tt_scriptrulestatementlist(
                (
                  new /aws1/cl_licscriptrulestmt(
                    iv_keytomatch = |string|
                    iv_script = |string|
                  )
                )
              )
            )
          )
        )
      )
    )
  )
  it_tags = VALUE /aws1/cl_lictag=>tt_taglist(
    (
      new /aws1/cl_lictag(
        iv_key = |string|
        iv_value = |string|
      )
    )
  )
  iv_clienttoken = |string|
  iv_description = |string|
  iv_name = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_string = lo_result->get_licenseassetrulesetarn( ).
ENDIF.