Skip to Content
Former Member
Jan 31, 2008 at 08:11 AM

BAPI_INCOMINGINVOICE_CREATE derivations and validations not happening



We are using BAPI_INCOMINGINVOICE_CREATE to generate LIV documents. We are finding that some of the derivations and validations that are performed in MIRO are not being performed by the BAPI. For example:

1. When you enter a cost object in MIRO, profit centre and functional area are automatically derived. This doesn't happen in the BAPI and the LIV document has blanks in these fields.

2. If you enter an amount in a foreign currency, it is automatically converted to local currency in MIRO, not in the BAPI.

3. If you specify a tax code against a GL account that is not tax relevant in MIRO you get an error message, but the BAPI posts without any problems.

My issue is - do I try to recreate this functionality (and a long list of others) in my code before the BAPI call, or is there some way to get the BAPI to do the correct derivations and validations?