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

Issue with BAPI_INCOMINGINVOICE_POST function module.

Former Member
0 Likes
8,154

Hello Experts,

I require urgent help on the below issue.

I created a hold MIRO document using FM MRM_INVOICE_PARK without any errors.

But when I tried to post the MIRO document using BAPI_INCOMINGINVOICE_POST, I am facing the below error ..

I also tried to create MIRO document in hold status manually and tried to post it via BAPI_INCOMINGINVOICE_POST .. But even then I am facing the

above error.

Please suggest  a solution for my above issue.

Thanks & Regards

Anurag K

18 REPLIES 18
Read only

RaymondGiuseppi
Active Contributor
0 Likes
6,636

Did you look for OSS notes as 1397768 - MRDC: Error M8 607 in routine MRM_DRSEG_FILL(SAPLMRMH)?

Regards,

Raymond

Read only

Rushikesh_Yeole
Contributor
0 Likes
6,636

HI,

I will suggest put breakpoints in FM; check f_SUBRC

Based on value debug particular form.

I think problem with filling line item data.

You cant compare MRM_INVOICE_PARK with BAPI.

Debugging will help you surely.

Read only

0 Likes
6,636

Hello experts,

When I tried to post he document via BAPI_INCOMINGINVOICE_POST , I am also getting the below error sometimes.

 

   I tried passing all the parameters to the BAPI_INCOMINGINVOICE_POST, but still i am getting the

   above error.

   I even tried to implement the above note mentioned by Raymond.. But has no effect.,

   Please help me ..

   Thanks

   Anurag

Read only

0 Likes
6,636

Are you actually able to do this with the transaction MIRO (case of item no longer selectable, as when final invoice box is checked on PO) so parking allowed, but expect some corrections to be applied to invoice before allowing posting.

Regards,
Raymond

Read only

0 Likes
6,636

Hello Raymond,

Could you please clarify me what is the reason behind the above message ME 708.

The PO associated with above hold MIRO document number is as below:

Please advice me ..

Thanks

Anurag

Read only

0 Likes
6,636

Not from distance... could you look at history tab of item, some GR seems required is there one?

Regards,

Raymond

Read only

0 Likes
6,636

Yes, there is tick for GR based IV( GR based invoice verification).

Regards

Anurag

Read only

0 Likes
6,636

Yes, you did already post it , but change tab to PO history, is there a GR?

Read only

0 Likes
6,636

Hello Raymond,

Since the  MIRO doc is not yet posted, and since it is on hold , we cannot see history tab for that PO item. There is no GR too.

Thanks

Anurag

Read only

0 Likes
6,636

With "GR based IV" checked you shouldn't be allowed to post invoice as long as there is no GR, should you?

Regards,

Raymond

Read only

0 Likes
6,636

Hello Raymond,

When I tried to manually create the MIRO document on hold and post manually . It is posting successfully ( with GR Based IV check for the PO).

But with ( with GR Based IV check for the PO), when I tried to post with BAPI_INCOMING INVOICE_POST , it is not getting posted and i am getting the above error ITEM 0010 of PO 4501040972 is not selectable.

I checked with my functional person and he said that GR based IV check is required in PO. Only then after posting GR number gets created.

Kindly suggest a solution please ...

Thanks

Anurag.

Read only

former_member182371
Active Contributor
0 Likes
6,636

Hi,

you could try something like this:

Report to post a parked invoices parked using transaction  MIR7

Best regards,

Pablo

Read only

0 Likes
6,636

Hello Pablo

I cannot find the below report in SE38. I need to post the held document.

FMFG_HELD_INVOICES u2013 Document list for Parked and held document..

Thanks

Anurag

Read only

0 Likes
6,636

Hi,

i was referring to zz_post_parked_invoice.

Best regards,

Pablo

Read only

0 Likes
6,636

Hi,

I am getting the same error for my MIRO document if i use those FM's in the report ZZ_post_parked_invoice.

The item 0010 for purchasing document XXXX not selectable.

Could u please comment ..

Thanks

Anurag

Read only

0 Likes
6,636

Hi,

why don' t you do a "where used" search of message ME 708 and put break-points there and execute again?.

If you do that, you will find the answer yourself.

have you cancelled the document in MR8M?

could you please check the status of that invoice?

Best regards,

Pablo

Read only

Former Member
0 Likes
6,636

Hello Raymond,

PO item is there. Its not deleted.

Please let me know how to post the held document by avoiding the above error.

I would be grateful to you....Please

Thanks

Anurag

Read only

0 Likes
6,636

I'm not able to reproduce your case, so either try to debug BAPI_INCOMINGINVOICE_POST (which of the 3 steps did raise the error) or raise an incident with SAP?

Regards,

Raymond