/AWS1/IF_SAG=>BATCHGETTARGETDOMAINS()¶
About BatchGetTargetDomains¶
Retrieves multiple target domains in a single request
Method Signature¶
METHODS /AWS1/IF_SAG~BATCHGETTARGETDOMAINS
IMPORTING
!IT_TARGETDOMAINIDS TYPE /AWS1/CL_SAGTGTDOMAINIDLIST_W=>TT_TARGETDOMAINIDLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_sagbatchgettgtdomsout
RAISING
/AWS1/CX_SAGCLIENTEXC
/AWS1/CX_SAGSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
it_targetdomainids TYPE /AWS1/CL_SAGTGTDOMAINIDLIST_W=>TT_TARGETDOMAINIDLIST TT_TARGETDOMAINIDLIST¶
List of target domain IDs to retrieve
RETURNING¶
oo_output TYPE REF TO /aws1/cl_sagbatchgettgtdomsout /AWS1/CL_SAGBATCHGETTGTDOMSOUT¶
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->batchgettargetdomains(
it_targetdomainids = VALUE /aws1/cl_sagtgtdomainidlist_w=>tt_targetdomainidlist(
( new /aws1/cl_sagtgtdomainidlist_w( |string| ) )
)
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
LOOP AT lo_result->get_targetdomains( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_targetdomainid = lo_row_1->get_targetdomainid( ).
lv_string = lo_row_1->get_domainname( ).
lv_targetdomainstatus = lo_row_1->get_verificationstatus( ).
lo_verificationdetails = lo_row_1->get_verificationdetails( ).
IF lo_verificationdetails IS NOT INITIAL.
lv_domainverificationmetho = lo_verificationdetails->get_method( ).
lo_dnsverification = lo_verificationdetails->get_dnstxt( ).
IF lo_dnsverification IS NOT INITIAL.
lv_string = lo_dnsverification->get_token( ).
lv_string = lo_dnsverification->get_dnsrecordname( ).
lv_dnsrecordtype = lo_dnsverification->get_dnsrecordtype( ).
ENDIF.
lo_httpverification = lo_verificationdetails->get_httproute( ).
IF lo_httpverification IS NOT INITIAL.
lv_string = lo_httpverification->get_token( ).
lv_string = lo_httpverification->get_routepath( ).
ENDIF.
ENDIF.
lv_timestamp = lo_row_1->get_createdat( ).
lv_timestamp = lo_row_1->get_verifiedat( ).
ENDIF.
ENDLOOP.
LOOP AT lo_result->get_notfound( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_string = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.