cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to programmatically switch detail tabs in MIGO

leemaz731
Explorer
0 Kudos
502

I implemented BADI MB_MIGO_BADI and added a new sub-screen tab called Lot Detail.

leemaz731_0-1728330607140.png

The business is requesting that after the PO is entered for a goods receipt that the "Quantity" tab be displayed first versus the tab "Lot Detail".  Can someone point me in the right direction?

 

Accepted Solutions (0)

Answers (2)

Answers (2)

iyaua83
Explorer

 

For leemaz731,

You can use GuiXT as below, to activate the focus to Quantity tab.

 

Quantity_tab.gif

http://www.youtube.com/@Simplified-erp

Sandra_Rossi
Active Contributor

I guess that you're looking for a user exit. The buttons of a tabstrip control in a Dynpro are static, the only possibility to have them variable is that the program implements a generic text for each, but you can see by yourself that it's not the case here.

Debugger Dynpro Analysis:

Sandra_Rossi_0-1728377009909.png

SAPLMIGO 0300

Sandra_Rossi_1-1728377090834.png

Screen Variants and GuiXT can't move tabs, maybe SAP Screen Personas can?

EDIT July 9th, 2025 : I'm wrong for GuiXT, it can't move tabs, but it can activate the tab you want; to show the Quantity tab (instead of the Material tab), use "setactivetab P[Quantity]" (credit: @iyaua83). Synactive documentation: SetActiveTab.

EDIT July 9th, 2025 : I'm wrong for GuiXT (twice), it can move tabs, use "Pos P[Quantity] 1" (credit: @iyaua83). Synactive documentation: Pos.

Otherwise, go for a modification of the standard.

iyaua83
Explorer

Hi Sandra,

Thanks for the kudo, and just for your info, that moving the tab position is also possible in GuiXT.

 

MoveTheTab.gif

If you want to know more about GuiXT, feel free to visit my youtube channel:

http://www.youtube.com/@Simplified-erp

 

 

 

Warm regards,

iyaua83