GL Posting through BAPI: BAPI_ACC_GL_POSTING_POST
I am posting GL document through BAPI : BAPI_ACC_GL_POSTING_POST. While posting through this BAPI, document is created successfully with extra line items with 0 amount/value( both document & local currency value).
When I create manually through FB01/F-01 with same data then there is no extra line items. This problem occurs only when I post through BAPI.
I have attached the sample data file.
Please do let me know whether this can be done through BAPI or any configuration needs to be done.