Hi All,
I am using the BAPI BAPI_ACC_DOCUMENT_POST in my program to post the FB01 documents.
If i do not give any input in the table ACCOUNTGL (Field Name: TAX_CODE), the document is being posted with a tax code '20'.
If i give the input for Tax code with proper value, the document gets posted with the given tax code.
I have tested this scenario (for same GL account ) manually in transaction code FB01 without giving the Tax Code and system displays an error that tax code is mandatory for the given GL account.
I have checked in FS00 for the given GL account and found that tax code is being made mandatory and hence there will be error message in FB01.
Can any one help me why BAPI will consider the default tax code '20' (Exempt Input VAT 0 %) even if the value is not given in the input???
Regards
Pavan