Sap prevent parked document from updating commitment
This is explained in subroutines ‘VALIDATE_GL’ and ‘POPULATE_BAPI’.
In case of intercompany postings, in which line item and Header Company codes are different.
User can split the data according to their file format.
The file should be balanced for the document to be posted i.e. In FI, header table for document data is BKPF and line item table is BSEG.
After we upload excel data into an internal table we need split the data into field patterns into header data and line item data as explained in subroutine ‘SPLIT_INTO_RECORDS’.
Due to this we need to give and exchange rate base on which the BAPI will convert the amounts.
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.