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 strip control

Former Member
0 Kudos

hi all

i designed a tabscrip control. i added total 4 tabs...

in 1st tab i have 2 radio buttons.

my requirement is if i choose 1st radio button all tab should be active.

if i choose 2nd radio button all tab should be in active .

how can i do that ?

2 REPLIES 2

Former Member
0 Kudos

Hi,

i am not sure how to do it exactly,

but you have the radion button

rb1 and rb2

there will be function codes for each tabstrip to be displayed

so dont call the subscreen if rb2 = 'X'.

i think this may work for you,....

regards,

Venkatesh

Former Member
0 Kudos

Hi Ramprasad,

i suppose, you have to set flag (active/not active) for tabs in PAI Blocks for ok_codes for your buttons and in PBO modify screen-active field for tabs respectively to flag state.

Let suppose, you have defined on your dynpro:

tabs: T1 T2 T3 and T4 and button with codes B1 (all enalble) and B1 (disable T2,T3 and T4).

1. Flag

data: gi_flaf type i."1 - all active, 0 - t2,t3,t4 not active.

2. PAI

case sy-ucomm.
when 'B1'.
   gi_flag = 1.
when 'B2'
   gi_flag = 0.
...
endcase.

3. PBO

loop at screen into wa_screen.
  if wa_screen-name = 'T2' or wa_screen-name = 'T3' or wa_screen-name = 'T4'.
    screen-active = 0.
    modify screen from wa_screen.
  endif.
endloop.