Application Development and Automation 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: 
Read only

TAB STRIPS

Former Member
0 Likes
606

Hello,

I have a Tab Strip.I am creating it using the tabstrip wizard.

I have a field on the first screen and tabstrip in the second screen.

Depending on the value in the parameter in the first screen,

i want the corresponding tab to be pressed and shown when the second screen is entered.

How can this be achieveds??

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
550

Hi

U need to insert a check for the value of the field of first screen, so in the PBO of the second one:

if tabstrip-activetab is initial.
  case field.
    when .... tabstrip-activetab = <ok-code for tab1>.
    when .... tabstrip-activetab = <ok-code for tab2>. 
  endcase.
endif.

Max

4 REPLIES 4
Read only

Former Member
0 Likes
550

Hi,

TABSTRIP-ACTIVETAB = 'TAB_NAME'

Depending on the condition use the above code

Regards

Sudheer

Read only

Former Member
0 Likes
550

Its not working!!

This is my code.........

TB_STRIP1-ACTIVETAB = G_TB_STRIP1-PRESSED_TAB.

CASE G_TB_STRIP1-PRESSED_TAB.

WHEN C_TB_STRIP1-TAB1.

G_TB_STRIP1-SUBSCREEN = '0201'.

WHEN C_TB_STRIP1-TAB2.

G_TB_STRIP1-SUBSCREEN = '0202'.

WHEN C_TB_STRIP1-TAB3.

G_TB_STRIP1-SUBSCREEN = '0203'.

WHEN C_TB_STRIP1-TAB4.

G_TB_STRIP1-SUBSCREEN = '0204'.

WHEN C_TB_STRIP1-TAB5.

G_TB_STRIP1-SUBSCREEN = '0205'.

WHEN C_TB_STRIP1-TAB6.

G_TB_STRIP1-SUBSCREEN = '0206'.

WHEN C_TB_STRIP1-TAB7.

G_TB_STRIP1-SUBSCREEN = '0207'.

WHEN OTHERS.

*&SPWIZARD: DO NOTHING

ENDCASE.

  • G_TB_STRIP1-PRESSED_TAB = TB_STRIP1-ACTIVETAB.

IF MDTB-DELKZ <> ' '.

IF MDTB-DELKZ = 'PA'.

TB_STRIP1-ACTIVETAB = 'TB_STRIP1-TB_STRIP1_TAB7'.

ENDIF.

ENDIF.

could u look into it.

Read only

Former Member
0 Likes
551

Hi

U need to insert a check for the value of the field of first screen, so in the PBO of the second one:

if tabstrip-activetab is initial.
  case field.
    when .... tabstrip-activetab = <ok-code for tab1>.
    when .... tabstrip-activetab = <ok-code for tab2>. 
  endcase.
endif.

Max

Read only

Former Member
0 Likes
550

didnt get it!!!