Skip to Content
author's profile photo Former Member
Former Member

how to hide tabstrip Control at runtime?

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Apr 09, 2008 at 01:47 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 09, 2008 at 12:13 PM

    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 .

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 09, 2008 at 12:20 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.