Skip to Content
0
May 24, 2017 at 01:10 PM

How to use BAPI_ACC_GL_POSTING_POST for f-02 transaction.

5548 Views

Dear members,
I am New to ABAP.
I got a requirement of gl account posting using BAPI_ACC_GL_POSTING_POST .

I have a flat file with multiple Headers and each header will have multiple line items.

1.How to post these type of flat file using Bapi?

2.After posting through bapi_acc_gl_posting_post, i have to generate a report showing Detail of line item in which error has occured.
I have gone through many threads but could not find any answer...

I have the following field in flat file (Excel file )

Mandatory field : Document date,Posting date,Document type,Company code,Currency,Document header text, posting key, Account Number, Amount,Profit center. and I too have some optional fields.
I know how to do it using BDC recording because of the requirement i am forced to do it using bapi.

Regards,
Moin.