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: 

Problem Withholding tax in BAPI_INCOMINGINVOICE_CREATE

former_member607089
Participant
0 Kudos

Hi:

I have a problem with BAPI_INCOMINGINVOICE_CREATE, I have to create an invoice Withholding tax. There is only one vendor. I fill table WITHTAXDATA (I think all data are correct) and there are no messages in RETURN table of bapi (any error message), but there are no data in withholding tax when in enter in MIRO to see invoice. When I create an invoice manually, I have no problem in withholding tax for the same vendor.

Please, could you help me? Find attached the code I use for bapi.

Thanks in advance.

Best regards

I_WITHTAXDATA-WI_TAX_TYPE = IP

I_WITHTAXDATA-WI_TAX_CODE = IP

I_WITHTAXDATA-WI_TAX_BASE= 500

I_WITHTAXDATA-WI_TAX_AMT = 10

Append I_WITHTAXDATA.

I have try too WI_TAX_AMT as null, but results are the same.

CALL FUNCTION 'BAPI_INCOMINGINVOICE_CREATE'

EXPORTING

headerdata = cab_fact

IMPORTING

invoicedocnumber = d_factura

TABLES

itemdata = i_fact_item

taxdata = i_fact_tax

withtaxdata = i_ withtaxdata

return = i_return.

1 REPLY 1

former_member607089
Participant
0 Kudos

Solved, It is necessary to implement SAP note 800261.