Skip to content

/AWS1/IF_MPG=>GETBILLINGADJUSTMENTREQUEST()

About GetBillingAdjustmentRequest

Retrieves detailed information about a specific billing adjustment request. Sellers (proposers) can use this operation to view the status and details of a billing adjustment request they submitted.

A ResourceNotFoundException is returned if the billing adjustment request does not exist or the caller does not have permission to access it.

Method Signature

METHODS /AWS1/IF_MPG~GETBILLINGADJUSTMENTREQUEST
  IMPORTING
    !IV_AGREEMENTID TYPE /AWS1/MPGAGREEMENTID OPTIONAL
    !IV_BILLINGADJSTMTREQUESTID TYPE /AWS1/MPGBLLNGADJSTMTREQUESTID OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_mpggetblladjstreqout
  RAISING
    /AWS1/CX_MPGACCESSDENIEDEX
    /AWS1/CX_MPGINTERNALSERVEREX
    /AWS1/CX_MPGRESOURCENOTFOUNDEX
    /AWS1/CX_MPGTHROTTLINGEX
    /AWS1/CX_MPGVALIDATIONEX
    /AWS1/CX_MPGCLIENTEXC
    /AWS1/CX_MPGSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_agreementid TYPE /AWS1/MPGAGREEMENTID /AWS1/MPGAGREEMENTID

The unique identifier of the agreement associated with the billing adjustment request.

iv_billingadjstmtrequestid TYPE /AWS1/MPGBLLNGADJSTMTREQUESTID /AWS1/MPGBLLNGADJSTMTREQUESTID

The unique identifier of the billing adjustment request.

RETURNING

oo_output TYPE REF TO /aws1/cl_mpggetblladjstreqout /AWS1/CL_MPGGETBLLADJSTREQOUT

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->getbillingadjustmentrequest(
  iv_agreementid = |string|
  iv_billingadjstmtrequestid = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_billingadjustmentreques = lo_result->get_billingadjstmtrequestid( ).
  lv_agreementid = lo_result->get_agreementid( ).
  lv_billingadjustmentreason = lo_result->get_adjustmentreasoncode( ).
  lv_string = lo_result->get_description( ).
  lv_invoiceid = lo_result->get_originalinvoiceid( ).
  lv_positiveamountupto8deci = lo_result->get_adjustmentamount( ).
  lv_currencycode = lo_result->get_currencycode( ).
  lv_billingadjustmentstatus = lo_result->get_status( ).
  lv_billingadjustmentstatus_1 = lo_result->get_statusmessage( ).
  lv_timestamp = lo_result->get_createdat( ).
  lv_timestamp = lo_result->get_updatedat( ).
ENDIF.

Get a billing adjustment request

Get a billing adjustment request

DATA(lo_result) = lo_client->getbillingadjustmentrequest(
  iv_agreementid = |agmt-SvIzsqYMyQwI3GWgJAe17URx|
  iv_billingadjstmtrequestid = |ba-1a2b3c4d5e6f7g|
).