Skip to content

/AWS1/IF_MPG=>GETAGREEMENTCANCLREQUEST()

About GetAgreementCancellationRequest

Retrieves detailed information about a specific agreement cancellation request. Both sellers (proposers) and buyers (acceptors) can use this operation to view cancellation requests associated with their agreements.

The calling identity must be either the acceptor or proposer of the agreement. A ResourceNotFoundException is returned if the cancellation request does not exist.

Method Signature

METHODS /AWS1/IF_MPG~GETAGREEMENTCANCLREQUEST
  IMPORTING
    !IV_AGREEMENTCANCLREQUESTID TYPE /AWS1/MPGAGRMNTCANCLREQUESTID OPTIONAL
    !IV_AGREEMENTID TYPE /AWS1/MPGAGREEMENTID OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_mpggetagrmtcancreqout
  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_agreementcanclrequestid TYPE /AWS1/MPGAGRMNTCANCLREQUESTID /AWS1/MPGAGRMNTCANCLREQUESTID

The unique identifier of the cancellation request.

iv_agreementid TYPE /AWS1/MPGAGREEMENTID /AWS1/MPGAGREEMENTID

The unique identifier of the agreement associated with the cancellation request.

RETURNING

oo_output TYPE REF TO /aws1/cl_mpggetagrmtcancreqout /AWS1/CL_MPGGETAGRMTCANCREQOUT

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->getagreementcanclrequest(
  iv_agreementcanclrequestid = |string|
  iv_agreementid = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_agreementcancellationre = lo_result->get_agreementcanclrequestid( ).
  lv_agreementid = lo_result->get_agreementid( ).
  lv_agreementcancellationre_1 = lo_result->get_reasoncode( ).
  lv_agreementcancellationre_2 = lo_result->get_description( ).
  lv_agreementcancellationre_3 = lo_result->get_status( ).
  lv_agreementcancellationre_4 = lo_result->get_statusmessage( ).
  lv_timestamp = lo_result->get_createdat( ).
  lv_timestamp = lo_result->get_updatedat( ).
ENDIF.

Get a cancellation request

Get a cancellation request

DATA(lo_result) = lo_client->getagreementcanclrequest(
  iv_agreementcanclrequestid = |acr-sgew33rhsds|
  iv_agreementid = |agmt-752jqvg74yo7k|
).