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: 

Selection screen TAB Problem

Former Member
0 Kudos

Hi Experts,

I have one selection screen with 2 tabs.sub-screen 9001 as TAB1 and sub-screen-9002 as TAB2.

When i am throwing an success or information message in start of selection event and again coming back to selection screen, it is showing me the TAB1 as default.

But my requirement is if i am executing it from TAB2 and throwing any message in start of selection event, it should comes selection screen with same TAB from where I executed i.e. TAB2.

Thanks

1 ACCEPTED SOLUTION

former_member156446
Active Contributor
0 Kudos

at selection-screen.

CASE sscrfields-ucomm.
WHEN 'tabs'.
tabs-prog = 'ZU_EXT_SER_ORD'.
tabs-dynnr = 8. "9001 or 9002 is ur case
tabs-activetab = 'TAB2'.  "default tab
ENDCASE.

SELECTION-SCREEN BEGIN OF TABBED BLOCK tabs FOR 11 LINES.
SELECTION-SCREEN TAB (10) tab1 USER-COMMAND tab1
DEFAULT SCREEN 8. "#EC NEEDED
SELECTION-SCREEN TAB (10) tab2 USER-COMMAND tab2
DEFAULT SCREEN 12. "#EC NEEDED
SELECTION-SCREEN END OF BLOCK tabs.

1 REPLY 1

former_member156446
Active Contributor
0 Kudos

at selection-screen.

CASE sscrfields-ucomm.
WHEN 'tabs'.
tabs-prog = 'ZU_EXT_SER_ORD'.
tabs-dynnr = 8. "9001 or 9002 is ur case
tabs-activetab = 'TAB2'.  "default tab
ENDCASE.

SELECTION-SCREEN BEGIN OF TABBED BLOCK tabs FOR 11 LINES.
SELECTION-SCREEN TAB (10) tab1 USER-COMMAND tab1
DEFAULT SCREEN 8. "#EC NEEDED
SELECTION-SCREEN TAB (10) tab2 USER-COMMAND tab2
DEFAULT SCREEN 12. "#EC NEEDED
SELECTION-SCREEN END OF BLOCK tabs.