Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_ACC_GL_POSTING_POST: can this BAPI is used to post multiple documents

Former Member
0 Likes
1,034

Hello All,

Can you please let me know if the BAPI BAPI_ACC_GL_POSTING_POST or BAPI_ACC_DOCUMENT_POS can be used for posting multiple journal entries..

eg: Header 1

        line item 1

       line item 2

       line item 3

       line item 4

      Header 2

       line item 1

       line item 2

       line item 3

       line item 4

Thanks Vachana

Hello All,

Can you please let me know if the BAPI BAPI_ACC_GL_POSTING_POST or BAPI_ACC_DOCUMENT_POS can be used for posting multiple journal entries..

eg: Header 1

        line item 1

       line item 2

       line item 3

       line item 4

      Header 2

       line item 1

       line item 2

       line item 3

       line item 4

Thanks Vachana

6 REPLIES 6
Read only

RaymondGiuseppi
Active Contributor
0 Likes
904

Just look at parameters of the FM, is header parameter a structure or an internal table

Regards,

Raymond

Read only

Former Member
0 Likes
904

This is a structure I have noticed it.. do we have anyother BAPI's which can do my requirement..

Read only

0 Likes
904

No BAPI (in any system I have access to) fulfil your requirement. You will have to LOOP/ENDLOOP calling the BAPI.

Why do you look for such a BAPI, is it to ensuredata consistencyin case of error. Then you could use the CHECK version of the BAPI and then only loop with the POST version of the BAPI committing document after document. (There could still be errors in cases where the earlier pieces change control values​​, e.g. consuming a budget, then you will be required to delete previous posted documents in reverse order of posting, BAPI_ACC_DOCUMENT_REV_POST)

Regards,

Raymond

Read only

0 Likes
904

thanks Raymond!!

Read only

Former Member
0 Likes
904

Vachana,

No, this is not used for multiple postings. If you want multiple postings, then this can be called within the loop and passed the variables for each posting record. Such Finance BAPI's are designed for single postings.

Regards,

Hardik Mehta

Read only

0 Likes
904

Hi Hardik,

Thanks for the input, but I was looking if we have any other standard BAPI's that can do these kind off requirements.

Regards

Vachana