/AWS1/IF_NWP=>LISTORDERS()
¶
About ListOrders¶
Lists orders. Add filters to your request to return a more specific list of results. Use filters to match the Amazon Resource Name (ARN) of the network site or the status of the order.
If you specify multiple filters, filters are joined with an OR, and the request returns results that match all of the specified filters.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_networkarn
TYPE /AWS1/NWPARN
/AWS1/NWPARN
¶
The Amazon Resource Name (ARN) of the network.
Optional arguments:¶
iv_starttoken
TYPE /AWS1/NWPPAGINATIONTOKEN
/AWS1/NWPPAGINATIONTOKEN
¶
The token for the next page of results.
iv_maxresults
TYPE /AWS1/NWPINTEGER
/AWS1/NWPINTEGER
¶
The maximum number of results to return.
it_filters
TYPE /AWS1/CL_NWPORDERFILTVALUES_W=>TT_ORDERFILTERS
TT_ORDERFILTERS
¶
The filters.
NETWORK_SITE
- The Amazon Resource Name (ARN) of the network site.
STATUS
- The status (ACKNOWLEDGING
|ACKNOWLEDGED
|UNACKNOWLEDGED
).Filter values are case sensitive. If you specify multiple values for a filter, the values are joined with an
OR
, and the request returns all results that match any of the specified values.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_nwplistordersresponse
/AWS1/CL_NWPLISTORDERSRESPONSE
¶
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_nwp~listorders(
it_filters = VALUE /aws1/cl_nwporderfiltvalues_w=>tt_orderfilters(
(
VALUE /aws1/cl_nwporderfiltvalues_w=>ts_orderfilters_maprow(
key = |string|
value = VALUE /aws1/cl_nwporderfiltvalues_w=>tt_orderfiltervalues(
( new /aws1/cl_nwporderfiltvalues_w( |string| ) )
)
)
)
)
iv_maxresults = 123
iv_networkarn = |string|
iv_starttoken = |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_orders( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_arn = lo_row_1->get_orderarn( ).
lo_address = lo_row_1->get_shippingaddress( ).
IF lo_address IS NOT INITIAL.
lv_addresscontent = lo_address->get_city( ).
lv_addresscontent = lo_address->get_company( ).
lv_addresscontent = lo_address->get_country( ).
lv_addresscontent = lo_address->get_name( ).
lv_addresscontent = lo_address->get_phonenumber( ).
lv_addresscontent = lo_address->get_postalcode( ).
lv_addresscontent = lo_address->get_stateorprovince( ).
lv_addresscontent = lo_address->get_street1( ).
lv_addresscontent = lo_address->get_street2( ).
lv_addresscontent = lo_address->get_street3( ).
lv_addresscontent = lo_address->get_emailaddress( ).
ENDIF.
lv_arn = lo_row_1->get_networkarn( ).
lv_arn = lo_row_1->get_networksitearn( ).
LOOP AT lo_row_1->get_trackinginformation( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_string = lo_row_3->get_trackingnumber( ).
ENDIF.
ENDLOOP.
lv_acknowledgmentstatus = lo_row_1->get_acknowledgmentstatus( ).
lv_timestamp = lo_row_1->get_createdat( ).
LOOP AT lo_row_1->get_orderedresources( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_networkresourcedefiniti = lo_row_5->get_type( ).
lv_integer = lo_row_5->get_count( ).
lo_commitmentconfiguration = lo_row_5->get_commitmentconfiguration( ).
IF lo_commitmentconfiguration IS NOT INITIAL.
lv_commitmentlength = lo_commitmentconfiguration->get_commitmentlength( ).
lv_boolean = lo_commitmentconfiguration->get_automaticrenewal( ).
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
lv_paginationtoken = lo_result->get_nexttoken( ).
ENDIF.