cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the tax spliting functionality using BAPI_ACC_DOCUMENT_POST

Former Member
0 Kudos

Hi Experts,

In FB01 tcode when we post the invoice separate tax line item is getting created automatically.

But we are posting invoice with BAPI_ACC_DOCUMENT_POST here it is not happening.

Before posting this question here found a thread https://scn.sap.com/docs/DOC-43262.

Here from the thread info we implemented the BADI and enabled the tax calc flag and implemented the exit.

Still the separate tax line item is not getting created.

Can any one please clarify how we can acheive that functionality.

Thanks in advance.

kind regards,

Shiva

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Answers (3)

Answers (3)

Former Member
0 Kudos

Dear Deepanshu / Mani Kumar,

Thanks for quick reply.

With those FMs if we enter the tax values to BAPI it is not displaying it as separate line item.

Here our requirement is to post tax as seperate line item.Kindly please let me know how to acheive it.

Thanks in advance

Regards,

Shiva

suma_mani
Active Contributor
0 Kudos

Hello Shivram,

Your requirement is post FI document with tax line item's automatically with using above BAPI ( FI Posting) ! Suppose you want to post vendor invoice as mentioned below.

Expenses account.......Dr.....100

Input tax account.........Dr.......10

  To Vendor account..............Cr....110

Your upload format should be as mentioned below to post above document in SAP.

Item NoCompany codePos.dateDoc.dateCurrencyRefHeader textPKAccountAmountTax codeAssignmentText
00001123428.05.201428.05.2014USDTESTTEST40E12345600XATSTTEST
00002123428.05.201428.05.2014USDTESTTEST3110016160

Tax code line item of above '00001 pass in to Calculate tax BAPI which was mentioned above with all required fileds & you can get one retrun table over there > those line items ,you have to pass as additional line item in FI document. ( Through coding). Check with technical consultant.

Read note : 1873588 - Filling tax information for BAPIs


626235 - Tax postings with accounting BAPIs


Above notes only information purpose

Regards

Mani Kumar

former_member188028
Active Contributor
0 Kudos

Hi Mani,

I recommend you to write a blog on how to search sap notes quickly. 🙂

Rgds

Murali. N

suma_mani
Active Contributor
0 Kudos

Hi Shivaram,

CALCULATE_TAX_FROM_GROSSAMOUNT / CALCULATE_TAX_FROM_NET_AMOUNT

You must have to use above said BAPI's based on your requirement to fetch TAX line items separatly & adopt same line items in  BAPI_ACC_DOCUMENT_POST to post FI document. Must be pass tax code ,currency,either gorss or net amount of expenses in above BAPI's & you can get taxable line items ( If nondeducible ,you can get amount only without tax GL accounts and condition's types).You can get all details like tax GL accounts ,condition's ,accounting key & tax line item wise amounts ,if it is deducitble).

Regards

Mani Kumar

Former Member
0 Kudos

Hi Shiva,

Check if relevant tax code is also getting passed to BADI.

Thanks,

Deepanshu