02-15-2007 4:50 PM
Hello Friends ,
I have 2 screens for update . Screen1 contains the general info of the employee and screen2 the Salary info . User enters General info in screen1 and uses a push button to go to screen2 to update salary info . Sometimes the user forgets to go to screen2 .
I am planning to use Tab functionality . Is there a way we could modify the existing screen and implement using tab strips . Can I cover the whole screen2 into 1 tab and screen1 in another tab ? How much of redesigning needs to be done . Please advise .
Thanks & Regards,
02-15-2007 7:06 PM
You need to create a main screen to hold the sub screens (screen1 & screen2). Add a tabstrip control (sub1) to this main screen, and create tabs (TAB1, TAB2, etc.).
In the PBO event, write a routine that calls a module (choose_subscr) that sets each of the subscreens, depending upon which tab control is clicked;
PROCESS BEFORE OUTPUT.
...
module choose_subscr.
CALL SUBSCREEN sub1 INCLUDING sy-cprog dynnr.
* module choose_subscr:
CASE mytabs-activetab.
WHEN 'TAB1'.
dynnr = screen1.
WHEN 'TAB2'.
dynnr = screen2.
WHEN OTHERS.
mytabs-activetab = 'TAB1'.
dynnr = 101.
ENDCASE.
You will also need to code some modules to handle the updates in addition to this.
Hope this helps.
John O.
02-15-2007 7:06 PM
You need to create a main screen to hold the sub screens (screen1 & screen2). Add a tabstrip control (sub1) to this main screen, and create tabs (TAB1, TAB2, etc.).
In the PBO event, write a routine that calls a module (choose_subscr) that sets each of the subscreens, depending upon which tab control is clicked;
PROCESS BEFORE OUTPUT.
...
module choose_subscr.
CALL SUBSCREEN sub1 INCLUDING sy-cprog dynnr.
* module choose_subscr:
CASE mytabs-activetab.
WHEN 'TAB1'.
dynnr = screen1.
WHEN 'TAB2'.
dynnr = screen2.
WHEN OTHERS.
mytabs-activetab = 'TAB1'.
dynnr = 101.
ENDCASE.
You will also need to code some modules to handle the updates in addition to this.
Hope this helps.
John O.