Application Development 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: 

error on posting BAPI_ACC_DOCUMENT_POST with vat for GL

sutthawee
Explorer
0 Kudos

Hello,

I got error message from BAPI_ACC_DOCUMENT_POST for GL, by passing data on internal table CURRENCYAMOUNT and ACCOUNTGL, "FF 848 Entry of tax for D7 001 (company code) (GL account number) < is not possible because of tax base 0".

To call function "BAPI_ACC_DOCUMENT_POST" I fulfilled CURRENCYAMOUNT like
  lw_currencyamount-itemno_acc = line item.
lw_currencyamount-curr_type = currency type
lw_currencyamount-amt_doccur = amount
lw_currencyamount-amt_base = base amount
lw_currencyamount-currency = currency (depends on curr type)
lw_currencyamount-exch_rate = (exchange rate)
APPEND: lw_currencyamount TO gt_currencyamount.
I tried include ACCOUNTTAX and the return was "The return was "E RW 014 FI/CO interface: Line item entered several times".

But without tax, I can post GL and posting AP(with vat and without vat) though BAPI_ACC_DOCUMENT_POST without any error.

Could you please suggest how to post GL with vat?

Thank you in advance,

Suth

1 ACCEPTED SOLUTION

DominikTylczyn
Active Contributor

Hello sutthawee

Check the note 626235 - Tax postings with accounting BAPIs that explains how to post taxes with the BAPIs.

Best regards

Dominik Tylczynski

1 REPLY 1

DominikTylczyn
Active Contributor

Hello sutthawee

Check the note 626235 - Tax postings with accounting BAPIs that explains how to post taxes with the BAPIs.

Best regards

Dominik Tylczynski