Skip to Content
0
Aug 17, 2023 at 09:33 AM

error on posting BAPI_ACC_DOCUMENT_POST with vat for GL

68 Views

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