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

Help with fm BAPI_ACC_DOCUMENT_POST

Former Member
0 Likes
627

Hello!

Would like to request for some help with BAPI's, since it is my first time to use them. The programming requirement is to create an uploading utility to post the beginning balances of vendor and customer. I was recommended to use the fm BAPI_ACC_DOCUMENT_POST since it's easier than coding it in batch input, but I'm not quite sure which goes where. My questions are:

1. If the posting requires credit vendor/debit clearing account, would this mean the vendor item will be in the ACCOUNTPAYABLE/BAPIACAP09 table and the GL clearing account in the ACCOUNTGL/BAPIACGL09 table?

2. All amounts are placed in the CURRENCYAMOUNT/BAPIACCR09 table?

3. The fm automatically determines the posting key to be used?

Thank you in advance for any replies. Sample codes would also be greatly appreciated.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
385

Hi,

Check this link: https://forums.sdn.sap.com/click.jspa?searchID=850430&messageID=493291

There is one more BAPI_ACC_DOCUMENT_CHECK, this will check if the parameter values which enter is feasible to create a document or not.

First use this FM and if sy-subrc = 0, then you can call the BAPI_ACC_DOCUMENT_POST and also call BAPI_TRANSACTION_COMMIT to save the changes.

Refer to the Function Module Documentation [ a push button on the toolbar ] for more detailed information.

Regards

Subramanian

1 REPLY 1
Read only

Former Member
0 Likes
386

Hi,

Check this link: https://forums.sdn.sap.com/click.jspa?searchID=850430&messageID=493291

There is one more BAPI_ACC_DOCUMENT_CHECK, this will check if the parameter values which enter is feasible to create a document or not.

First use this FM and if sy-subrc = 0, then you can call the BAPI_ACC_DOCUMENT_POST and also call BAPI_TRANSACTION_COMMIT to save the changes.

Refer to the Function Module Documentation [ a push button on the toolbar ] for more detailed information.

Regards

Subramanian