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

add two fields in migo screen

Former Member
0 Likes
3,865

Hello Friends,

I have a requirement to add two fields called packsize and packno in the quantity tab of migo transaction code.

the user will enter packsize and packno in the respective fields and based on tht the quantity field should be updated..

Pls suggest

Regards,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,729

Hi Sunny,

Try with the [add fileds in MIGO|]

hope it helps you.

Regards!

Hello Friends,

I have a requirement to add two fields called packsize and packno in the quantity tab of migo transaction code.

the user will enter packsize and packno in the respective fields and based on tht the quantity field should be updated..

Pls suggest

Regards,

8 REPLIES 8
Read only

GauthamV
Active Contributor
0 Likes
2,729

Use this badi.

MB_MIGO_BADI

Read only

Former Member
0 Likes
2,730

Hi Sunny,

Try with the [add fileds in MIGO|]

hope it helps you.

Regards!

Read only

Former Member
0 Likes
2,729

Hi Sunny,

Try using exits preferably User Exits or BADI.

Check this link about user exits.

https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/208811b0-00b2-2910-c5ac-dd2c7c50...

Much Regards,

Amuktha.

Read only

Former Member
0 Likes
2,729

Hi

I would suggest you to check the USER Exits Present in MIGO , and do your changes accordingly.

Thanks

mrutyun^

Read only

rahul2000
Contributor
0 Likes
2,729

Hi Sunny,

I don't think u will be able to add new fields to the quantity tab.

But What u can do is Add your own Tab and here add those 2 fields that you want.

See the link below for the same.

Go to SAP Technical dot com and there go to BADI Tutorials

Rahul

Read only

Former Member
0 Likes
2,729

thnks

Read only

surajprakash_singh
Participant
0 Likes
2,729

****************************MIGO UI ENHANCEMENT*******************************

Step1 : Run Tcode se19 .

Step 2 :Go to group create enhancement and click on classic badi radio button

Step 3 :Enter badi name MB_MIGO_BADI and click on button create.

Step 4: In the pop up screen give you Implementation Name

Step 5:Enter the short text

Step 6:Go to interface tab

Step 7:Click on PBO_DETAIL method of interface .it will ask you to create the enhancement implementation

Step 8:Click on create button and enter Enhancement Implementation ,group etc in pop up screen appeared and ok.

Step 9:Now select your Enhancement Implementation just created in step 8.

Step 10:Go to PBO_DETAIL method

Step 11:And write the following code

METHOD if_ex_mb_migo_badi~pbo_detail.
DATA :gf_class_id TYPE migo_class_id,
g_no_input
TYPE  xfeld,
g_line_id
TYPE goitem-global_counter,
g_ext_data
TYPE ty_t_extdata.

gf_class_id
= 'MIGO_BADI_IMPLEMENTATION_CIN'.
e_cprog
= 'Z_MIGO_ENHANCEMENTS1'.
e_dynnr
= '0100'.
e_heading
= 'MIGO ENHANCEMENT'.
g_line_id
= i_line_id.
ENDMETHOD.

Step 12: Under PAI method declare the field to ‘X’.

   Code look Like:- method IF_EX_MB_MIGO_BADI~PAI_DETAIL.
E_FORCE_CHANGE
= 'X'.
endmethod.

Step 13: Under the line modify method declare a flag and set to ‘X’ checking for material document number by which we can set the fields to be in display mode when we open MIGO for display of material document created after doing goods receipt.

Code look like:- METHOD if_ex_mb_migo_badi~line_modify.
DATA flag(1) TYPE c.
IF cs_goitem-mblnr IS INITIAL.
flag
= 'X'.
ENDIF.
ENDMETHOD.

Step 14:Now go to se80 and make the MODULE program as mentioned in step  11 Z_VENDOR_ENHANCEMENTS1'

Step 15: Step make a sub screen 0100 as in step 11 .

Step 16: save and activate and test the migo.migo look like

Read only

divsmart
Participant
0 Likes
2,729

Hi surajprakash.singh

I am very new to BADI , i need to add an new tab in MIGO header level.

As above you have provided an item level adding an tab. Can you provide me an step by step procedure to add field on header level. If you provide me an screenshot also better

Need an urgent requirment.