Ansicht
Dokumentation
BAPI_PAYMENTREQUEST_CANCEL - Cancel Payment Request
Vendor Master (General Section) Fill RESBD Structure from EBP Component StructureThis documentation is copyright by SAP AG.
Functionality
One payment request can be canceled each time the method is called. A cancelation indicator is assigned for the payment request and both cancelation reason and date are added. A payment request can not be paid after it has been canceled.
A payment request cannot be canceled if it is contained within a payment proposal.
Example
Notes
The following authorization object is checked with activity 85 (cancel):
- F_PAYRQ,,Authorization object for payment requests
After a payment request is canceled, no new instance is created on the database. The payment request to be canceled is uniquely identifiable via its key number.
The method carries out the following processing steps:
- Check whether cancelation is permitted
- Authorization check
- Cash management and forecast data entry and check
- Customer exit for user data update
- Update of payment request data
- Update of cash management and forecast data
- Payment request data and cash management and forecast data are temporarily saved first of all, then they are written to the database as a table insert through COMMIT WORK. Deletion of internal storage is carried out during ROLLBACK WORK. This method checks whether the payment request to be deleted is stored in temporary storage. It is not possible to cancel a payment request that exists merely in temporary storage. It is not possible to create a payment request in a Logical Unit of Work and then delete it (without a COMMIT in between).
Customer enhancements
The method supports the SAP customer enhancement concept. Two customer exits are available with which checks and update of user data can be carried out (SAP enhancement PRQ_BAPI).
Messages
Messages are returned in the Return parameter. The parameter documentation shows the return codes and their meanings.
Further information
You can find further information in the SAP Library under Financials -> Financial Accounting -> Bank Accounting -> Payment Transactions -> Automatic Payment -> Payment Program for Payment Requests.
Parameters
DATE_REVREASON_REV
REQUESTID
RETURN
TESTRUN
Exceptions
Function Group
2021BAL_S_LOG - Application Log: Log header data RFUMSV00 - Advance Return for Tax on Sales/Purchases
This documentation is copyright by SAP AG.
Length: 3243 Date: 20240523 Time: 162110 sap01-206 ( 56 ms )