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: 

BAPI_INCOMINGINVOICE_CREATE

0 Kudos

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.

2 REPLIES 2

JozsefSzikszai
Active Contributor
0 Kudos

hi Francisco,

probably you have to fill the TAXDATA tables of the BAPI.

ec

0 Kudos

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