SAP Function BAPI_CTRACDOCUMENT_REVERSE - BAPI: FI-CA - Reverse Document

Parameter Reference Type Length Default Optional Text
ALL_REPETITIONS BAPICTRACAUX-ALL_REPET C 1 SPACE X All open repetitions (stat. docs)
CALLER_ID FKKFIELDS-CALLR C 30 X Identification of Caller of Function Module
CHECKARCHIVE BAPICTRACAUX-CHECKARCHIVE C 1 SPACE X Also Consider Document Archive
CHECKVOIDINGREASON BAPICTRACAUX-CHECKVOIDINGREASON C 2 X 1118687 Reason for Voiding a Check
CLEAR_REAS BAPIDFKKOP-CLEAR_REAS C 2 Clearing Reason
DOCUMENTNUMBER BAPIDFKKKO-DOC_NO C 12 Document number to be canceled
DOC_SOURCE_KEY BAPIDFKKKO-DOC_SOURCE_KEY C 2 Reversal document origin key
DOC_TYPE BAPIDFKKKO-DOC_TYPE C 2 Reversal document type
FIKEY BAPIDFKKKO-FIKEY C 12 X Reversal document reconciliation key
POST_DATE BAPIDFKKKO-POST_DATE D 8 X Posting date of items to be reversed
RECKEYINFO BAPIRECKEYINFO u 36 X Information for Reconciliation Key
RETURN_REASON BAPIDFKKKO-RETURN_REASON C 3 SPACE X Return reason
REVERSEMETHODE BAPICTRACAUX-REVERSEMETHODE C 1 SPACE X Reversal Method
REVERSE_DATE BAPIDFKKKO-POST_DATE D 8 X Reversal date, if required
TESTRUN BAPICTRACAUX-TESTRUN C 1 SPACE X Simulate Only
TRANSFERPOST RFKB0-XSTKL C 1 X 1476079 Transfer to Clarification Account

Parameter Reference Type Length Text
RETURN BAPIRET2 u 548 Confirmations
REV_DOCUMENTNUMBER BAPIDFKKKO-DOC_NO C 12 Reverse document number

Functionality
You can use this method to cancel a document. The number of thereversal document is returned in the REV_DOCUMENTNUMBER parameter.

Description
The return code of the method. If the parameters do not contain amessage code, the method was successful.

Value range
E >0 Error during cancellation.

Description
Number of the new document posted as a reversal document.

Description
All open repetitions (statistical documents) should be canceled.

Description
The system uses the identification of the caller of the BAPI to decidewhether a document may be reversed in this call.

Description
Also reverse document if it has been archived.

Description
Clearing reason to be posted in the reversal document.

Description
Number of the document to be reversed.

Description
Origin key to be posted in the reversal document.

Description
Document type to be posted in the reversal document.

Description
Reconciliation key to be posted in the reversal document.

Description
Only items with this posting date are to be canceled.

Description
If no reconciliation key is transferred in the document header when theBAPI is called, the system tries to find a open reconciliation key onthe date or to create a new one. It does this for the combination ofcaller ID, reservation object, and object key transferred.

Description
Return reason to be posted in the reversal document.

Description
Reversal method

Description
Cancellation date to be posted in the reversal document.

Description
Switch to simulation mode