Application Development 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: 

MIGO BADI - Check line item after clicking on ITEM_OK Field in MIGO

Former Member
0 Kudos

Hi,

I am looking for Enhanacement option for MIGO Transaction . What i found it, there is one Badi MB_MIGO_BADI at the creation of material document. When i click on ITEM_OK Field at material line item level. and click on CHECK Button, i want to check material master if that material is having QM View or not . That i can write in one of the method in badi which i found is CHECK_ITEM bt that method is having parameter called I_LINE_ID which have line item no. bt how should i get material doc. no and material no. at that line item?

Plz try to give me solution.

Thanks & Regards,

Saurin Shah

1 ACCEPTED SOLUTION

former_member262988
Active Contributor
0 Kudos

Hi,

Do one thing use the same badi MB_MIGO_BADI and in the method LINE_MODIFY export the CS_ITEM data to memory id ....

and in the method CHECK_ITEM import the same form memory id and check..

Thanks,

Shailaja Ainala.

5 REPLIES 5

former_member262988
Active Contributor
0 Kudos

Hi,

Do one thing use the same badi MB_MIGO_BADI and in the method LINE_MODIFY export the CS_ITEM data to memory id ....

and in the method CHECK_ITEM import the same form memory id and check..

Thanks,

Shailaja Ainala.

0 Kudos

hi,

As u asked me, to use line_modify method, bt cs_goitem attribute doesnt contain any data when i clicked on OK_ITEM field so how to fech material for that line item. if i use check_item method, I get line item id which i clicked bt how to get material for that which is in Purchase order.

Thanks,

Saurin Shah

Former Member
0 Kudos

Hi,

Try like below:



data: ls_MSEG type TY_T_MSEG.
ls_MSEG  = im_item->get_data( ).

Regards,

Himanshu

Former Member
0 Kudos

Hi,

When you are posting a GR against PO when you check the document

Method Line_modify of the badi MB_MIGO_BADI is gettin triggered and if you check the importing parameter cs_goitem

it is getting populated wit the values of the lime item

Like you said material no, po number, batch no, item no etc.

Since you can get this details as you said you can check for the view maintained.

Hope this help you.

Regards,

Ranjith N

Former Member
0 Kudos

by self