04-20-2007 10:51 AM
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.
04-25-2007 10:52 AM