Start Inconsistent fico line item data for updating

Inconsistent fico line item data for updating

Main steps involved are uploading and splitting data into internal table, Populate data into BAPI tables and call BAPI to post the documents and committing the transaction. Note: In case of intercompany code postings, if the exchange rate between 2 currencies is given in the file, programmer should pass only the exchange rate given.

Line item details start from line number 14, that’s why LOOP AT t_upload INTO w_upload FROM 14is used.

Also Field status group configurations of GL accounts are not considered by BAPI as it is bypassed by BAPI, but these are considered when doing posting using FB50.

Let us look at the first type of error: characteristics or characteristic derivations are incorrect.

In one document, more than 999 line item cannot be posted because BAPI can post up to 999 lines in one document.

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.

Post the document using BAPI ‘BAPI_ACC_DOCUMEN_POST’. Check for sy-subrc, if initial; commit the work using ‘BAPI_TRANSACTION_COMMIT’.

This step is explained in subroutine ‘POST_DOCUMENT’.

The accounting documents record changes in values in a company code arising from accounting transactions.