cancel
Showing results for 
Search instead for 
Did you mean: 

MIRO Simulation - BAPI, Sample Code

0 Kudos

Hi All,

I am looking for BAPI to post MIRO with simulation (read the data once I pass the PO number).

And post the Invoice. Appreciate if you mention the BAPI if you know and sample code is appreciated.

Thank you

Iver

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi Iver,

BAPI_INCOMINGINVOICE_CREATE1 should meet your needs. It can Hold, Park, Park as complete, and Post by using the import parameter InvoiceStatus. "Hold" is probably what you are looking for to do a simulation. Here is the BAPI documentation on "Hold"... "The system saves an incomplete invoice document and carries out minimum checks to determine if there is a company code, for example. The purchase order history is not updated, nor is data posted to financial accounting." Read the Function Module Documentation for this BAPI; it is well-documented. Also, if you search this BAPI you can find code examples in the SAP Community.

Respectfully,

Brian