/AWS1/IF_APC=>GETCONFIGURATIONPROFILE()¶
About GetConfigurationProfile¶
Retrieves information about a configuration profile.
Method Signature¶
METHODS /AWS1/IF_APC~GETCONFIGURATIONPROFILE
IMPORTING
!IV_APPLICATIONID TYPE /AWS1/APCID OPTIONAL
!IV_CONFIGURATIONPROFILEID TYPE /AWS1/APCID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_apcconfprofile
RAISING
/AWS1/CX_APCBADREQUESTEX
/AWS1/CX_APCINTERNALSERVEREX
/AWS1/CX_APCRESOURCENOTFOUNDEX
/AWS1/CX_APCCLIENTEXC
/AWS1/CX_APCSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_applicationid TYPE /AWS1/APCID /AWS1/APCID¶
The ID of the application that includes the configuration profile you want to get.
iv_configurationprofileid TYPE /AWS1/APCID /AWS1/APCID¶
The ID of the configuration profile that you want to get.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_apcconfprofile /AWS1/CL_APCCONFPROFILE¶
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->getconfigurationprofile(
iv_applicationid = |string|
iv_configurationprofileid = |string|
).
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_applicationid( ).
lv_id = lo_result->get_id( ).
lv_longname = lo_result->get_name( ).
lv_description = lo_result->get_description( ).
lv_uri = lo_result->get_locationuri( ).
lv_rolearn = lo_result->get_retrievalrolearn( ).
LOOP AT lo_result->get_validators( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_validatortype = lo_row_1->get_type( ).
lv_stringwithlengthbetween = lo_row_1->get_content( ).
ENDIF.
ENDLOOP.
lv_configurationprofiletyp = lo_result->get_type( ).
lv_arn = lo_result->get_kmskeyarn( ).
lv_kmskeyidentifier = lo_result->get_kmskeyidentifier( ).
ENDIF.
To retrieve configuration profile details¶
The following get-configuration-profile example returns the details of the specified configuration profile.
DATA(lo_result) = lo_client->getconfigurationprofile(
iv_applicationid = |339ohji|
iv_configurationprofileid = |ur8hx2f|
).