Solution : https://service.sap.com/sap/support/notes/938165 (Connexion à SAP Service Marketplace requise)
Résumé :
When using the BAPI_ACC_DOCUMENT_POST to post documents with FI reference as outlined in SAP Note 561175, ensure that the fields OBJ_TYPE, OBJ_KEY, and OBJ_SYS in the DOCUMENTHEADER table, and AC_DOC_NO in the ACCOUNTGL table are left empty. The BAPI automatically populates OBJ_TYPE with 'BKPFF' and OBJ_KEY with a concatenated string of the document number, company code, and fiscal year. An identified flaw allows bypassing of certain field checks when "BKPFF" is used, potentially resulting in the creation of FI documents with numbers outside their designated range. To address this, implement the suggested program changes to trigger error RW 628, ensuring the use of internal number assignments or customized reference types (e.g., ZBKPF) for proper external number assignments and document reversal capabilities.
Mots Clés :
<document number><company code><fiscal year>, leading company code, internal number assignment, number range provided, external number assignment, error message rw 628, reference document number, fi document number, post note 561175 documents, document number
Notes associées :
561175 | BAPI posting in accounting with FI as reference |
306504 | Collective note: BAPIs for the AC interface |