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 No | Company code | Pos.date | Doc.date | Currency | Ref | Header text | PK | Account | Amount | Tax code | Assignment | Text |
00001 | 1234 | 28.05.2014 | 28.05.2014 | USD | TEST | TEST | 40 | E1234 | 5600 | XA | TST | TEST |
00002 | 1234 | 28.05.2014 | 28.05.2014 | USD | TEST | TEST | 31 | 1001 | 6160 |
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