Application Development and Automation 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: 
Read only

Tax Data calculation using BAPI_ACC_INVOICE_RECEIPT_POST

Former Member
0 Likes
812

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
523

hiiii

go throgh following link..it will solve your problem..

regards

twinkal

1 REPLY 1
Read only

Former Member
0 Likes
524

hiiii

go throgh following link..it will solve your problem..

regards

twinkal