Skip to content

/AWS1/CL_APC=>UPDATEEXTENSION()

About UpdateExtension

Updates an AppConfig extension. For more information about extensions, see Extending workflows in the AppConfig User Guide.

Method Signature

IMPORTING

Required arguments:

iv_extensionidentifier TYPE /AWS1/APCIDENTIFIER /AWS1/APCIDENTIFIER

The name, the ID, or the Amazon Resource Name (ARN) of the extension.

Optional arguments:

iv_description TYPE /AWS1/APCDESCRIPTION /AWS1/APCDESCRIPTION

Information about the extension.

it_actions TYPE /AWS1/CL_APCACTION=>TT_ACTIONSMAP TT_ACTIONSMAP

The actions defined in the extension.

it_parameters TYPE /AWS1/CL_APCPARAMETER=>TT_PARAMETERMAP TT_PARAMETERMAP

One or more parameters for the actions called by the extension.

iv_versionnumber TYPE /AWS1/APCINTEGER /AWS1/APCINTEGER

The extension version number.

RETURNING

oo_output TYPE REF TO /aws1/cl_apcextension /AWS1/CL_APCEXTENSION

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->/aws1/if_apc~updateextension(
  it_actions = VALUE /aws1/cl_apcaction=>tt_actionsmap(
    (
      VALUE /aws1/cl_apcaction=>ts_actionsmap_maprow(
        value = VALUE /aws1/cl_apcaction=>tt_actionlist(
          (
            new /aws1/cl_apcaction(
              iv_description = |string|
              iv_name = |string|
              iv_rolearn = |string|
              iv_uri = |string|
            )
          )
        )
        key = |string|
      )
    )
  )
  it_parameters = VALUE /aws1/cl_apcparameter=>tt_parametermap(
    (
      VALUE /aws1/cl_apcparameter=>ts_parametermap_maprow(
        key = |string|
        value = new /aws1/cl_apcparameter(
          iv_description = |string|
          iv_dynamic = ABAP_TRUE
          iv_required = ABAP_TRUE
        )
      )
    )
  )
  iv_description = |string|
  iv_extensionidentifier = |string|
  iv_versionnumber = 123
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_id = lo_result->get_id( ).
  lv_name = lo_result->get_name( ).
  lv_integer = lo_result->get_versionnumber( ).
  lv_arn = lo_result->get_arn( ).
  lv_description = lo_result->get_description( ).
  LOOP AT lo_result->get_actions( ) into ls_row.
    lv_key = ls_row-key.
    LOOP AT ls_row-value into lo_row_1.
      lo_row_2 = lo_row_1.
      IF lo_row_2 IS NOT INITIAL.
        lv_name = lo_row_2->get_name( ).
        lv_description = lo_row_2->get_description( ).
        lv_uri = lo_row_2->get_uri( ).
        lv_arn = lo_row_2->get_rolearn( ).
      ENDIF.
    ENDLOOP.
  ENDLOOP.
  LOOP AT lo_result->get_parameters( ) into ls_row_3.
    lv_key_1 = ls_row_3-key.
    lo_value = ls_row_3-value.
    IF lo_value IS NOT INITIAL.
      lv_description = lo_value->get_description( ).
      lv_boolean = lo_value->get_required( ).
      lv_boolean = lo_value->get_dynamic( ).
    ENDIF.
  ENDLOOP.
ENDIF.