/AWS1/IF_CNH=>GETDOMAIN()¶
About GetDomain¶
Retrieves information about a Domain.
Method Signature¶
METHODS /AWS1/IF_CNH~GETDOMAIN
IMPORTING
!IV_DOMAINID TYPE /AWS1/CNHDOMAINID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cnhgetdomainoutput
RAISING
/AWS1/CX_CNHRESOURCENOTFOUNDEX
/AWS1/CX_CNHCLIENTEXC
/AWS1/CX_CNHSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_domainid TYPE /AWS1/CNHDOMAINID /AWS1/CNHDOMAINID¶
The id of the Domain to get
RETURNING¶
oo_output TYPE REF TO /aws1/cl_cnhgetdomainoutput /AWS1/CL_CNHGETDOMAINOUTPUT¶
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->getdomain( |string| ).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_domainid = lo_result->get_domainid( ).
lv_domainarn = lo_result->get_arn( ).
lv_domainname = lo_result->get_name( ).
lv_kmskeyarn = lo_result->get_kmskeyarn( ).
lo_encryptioncontext = lo_result->get_encryptioncontext( ).
IF lo_encryptioncontext IS NOT INITIAL.
lv_encryptiontype = lo_encryptioncontext->get_encryptiontype( ).
lv_kmskeyarn = lo_encryptioncontext->get_kmskeyarn( ).
ENDIF.
lv_domainstatus = lo_result->get_status( ).
lv_webappurl = lo_result->get_webappurl( ).
lo_webappconfiguration = lo_result->get_webappconfiguration( ).
IF lo_webappconfiguration IS NOT INITIAL.
lv_string = lo_webappconfiguration->get_ehrrole( ).
lv_string = lo_webappconfiguration->get_idcapplicationid( ).
lv_string = lo_webappconfiguration->get_idcregion( ).
ENDIF.
lv_timestamp = lo_result->get_createdat( ).
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_tagvalue = lo_value->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.