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: 

Call MB_MIGO_BADI for Search Help Exit

Former Member
0 Kudos

Hi Experts,

I have a BADI for T-code MIGO, Where a new Tab is Created in header which is only trigerred for GR. One field(Gate_entry_no) which has a reference of Purchase Order no , is inputable . When press F4 its showing all the Gate_Entry_No s from Ztable .

I want it to be only for that particular Purchase Order .

Should I make a search help exit For that . If so then I need to call the badi ,

I need to get the Goitem values , which is available in line_modify method

Source Code Of that function-Module :

DATA:BADI TYPE REF TO MB_MIGO_BADI ,

ok_code type syucomm ,

i_gohead type gohead ,

i_line_id1 type mb_line_id ,

cs_goitem1 type goitem .

IF CALLCONTROL-STEP = 'DISP'.

call BADI badi->line_modify

EXPORTING

i_line_id = i_line_id1

CHANGING

cs_goitem = cs_goitem1.

select entry_no ebeln ebelp from zmm_gate_entry_d into TABLE itab

where ebeln = cs_goitem1-ebeln .

if sy-subrc = 0 .

RECORD_TAB[] = ITAB[] .

endif .

EXIT.

ENDIF.

But cs_goitem1 is not getting values.

Please Correct My code .

alternatively I can use Process On Value Request event.

But the same badi i have to call .

So kindly help me to fetch the goitem values

6 REPLIES 6

Former Member
0 Kudos

I have passed values '00001' in i_line_id1 .

0 Kudos

its solved,,,,,,but I expected some help from So called 'Gurus'

0 Kudos

Hi,

I too got the same problem

can you say me how u have resolved the issue.

Thanks,

Regards,

Archana.

0 Kudos

Hi Archana ,

I will definately help u,, Just tell me the exact requirement . May be my requirement was different from urs .

0 Kudos

Hi ,

We have requirement for adding barrier name and Transporter name in migo . i am suuccesful in getting the display of tab containing these two screen elelments bt cant able 2 get the logic of saving these fields to mkpf table when document is posted .Can anyone suggest ??

0 Kudos

Hi ,

use IF_EX_MB_MIGO_BADI~POST_DOCUMENT method if u r using badi -mb_migo_badi .

Go through the example under mb_migo_badi, class CL_IM_MB_MIGO_BADI .

Define an attribute like GS_EXDATA_HEADER, there u put ur custom screen fields

Then in post document method pass those GS_EXDATA_HEADER in Is_mkpf .

Just check the example, In am sure u will do it .

good luck!