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: 

Tab Strips

Former Member
0 Kudos

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,

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

1 REPLY 1

Former Member
0 Kudos

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.