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 Screen Exit

Former Member
0 Kudos

Hello,

          I have a requirement to create new tab in migo transaction.

         I used badi MB_MIGO_BADI   to create a new tab in migo transaction.

         After creating new screen and calling the screen in pbo details i am getting two tabs.

         Kindly let me know how to create one tab ?

Regards

Srinivas

4 REPLIES 4

Former Member
0 Kudos

tab is getting duplicated twice after implementing above badi

madhu_vadlamani
Active Contributor
0 Kudos

Hi Srinivas,

Check in pbo what are things mentioned.

Regards,

Madhu.

0 Kudos

Hello Madhu,

            I wrote the following code.

     data : gf_class_id type migo_class_id.

gf_class_id = 'MIGO_BADI_IMPLEMENTATION_CIN'.

e_cprog = 'z_mm_migo_add_tab'.

e_dynnr = '0100'.

e_heading = text-001.

Regards

Srinivas

0 Kudos

Hi Srinu,

Initially i got the same when i did.

data : gf_class_id type migo_class_id.

   DATA: ls_extdata TYPE migo_badi_example_screen_field.

   CHECK i_class_id = gf_class_id.

*  BREAK abapdev.

*gf_class_id = 'MIGO_BADI_IMPLEMENTATION_CIN'.

e_cprog = 'Z_MIGO'.

e_dynnr = '0001'.

e_heading = 'CUSTOM'.

* g_line_id = i_line_id.

* Read data

*  READ TABLE gt_extdata INTO ls_extdata

*     WITH TABLE KEY line_id = i_line_id.

* Export data to function group (for display on subscreen)

   CALL FUNCTION 'MIGO_BADI_EXAMPLE_PUT_DATA'

     EXPORTING

       is_migo_badi_screen_fields = ls_extdata.