‎2008 Jun 30 12:52 PM
Hi,
We are creating invoices using BAPI_ACC_INVOICE_RECEIPT_POST. However Tax is not getting calculated for the line items even if we pass the tax data through the field u201CTAX_CODEu201D in the table u201CACCOUNTGLu201D. The Tax value is to be updated in table BSEG and BSET, which is not happening after the IDOC posting. Please advice whether we need to pass the parameter (table) u201CACCOUNTTAXu201D (with data filled) in order to calculate the tax for the line items.
We are passing the following parameters presently and IDOCS are getting posted successfully even though tax amounts are not getting calculated.
CALL FUNCTION 'BAPI_ACC_INVOICE_RECEIPT_POST'
exporting
DOCUMENTHEADER = DOCUMENTHEADER (With data)
CUSTOMERCPD = CUSTOMERCPD (blank)
importing
OBJ_TYPE = OBJ_TYPE (blank)
OBJ_KEY = OBJ_KEY (blank)
OBJ_SYS = OBJ_SYS (blank)
tables
ACCOUNTPAYABLE = ACCOUNTPAYABLE (Filled with data)
ACCOUNTGL = ACCOUNTGL (Filled with data)
ACCOUNTTAX = ACCOUNTTAX (blank)
CURRENCYAMOUNT = CURRENCYAMOUNT (Filled with data)
PURCHASEORDER = PURCHASEORDER (blank)
PURCHASEAMOUNT = PURCHASEAMOUNT (blank)
RETURN = RETURN
CRITERIA = CRITERIA
VALUEFIELD = VALUEFIELD
EXTENSION1 = EXTENSION1
exceptions
OTHERS = 1
Regards,
Gaurav.
‎2008 Jun 30 1:25 PM
‎2008 Jun 30 1:25 PM