/AWS1/IF_REV=>GETSYSTEM()¶
About GetSystem¶
Retrieves a system by ARN.
Method Signature¶
METHODS /AWS1/IF_REV~GETSYSTEM
IMPORTING
!IV_SYSTEMARN TYPE /AWS1/REVARN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_revgetsystemresponse
RAISING
/AWS1/CX_REVACCESSDENIEDEX
/AWS1/CX_REVINTERNALSERVEREX
/AWS1/CX_REVRESOURCENOTFOUNDEX
/AWS1/CX_REVVLDTNEXCEPTION
/AWS1/CX_REVCLIENTEXC
/AWS1/CX_REVSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_systemarn TYPE /AWS1/REVARN /AWS1/REVARN¶
ARN identifier.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_revgetsystemresponse /AWS1/CL_REVGETSYSTEMRESPONSE¶
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->getsystem( |string| ).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_system = lo_result->get_system( ).
IF lo_system IS NOT INITIAL.
lv_arn = lo_system->get_systemarn( ).
lv_systemid = lo_system->get_systemid( ).
lv_entityname = lo_system->get_name( ).
lv_entitydescription = lo_system->get_description( ).
lv_boolean = lo_system->get_sharingenabled( ).
LOOP AT lo_system->get_tags( ) into ls_row.
lv_key = ls_row-key.
lo_value = ls_row-value.
IF lo_value IS NOT INITIAL.
lv_tagvalue = lo_value->get_value( ).
ENDIF.
ENDLOOP.
lv_kmskeyid = lo_system->get_kmskeyid( ).
lv_organizationid = lo_system->get_organizationid( ).
lv_ouid = lo_system->get_ouid( ).
lv_timestamp = lo_system->get_createdat( ).
lv_timestamp = lo_system->get_updatedat( ).
ENDIF.
ENDIF.