Fico interface inconsistent fico document header data for updating
This splitting is done according to my file format.
In header data in the file in line no.2, posting date and header company code. And all the other information is present at the lines as described by CASE statement.
These are then converted in Function AC_DOCUMENT_CREATE into the accounting document tables BSEG (accounting segment), BSET (taxes) and BKPF (document header).
An ACCHD line is created for each and every billing document.
Post the document using BAPI ‘BAPI_ACC_DOCUMEN_POST’. Check for sy-subrc, if initial; commit the work using ‘BAPI_TRANSACTION_COMMIT’.
They consist of one or more line items (postings), each of which represents an individual transaction posted to an account.
When posting an accounting document, the SAP system updates the transaction figures in the accounts to which the document is posted.
Here our requirement is to Post New Invoice Document (with new document type- to get different number range) with all the other information (Vendor / GL / PO amount etc) from an existing parked invoice document.
Park Document includes both categories of invoice document (PO invoice and Non-PO invoice).