Application Development and Automation 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: 
Read only

BAPI for MIRO

Former Member
0 Likes
1,656

Hi,

When an incoming vendor invoice is HOLD (using HOLD button in MIRO, the invoice would be an G/L invoice, and at that time, the user is not sure about cost center or account, etc, so they just HOLD the invoice) in SAP. We can use BAPI_INCOMINGINVOICE_GETDETAIL to get what has been entered in that vendor invoice.

But after read the invoice data out, are there any BAPI I can use, to make some changes to the existing HOLD invoice (i.e. change the line cost center, account ), and POST that?

I am using a 4.7 system. BAPI_INCOMINGINVOICE_CHANGE does not exist.

Thanks in advance.

3 REPLIES 3
Read only

Former Member
0 Likes
1,033

BAPI-step by step procedure

http://www.sapgenie.com/abap/bapi/example.htm

list of all BAPI's

http://www.planetsap.com/LIST_ALL_BAPIs.htm

Rewards if useful.........

Minal

Read only

Former Member
0 Likes
1,033

Hi Chenyu,

to modify an held or parked invoice, you have mainly two options, depending on which release of SAP you are working on:

- BAPI_INCOMINGINVOICE_CHANGE, released on 24.05.2005 and available on ECC 6.0

- MRM_INVOICE_CHANGE, belonging to function group MR1M, which is not properly a BAPI, but a function at a lower level used by standard transactions such as MIRO and MIR4.

You can then post a parked invoice using fm MRM_PARKED_INVOICE_POST. An example of the code for doing this can ben found in method PreliminaryPost of Business Object BUS2081.

Best Regards,

Antonio

Read only

madhu_vadlamani
Active Contributor
0 Likes
1,033

Hi Chenyu,

Check the fm given by Antonio.Use that fm and make your own rfc and get the details. Check this and post if need any help.

Regards,

Madhu.