Skip to content

/AWS1/IF_BDC=>DELETEPAYMENTSESSION()

About DeletePaymentSession

Deletes a payment session. This permanently removes the payment session record.

Method Signature

METHODS /AWS1/IF_BDC~DELETEPAYMENTSESSION
  IMPORTING
    !IV_USERID TYPE /AWS1/BDCUSERID OPTIONAL
    !IV_PAYMENTMANAGERARN TYPE /AWS1/BDCPAYMENTMANAGERARN OPTIONAL
    !IV_PAYMENTSESSIONID TYPE /AWS1/BDCPAYMENTSESSIONID OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bdcdeletepmntsessrsp
  RAISING
    /AWS1/CX_BDCACCESSDENIEDEX
    /AWS1/CX_BDCINTERNALSERVEREX
    /AWS1/CX_BDCRESOURCENOTFOUNDEX
    /AWS1/CX_BDCTHROTTLINGEX
    /AWS1/CX_BDCVALIDATIONEX
    /AWS1/CX_BDCCLIENTEXC
    /AWS1/CX_BDCSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_paymentmanagerarn TYPE /AWS1/BDCPAYMENTMANAGERARN /AWS1/BDCPAYMENTMANAGERARN

The payment manager ARN. Must match the session's paymentManagerArn.

iv_paymentsessionid TYPE /AWS1/BDCPAYMENTSESSIONID /AWS1/BDCPAYMENTSESSIONID

The payment session ID to delete.

Optional arguments:

iv_userid TYPE /AWS1/BDCUSERID /AWS1/BDCUSERID

The user ID making the delete request. Must match the session's userId.

RETURNING

oo_output TYPE REF TO /aws1/cl_bdcdeletepmntsessrsp /AWS1/CL_BDCDELETEPMNTSESSRSP

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->deletepaymentsession(
  iv_paymentmanagerarn = |string|
  iv_paymentsessionid = |string|
  iv_userid = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_paymentsessionstatus = lo_result->get_status( ).
ENDIF.