Solution : https://service.sap.com/sap/support/notes/1005440 (SAP Service marketplace login required)
Summary :
When using BAPI_ACC_DOCUMENT_POST as outlined in Note 561175 for posting FI-reference documents, confusion exists regarding the REVERSAL-OBJ_KEY field when reversing documents through BAPI_ACC_DOCUMENT_REV_POST. The recommended method is to employ transaction FB08 for reversals with document type AWTYP='BKPFF'. Current BAPI does not support direct reversal entries. Issues arise when OBJ_KEY is misused, potentially leading to system errors or document number gaps. Corrections in this note enable the use of BAPI_ACC_DOCUMENT_REV_POST for AWTYP='BKPFF' reversals, but various conditions on fields like OBJ_TYPE, OBJ_SYS, and AC_DOC_NO must be met, depending on document number assignment type and system configuration. Customizing document reversal type is necessary for proper execution.
Key words :
assigned number range works, external document number assignment, internal document number assignment, fi reversal transaction fb08, internal number assignment, fi reversal document, document number gap, relevant document number, reversal document type, system simply ignores
Related Notes :
1144749 | BAPI_ACC_DOCUMENT_REV_POST: wrong data with AWTYP BKPFF |
1071105 | Reversal document from the wrong number range |
1069413 | Reversing documents with AWTYP = 'BKPFF' |
561175 | BAPI posting in accounting with FI as reference |