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: 

how to hide tabstrip Control at runtime?

Former Member
0 Kudos

hi to all.

i used a tabstrip control in my screen.

i want to make my tabstrip visible or invisible based on t-code

for my screen.

it will be total based on t-code.

if i will enter t-code zins11 it will show me tabstrip for screen 100.

if i will enter t-code zins12 it will hide me tabstrip for screen 100.

Reply me.

thanks.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

U have to call the subscreen right.

Check with sy-tcode.

If sy-tcode matches call the screen other wise don't call it.

Regards,

Angi.

5 REPLIES 5

Former Member
0 Kudos

You have to create a main screen(9000) with a subscreen area,

You have to create two sub screens 100 with your tabstrip and 101 a blank screen.

when transaction is zins11, then call subscreen 100 in your sub screen area and

when transaction is zins12, then call subscreen 101 in your sub screen area .

Former Member
0 Kudos

If you don't mind seeing the blank grey Tab Strip control box and simply hiding the tabs, this code will help.


  LOOP AT SCREEN.
    IF screen-name CP 'TS_TEST1_TAB*'.
      screen-active = 0.
      modify screen.
    ENDIF.
  ENDLOOP.

where my Tab Strip name was 'TS_TEST1

0 Kudos

sorry to say,

but it can'nt work for tabstrip. i was already check this option.

thanks.

0 Kudos

Vip,

You will note that my code hides the tabs.. that was my statement.

Former Member
0 Kudos

Hi,

U have to call the subscreen right.

Check with sy-tcode.

If sy-tcode matches call the screen other wise don't call it.

Regards,

Angi.