Skip to Content
0
Jul 05, 2017 at 11:10 AM

Multiple header document posting using BAPI for FB01 transaction

197 Views

Hi Friends,

I have a GL posting program which is using BDC for transaction FB01. the requirement has changed as the posting document is now having multiple headers. The existing program is causing my issues so I was asked to develop new program using BAPI.

Well I have manged to get document data in to Header and lineitem internal tables. The mapping look good now. But I am struck with the BAPI.

I am trying to use BAPI_ACC_DOCUMENT_POST.

lt_header:

H1,,,,,

H2,,,,

H3,,,,

lt_lineitem:

H1,L1,,,,

H1,L2,,,,

H1,L3,,,,

H2,L1,,,,

H2,L2,,,,

H2,L3,,,,

Can someone please help me with this .

Thank you and regards.