02-14-2009 4:39 PM
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
02-14-2009 7:33 PM
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.
02-14-2009 7:33 PM
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.