SAP ABAP BDC for FI Posting using F-02
There has been requirement for uploading financial data(GL, Customer, Vendor) into SAP system during the initial phase in the system/implementation. In the BDC it is required to handle different set of screens for posting FI document depending upon the posting key read using the flat file.
Following BDC can be used to upload data into SAP using a flat file(excel format of which can be found below, just save the excel file as flat file and remove the header line).
Currently the program reads flat file, making the assumption that the data is entered in double entry format(Dr and Cr) in the consecutive line. It posts two consecutive line items per document, which is normally the case during initial data upload. The program can be modified as per requirement (like, there was requirement to post a single document instead of one FI document per two line items read from file, in this case you just have to comment certain section like header looping and exit statements to make the thing work).
Download BDC : ZFI_BDC_INITIALUPLOAD
Also have a look at BDC Session – Automatic Execution from Report.