/AWS1/IF_SHI=>BATCHGETMEMBERACCOUNTDETAILS()
¶
About BatchGetMemberAccountDetails¶
Provides information on whether the supplied account IDs are associated with a membership.
AWS account ID's may appear less than 12 characters and need to be zero-prepended. An example would be 123123123
which is nine digits, and with zero-prepend would be 000123123123
. Not zero-prepending to 12 digits could result in errors.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_membershipid
TYPE /AWS1/SHIMEMBERSHIPID
/AWS1/SHIMEMBERSHIPID
¶
Required element used in combination with BatchGetMemberAccountDetails to identify the membership ID to query.
it_accountids
TYPE /AWS1/CL_SHIAWSACCOUNTIDS_W=>TT_AWSACCOUNTIDS
TT_AWSACCOUNTIDS
¶
Optional element to query the membership relationship status to a provided list of account IDs.
AWS account ID's may appear less than 12 characters and need to be zero-prepended. An example would be
123123123
which is nine digits, and with zero-prepend would be000123123123
. Not zero-prepending to 12 digits could result in errors.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_shibtcgetmemberacde01
/AWS1/CL_SHIBTCGETMEMBERACDE01
¶
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->/aws1/if_shi~batchgetmemberaccountdetails(
it_accountids = VALUE /aws1/cl_shiawsaccountids_w=>tt_awsaccountids(
( new /aws1/cl_shiawsaccountids_w( |string| ) )
)
iv_membershipid = |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_items( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_awsaccountid = lo_row_1->get_accountid( ).
lv_membershipaccountrelati = lo_row_1->get_relationshipstatus( ).
lv_membershipaccountrelati_1 = lo_row_1->get_relationshiptype( ).
ENDIF.
ENDLOOP.
LOOP AT lo_result->get_errors( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_awsaccountid = lo_row_3->get_accountid( ).
lv_string = lo_row_3->get_error( ).
lv_string = lo_row_3->get_message( ).
ENDIF.
ENDLOOP.
ENDIF.
Invoke BatchGetMemberAccountDetails¶
Invoke BatchGetMemberAccountDetails
DATA(lo_result) = lo_client->/aws1/if_shi~batchgetmemberaccountdetails(
it_accountids = VALUE /aws1/cl_shiawsaccountids_w=>tt_awsaccountids(
( new /aws1/cl_shiawsaccountids_w( |123412341234| ) )
)
iv_membershipid = |m-abcd1234efgh|
).