/AWS1/IF_MPG=>ACCEPTAGREEMENTCANCLREQUEST()¶
About AcceptAgreementCancellationRequest¶
Allows buyers (acceptors) to accept a cancellation request that is in PENDING_APPROVAL status. Once accepted, the cancellation request transitions to APPROVED status and the agreement cancellation will be processed.
Only cancellation requests in PENDING_APPROVAL status can be accepted. A ConflictException is thrown if the cancellation request is in any other status.
Method Signature¶
METHODS /AWS1/IF_MPG~ACCEPTAGREEMENTCANCLREQUEST
IMPORTING
!IV_AGREEMENTID TYPE /AWS1/MPGAGREEMENTID OPTIONAL
!IV_AGREEMENTCANCLREQUESTID TYPE /AWS1/MPGAGRMNTCANCLREQUESTID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_mpgaccagrmtcancreqout
RAISING
/AWS1/CX_MPGACCESSDENIEDEX
/AWS1/CX_MPGCONFLICTEXCEPTION
/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 cancellation request.
iv_agreementcanclrequestid TYPE /AWS1/MPGAGRMNTCANCLREQUESTID /AWS1/MPGAGRMNTCANCLREQUESTID¶
The unique identifier of the cancellation request to accept.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_mpgaccagrmtcancreqout /AWS1/CL_MPGACCAGRMTCANCREQOUT¶
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->acceptagreementcanclrequest(
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_agreementid = lo_result->get_agreementid( ).
lv_agreementcancellationre = lo_result->get_agreementcanclrequestid( ).
lv_agreementcancellationre_1 = lo_result->get_status( ).
lv_agreementcancellationre_2 = lo_result->get_reasoncode( ).
lv_agreementcancellationre_3 = lo_result->get_description( ).
lv_timestamp = lo_result->get_createdat( ).
lv_timestamp = lo_result->get_updatedat( ).
ENDIF.