Skip to content

/AWS1/CL_IOG=>GETSYSTEMTEMPLATE()

About GetSystemTemplate

Gets a system.

Method Signature

IMPORTING

Required arguments:

iv_id TYPE /AWS1/IOGURN /AWS1/IOGURN

The ID of the system to get. This ID must be in the user's namespace.

The ID should be in the following format.

urn:tdm:REGION/ACCOUNT ID/default:system:SYSTEMNAME

Optional arguments:

iv_revisionnumber TYPE /AWS1/IOGVERSION /AWS1/IOGVERSION

The number that specifies the revision of the system to get.

RETURNING

oo_output TYPE REF TO /aws1/cl_ioggetsystemtmplrsp /AWS1/CL_IOGGETSYSTEMTMPLRSP

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_iog~getsystemtemplate(
  iv_id = |string|
  iv_revisionnumber = 123
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_systemtemplatedescripti = lo_result->get_description( ).
  IF lo_systemtemplatedescripti IS NOT INITIAL.
    lo_systemtemplatesummary = lo_systemtemplatedescripti->get_summary( ).
    IF lo_systemtemplatesummary IS NOT INITIAL.
      lv_urn = lo_systemtemplatesummary->get_id( ).
      lv_arn = lo_systemtemplatesummary->get_arn( ).
      lv_version = lo_systemtemplatesummary->get_revisionnumber( ).
      lv_timestamp = lo_systemtemplatesummary->get_createdat( ).
    ENDIF.
    lo_definitiondocument = lo_systemtemplatedescripti->get_definition( ).
    IF lo_definitiondocument IS NOT INITIAL.
      lv_definitionlanguage = lo_definitiondocument->get_language( ).
      lv_definitiontext = lo_definitiondocument->get_text( ).
    ENDIF.
    lv_version = lo_systemtemplatedescripti->get_vldtdnamespaceversion( ).
  ENDIF.
ENDIF.