cancel
Showing results for 
Search instead for 
Did you mean: 

BadI problem in MIGO

Former Member
0 Kudos

Dear Experts,

I need to do some validation in MIGO tcode based on item Purchase Order and item. I have already identified badi MB_MIGO_BADI and methods CHECK_ITEM also. but problem is in CHECK_ITEM method having Item Number only as Input parameter. I am unable to get PO Number and Item in this method to do validation.

Please let me know how can i get Po number and Item in my methos CHECK_ITEM???

Thanks in Advance,

Siva

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member230674
Contributor
0 Kudos

Hi Siva,

If there is no PO number is available, fetch the global data of PO number from MIGO screen using field symbols.The following example will help to get it into your method CHECK_ITEM.

FIELD-SYMBOLS: <FS_PONUM> TYPE EBELN.

DATA: w_ebeln type ebeln.

ASSIGN ('(SAPLMIGO)GODYNPRO-PO_NUMBER') TO <FS_PONUM>.

MOVE <FS_PONUM> TO w_ebeln.

Thanks,

Prasad GVK.

madhu_vadlamani
Active Contributor
0 Kudos

Hi Siva,

Check like this

CALL METHOD im_header->get_items

RECEIVING

re_items = lt_items. If you use this method you can not get po no.

Suppose if your business requirement is to check when ever an item enter in line then you can use line_modify.This will fire when ever you enter line item.In this case you can use parameter cs_goitem for po reference.If there is any macro available then easy to give the message.

Regards,

Madhu.

Edited by: madhurao123 on Sep 26, 2011 11:20 PM