/AWS1/IF_AAA=>GETAPPLICATION()¶
About GetApplication¶
Retrieves details about an account access manager application, including its status, identity source, and tags.
Method Signature¶
METHODS /AWS1/IF_AAA~GETAPPLICATION
IMPORTING
!IV_APPLICATIONARN TYPE /AWS1/AAAAPPLICATIONARN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_aaagetappresponse
RAISING
/AWS1/CX_AAAACCESSDENIEDEX
/AWS1/CX_AAAINTERNALSERVEREX
/AWS1/CX_AAARESOURCENOTFOUNDEX
/AWS1/CX_AAAVLDTNEXCEPTION
/AWS1/CX_AAACLIENTEXC
/AWS1/CX_AAASERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_applicationarn TYPE /AWS1/AAAAPPLICATIONARN /AWS1/AAAAPPLICATIONARN¶
Specifies the ARN of the application to retrieve.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_aaagetappresponse /AWS1/CL_AAAGETAPPRESPONSE¶
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->getapplication( |string| ).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_identitysourcedetails = lo_result->get_identitysource( ).
IF lo_identitysourcedetails IS NOT INITIAL.
lo_identitycenterdetails = lo_identitysourcedetails->get_identitycenter( ).
IF lo_identitycenterdetails IS NOT INITIAL.
lv_identitycenterinstancea = lo_identitycenterdetails->get_instancearn( ).
lv_identitycenterapplicati = lo_identitycenterdetails->get_applicationarn( ).
ENDIF.
ENDIF.
lv_status = lo_result->get_status( ).
lv_string = lo_result->get_tenantid( ).
lv_datetime = lo_result->get_createdat( ).
lv_datetime = lo_result->get_updatedat( ).
LOOP AT lo_result->get_tags( ) into ls_row.
lv_key = ls_row-key.
lo_value = ls_row-value.
IF lo_value IS NOT INITIAL.
lv_string = lo_value->get_value( ).
ENDIF.
ENDLOOP.
lo_errordetails = lo_result->get_error( ).
IF lo_errordetails IS NOT INITIAL.
lv_errorcode = lo_errordetails->get_code( ).
lv_string = lo_errordetails->get_message( ).
ENDIF.
ENDIF.