/AWS1/IF_MPG=>LISTBILLINGADJSTMTREQUESTS()¶
About ListBillingAdjustmentRequests¶
Lists billing adjustment requests for a specific agreement. Sellers (proposers) can use this operation to view all billing adjustment requests associated with an agreement.
Pagination is supported through maxResults and nextToken parameters.
Method Signature¶
METHODS /AWS1/IF_MPG~LISTBILLINGADJSTMTREQUESTS
IMPORTING
!IV_AGREEMENTID TYPE /AWS1/MPGAGREEMENTID OPTIONAL
!IV_STATUS TYPE /AWS1/MPGBILLINGADJSTMTSTATUS OPTIONAL
!IV_CREATEDAFTER TYPE /AWS1/MPGTIMESTAMP OPTIONAL
!IV_CREATEDBEFORE TYPE /AWS1/MPGTIMESTAMP OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/MPGMAXRESULTS OPTIONAL
!IV_CATALOG TYPE /AWS1/MPGCATALOG OPTIONAL
!IV_AGREEMENTTYPE TYPE /AWS1/MPGAGREEMENTTYPE OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/MPGNEXTTOKEN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_mpglistblladjstreqout
RAISING
/AWS1/CX_MPGACCESSDENIEDEX
/AWS1/CX_MPGINTERNALSERVEREX
/AWS1/CX_MPGTHROTTLINGEX
/AWS1/CX_MPGVALIDATIONEX
/AWS1/CX_MPGCLIENTEXC
/AWS1/CX_MPGSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_agreementid TYPE /AWS1/MPGAGREEMENTID /AWS1/MPGAGREEMENTID¶
The unique identifier of the agreement to list billing adjustment requests for.
iv_status TYPE /AWS1/MPGBILLINGADJSTMTSTATUS /AWS1/MPGBILLINGADJSTMTSTATUS¶
An optional filter to return billing adjustment requests with the specified status.
iv_createdafter TYPE /AWS1/MPGTIMESTAMP /AWS1/MPGTIMESTAMP¶
An optional filter to return billing adjustment requests created after the specified POSIX timestamp (Unix epoch seconds).
iv_createdbefore TYPE /AWS1/MPGTIMESTAMP /AWS1/MPGTIMESTAMP¶
An optional filter to return billing adjustment requests created before the specified POSIX timestamp (Unix epoch seconds).
iv_maxresults TYPE /AWS1/MPGMAXRESULTS /AWS1/MPGMAXRESULTS¶
The maximum number of billing adjustment requests to return in the response.
iv_catalog TYPE /AWS1/MPGCATALOG /AWS1/MPGCATALOG¶
An optional filter to return billing adjustment requests by catalog (e.g.,
AWSMarketplace).
iv_agreementtype TYPE /AWS1/MPGAGREEMENTTYPE /AWS1/MPGAGREEMENTTYPE¶
An optional filter to return billing adjustment requests by agreement type (e.g.,
PurchaseAgreement).
iv_nexttoken TYPE /AWS1/MPGNEXTTOKEN /AWS1/MPGNEXTTOKEN¶
A token to specify where to start pagination. Use the
nextTokenvalue from a previous response to retrieve the next page of results.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_mpglistblladjstreqout /AWS1/CL_MPGLISTBLLADJSTREQOUT¶
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->listbillingadjstmtrequests(
iv_agreementid = |string|
iv_agreementtype = |string|
iv_catalog = |string|
iv_createdafter = '20150101000000.0000000'
iv_createdbefore = '20150101000000.0000000'
iv_maxresults = 123
iv_nexttoken = |string|
iv_status = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_nexttoken = lo_result->get_nexttoken( ).
LOOP AT lo_result->get_items( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_billingadjustmentreques = lo_row_1->get_billingadjstmtrequestid( ).
lv_invoiceid = lo_row_1->get_originalinvoiceid( ).
lv_positiveamountupto8deci = lo_row_1->get_adjustmentamount( ).
lv_currencycode = lo_row_1->get_currencycode( ).
lv_billingadjustmentstatus = lo_row_1->get_status( ).
lv_agreementid = lo_row_1->get_agreementid( ).
lv_timestamp = lo_row_1->get_createdat( ).
lv_timestamp = lo_row_1->get_updatedat( ).
lv_agreementtype = lo_row_1->get_agreementtype( ).
lv_catalog = lo_row_1->get_catalog( ).
ENDIF.
ENDLOOP.
ENDIF.
List billing adjustment requests¶
List billing adjustment requests
DATA(lo_result) = lo_client->listbillingadjstmtrequests( iv_agreementid = |agmt-SvIzsqYMyQwI3GWgJAe17URx| ) .