Register Login

Issue with tax using a BAPI or the function module AC_DOCUMENT_CREATE

Updated May 18, 2018

Hello Experts,

What is the common issue that occurs while posting documents with tax using a BAPI or the function module AC_DOCUMENT_CREATE?

When a user posts documents with tax using a BAPI or the function module AC_DOCUMENT_CREATE, the tax information (BSET) does not correspond to the expected results.

Why does the above mentioned issue occur?

How to get this issue resolved?


Comments

  • 18 May 2016 6:42 pm Romil Tripathi Helpful Answer

    This generally happens due to incorrect transfer of the data (for example, ITEMNO_TAX was transferred incorrectly for the line-by-line calculation of tax (USA, CA), and so on).

  • 18 May 2016 6:43 pm Chandan Singh Parihar Helpful Answer

    A method is provided in this SAP note which can be used for executing a tax calculation based on the information of the BAPI (parameter ACCOUNTGL, and so on) before the calling of BAPI. As per SAPKH60405, certain additional parameters (for example, ITEMNO_TAX) are contained by the BAPIs. As of SAPKH60405, the method and this service class are only available. Prior to SAPKH60405, the other changes for releases are absolutely technical. The calculations result the system in returning the calculated data including ITEMNO_TAX in ACCOUNTGL and in ACCOUNTAX. This can be distributed (if required) in case of non-deductibility, by using the method in the same way as the total tax. This data can then be enhanced and compared with the relevant data to be posted, for example the taxes which were initially calculated in a non-SAP application, and later were used for the actual BAPI call for posting (bapi_acc_document_post). This can be changed before the call of the BAPI for posting, in case if the specification of total tax for the method is found to be insufficient (see the detailed sample report of the asset in which the total tax is specified). This method does not work for countries such as India and Brazil, and also for postings in which direct tax items and normal tax items are mixed. A return code not equal to 0 and error messages may get issued by the system, if the method doesn’t get executed successfully. 


×