‎2012 Jul 30 7:36 PM
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.
‎2012 Jul 31 12:45 AM
BAPI_ACC_DOCUMENT_CHECK should work, it has a table for tax lines: BAPIACTX09.
‎2012 Jul 31 7:40 AM
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