10-19-2007 4:20 PM
Hello Experts,
I'm using de BAPI BAPI_INCOMINGINVOICE_CREATE. It works OK, but the Accounting document shows me the Wtax base, Wtax amount and Wtax Code as initials
The vendor in the Master Record for Acounting Information has the W tax Code = AS
When I'm using the MIRO to do the same, the Accounting document generated is complete. And the Amount Split Tab shows me data.
Did I need an extra parameter to use the BAPI?
This is the code that i have in my program
I search the data from the PO to send it into this parameters
CALL FUNCTION 'BAPI_INCOMINGINVOICE_CREATE'
EXPORTING
headerdata = headerdata
IMPORTING
invoicedocnumber = belnr
fiscalyear = gjahr
TABLES
itemdata = itemdata
return = return1.
Thanks.
10-19-2007 4:23 PM
hi Francisco,
probably you have to fill the TAXDATA tables of the BAPI.
ec
10-19-2007 4:46 PM
Hello Eric,
I tried to fill this table, but doesn't generated the information that i need.
Probably because is a W tax and not an added tax.
I tried to fill the table WITHTAXDATA and it didn't work too.
I need that the BAPI works like the MIRO with the data for the Amount Split.
In the MIRO the Amount Split contains: Amount, Payment Method, Terms of Payment Key and Withholding Tax Code. I have this data, but I don't know where put this in the BAPI.
Thank u.
FC