08-26-2009 12:22 PM
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
08-26-2009 1:11 PM
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.
08-26-2009 1:11 PM
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.
08-27-2009 4:55 AM
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
08-26-2009 1:55 PM
Hi,
Try like below:
data: ls_MSEG type TY_T_MSEG.
ls_MSEG = im_item->get_data( ).
Regards,
Himanshu
08-27-2009 7:49 AM
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
08-29-2009 6:32 AM