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

Simulating Accounting Document using BAPI

Former Member
0 Likes
3,616

Hi,

I am using 'BAPI_ACC_DOCUMENT_POST' to create an accounting document. However, I would first like to simulate the BAPI just as it is done in standard transactions F-02. Which means if Tax and TDS are considered, then during simulation my BAPI should return all line items including taxes and TDS details.

Is there a BAPI/FM to do this? I am using 'BAPI_ACC_DOCUMENT_CHECK' inorder to check the accounting document. However, I would like the BAPI to calculate Tax Automatically and also simulate all line items of the accounting document before posting.

Need your help please.

Thanks.

2 REPLIES 2
Read only

Former Member
0 Likes
1,830

BAPI_ACC_DOCUMENT_CHECK should work, it has a table for tax lines: BAPIACTX09.

Read only

Former Member
0 Likes
1,830

Hi,

You may use the FM ACC_SIMULATED_DOC_DISPLAY, which is being used by F-02. However please note that it has got the status of 'not released'.

I hope this helps,

Regards

Raju Chitale