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

MIGO BADI -for posting errors while creating a GR

Former Member
0 Likes
583

Hi,

I am trying to post errors while creating a goods receipt from MIGO T-Code.The errors should state inconsistency between line items of the multiple PO numbers.For this I am using a BADI Mb_check_line_badi.I am able to produce the errors for as single line item but cannot find a way to loop the rest line items for the MSEG table,as  IS_MSEG is  a structure and the BADI is called once per item.

So is there any other alternative?

Please suggest.

3 REPLIES 3
Read only

custodio_deoliveira
Active Contributor
0 Likes
518

Hi Sarita,

I think I replied to this on your other thread . Maybe you should keep only one thread active, don't you think?

cheers,

Custodio

Read only

Former Member
0 Likes
518

Hi Sarita,

Loop all the line items of the PO and collect the messages to the internal table based up on the status key field. i.e RBSTAT.

Let me know if any clarification/help required.

Thanks & Best Regards.

Pavan Neerukonda.

Read only

Former Member
0 Likes
518

Hi Sarita,

Use BADI    :MB_MIGO_BADI

Method       :  Post_document

you have mseg table over there.