Skip to content

/AWS1/IF_BDC=>DELETEPAYMENTINSTRUMENT()

About DeletePaymentInstrument

Deletes a payment instrument. This is a soft delete operation that preserves the record for audit and compliance purposes.

Method Signature

METHODS /AWS1/IF_BDC~DELETEPAYMENTINSTRUMENT
  IMPORTING
    !IV_USERID TYPE /AWS1/BDCUSERID OPTIONAL
    !IV_PAYMENTMANAGERARN TYPE /AWS1/BDCPAYMENTMANAGERARN OPTIONAL
    !IV_PAYMENTCONNECTORID TYPE /AWS1/BDCPAYMENTCONNECTORID OPTIONAL
    !IV_PAYMENTINSTRUMENTID TYPE /AWS1/BDCPAYMENTINSTRUMENTID OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bdcdelpmntinstrmrsp
  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 instrument's paymentManagerArn.

iv_paymentconnectorid TYPE /AWS1/BDCPAYMENTCONNECTORID /AWS1/BDCPAYMENTCONNECTORID

The payment connector ID. Must match the instrument's paymentConnectorId.

iv_paymentinstrumentid TYPE /AWS1/BDCPAYMENTINSTRUMENTID /AWS1/BDCPAYMENTINSTRUMENTID

The payment instrument ID to delete.

Optional arguments:

iv_userid TYPE /AWS1/BDCUSERID /AWS1/BDCUSERID

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

RETURNING

oo_output TYPE REF TO /aws1/cl_bdcdelpmntinstrmrsp /AWS1/CL_BDCDELPMNTINSTRMRSP

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->deletepaymentinstrument(
  iv_paymentconnectorid = |string|
  iv_paymentinstrumentid = |string|
  iv_paymentmanagerarn = |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_paymentinstrumentstatus = lo_result->get_status( ).
ENDIF.