Tabstrip control hidden

Hi ,
I am facing a very peculiar problem.
In my application I have to dynamically load tabs. For that I am looping into the screen and setting the SCREEN-ACTIVE = 'X' or ' ' when the SCREEN-NAME is tabname. Now I have a menu option Load dataset on press of which one more tab appears. If the order of that tab is after the currently loaded tab, then its working fine but if the new tab should come before the already loaded tab then it is hidden behind the already loaded tab.
eg. Suppose we have 2 tabs TAB1 and TAB2 such that TAB1 should come before TAB2. Currently TAB2 is loaded. If we select a menu option so that TAB1 is now loaded then it is hidden behind TAB2. Setting the active tab to TAB1 is also not solving the problem.
Please suggest some solutions for this problem .
Best Regards,
Saurabh
<removed_by_moderator>
Sample implementation -
Here I have 3 screen 100(main screen), 200 ( tab subscreen) and 300(tab subscreen)
REPORT  zfilter.
DATA : flag.
DATA : dynnr TYPE sy-dynnr.
CONTROLS tabst TYPE TABSTRIP.
CALL SCREEN 100.
*&      Module  USER_COMMAND_0100  INPUT
      text
MODULE user_command_0100 INPUT.
  IF sy-ucomm = 'TT3'.
    flag = 'X'.
  ENDIF.
  IF sy-ucomm  = 'LVE'.
    LEAVE PROGRAM.
  ENDIF.
ENDMODULE.                 " USER_COMMAND_0100  INPUT
*&      Module  STATUS_0100  OUTPUT
      text
MODULE status_0100 OUTPUT.
  SET PF-STATUS 'ZSTAT'.
  LOOP AT SCREEN.
    IF screen-name = 'TT1' AND flag IS INITIAL.
      screen-active = 0.
      MODIFY SCREEN.
    ENDIF.
    IF screen-name = 'TT1' AND flag IS NOT INITIAL.
      screen-active = 1.
      tabst-activetab = 'T1'.
      dynnr = '0200'.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.
  IF sy-ucomm IS INITIAL.
    tabst-activetab = 'TT2'.
    dynnr = '0200'.
  ELSEIF sy-ucomm EQ 'T1'.
    tabst-activetab = 'T1'.
    dynnr = '0200'.
  ELSEIF sy-ucomm EQ 'T2'  .
    tabst-activetab = 'T2'.
    dynnr = '0300'.
  ENDIF.
ENDMODULE.                 " STATUS_0100  OUTPUT
Edited by: Julius Bussche on Jun 23, 2008 8:44 PM

LEAVE TO SCREEN ?

Similar Messages

  • Adding tab in tabstrip control dynamically..........

    Hi ,
        I am using TabStrip control of PDK .NET. I want to add tab dynamically in tabstrip control.
    But I am getting error for any postback when I switch in between tabs.
    Error description is :
    <b>"Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index"</b>
    <b>Stack Trace:
    [ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index]
       System.Collections.CollectionBase.System.Collections.IList.get_Item(Int32 index) +2382545
       SAP.Web.UI.Controls.TabCollection.get_Item(Int32 index) +6
       SAP.Web.UI.Controls.TabStrip.LoadPostData(String sPostData, NameValueCollection oPostCollection) +92
       System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +674
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2965</b>
    Any help appreciated?
    Regards,
    Prashant

    Hi Prashant,,
    your index is less than zero, the postback will not store it unless you explicitly save it using 'enable view state' for the tree control, if it is already enabled and still not working: here is the work around :-
    you can store it in a hidden input field, so that it can be retrived when you do a postback, and then reassign the current index
    it should be a relatively simple fix
    please let me know how you get along...
    with respect,
    amit

  • Any suggestions to avoid refreshing of TabPanel content of TabStrip control?

    Hello,
    I am using sap.ui.commons.TabStrip to toggle different views. The content displayed in TabPanel is included into iframe to avoid naming collision might happened in distributed environment. Due to the internal mechanism of TabStrip control, if the content of iframe is not saved and user toggle to another view, when he comes back, the iframe will be refreshed and unsaved content will be lost.
    Take the example below, iframe has been used in Tab1 to avoid naming collision, once user switch to Tab2, the TabStrip control will move content "<iframe src='test.html'></iframe>" in DIV of Tab1 into the hidden div with ID "sap-ui-preserve" and remove the DIV of Tab1. Once user switches back to Tab1, the DIV of Tab1 is reconstructed with content in div "sap-ui-preserve", refreshing occurs and filled content by user disappears. To avoid this, we have to use DIV to replace iframe, which means SPA, but there might be naming collision when there are 5-6 tabs and the tab content are developed by different developers.
    I checked other Tab controls, the Div of tab1 will be simply hidden with CSS, refreshing would not occur. Any other reasons to reconstruct the content of invisible Tabs? Or any suggestions if we continue to use UI5 control "TabStrip"?
    var oTabStrip = new sap.ui.commons.TabStrip({width:"500px",height:"380px"});
    var oTab1 = new sap.ui.commons.Tab();
    oTab1.setTitle(new sap.ui.core.Title({ text: "iframeTab" }));
    var oHtml = new sap.ui.core.HTML({ content: "<iframe src='test.html'></iframe>" });
    oTab1.addContent(oHtml);
    oTabStrip.addTab(oTab1);
    var oTab2 = new sap.ui.commons.Tab();
    oTab2.setTitle(new sap.ui.core.Title({ text: "inputTab" }));
    oHtml = new sap.ui.core.HTML({ content: "<input type='text'></input>" });
    oTab2.addContent(oHtml);
    oTabStrip.addTab(oTab2);
    oTabStrip.placeAt("content");
    Thanks a lot for any suggestions or comments!
    Patrick

    Hello Sakthivel,
    Thanks for the reply! The background is we are using UI5 to implement one SRM application, and which is developed by 20 developers. For individual page, one part is developed by application developers and shell by framework developers, application UI is embedded in the shell.there is requirement to access the control and set the attributes in different js files.
    For the shell, it's developed with declarative view, there isn't way to choose the control without ID. For application UI, without ID, variable of control have to be global variable to allow others' code to access.
    Regards,
    Patrick

  • How can i hide a tabstrip control

    On my screen there are a pushbutton and a tabsrtip control which contain two tabs.
    initial,the tabstrip is visible,and the button with icon_collapse icon.
    then,i click the button ,and the tabstrip must be invisible,and the button's icon will change to icon_expand.
    if i use screen-name conditions to set the tab invisible,but the tabstrip has a shadow on the screen.the color of the space obtained by the tabstrip is different with other space's color.
    How can i set the color same with other if i want to hide the tabstrip.
    ths very much.

    see the example of custom tabstrip control for 0591 infotype
    MODULE ztab_strip_active_tab_set OUTPUT.
       IF  psyst-dsubt EQ 'BNPF'.
         g_ztab_strip-pressed_tab = c_ztab_strip-tab2.
         LOOP AT SCREEN.
           IF screen-group4 = '060'.
             screen-active = 0.
             MODIFY SCREEN.
           ENDIF.
         ENDLOOP.
       ELSEIF  psyst-dsubt EQ 'BNES'.
         g_ztab_strip-pressed_tab = c_ztab_strip-tab1.
         LOOP AT SCREEN.
           IF screen-group4 = '050'.
             screen-active = 0.
             MODIFY SCREEN.
           ENDIF.
         ENDLOOP.
       ENDIF.
       IF   psyst-dsubt NE 'BNPF' AND psyst-dsubt NE 'BNES'.
          LOOP AT SCREEN.
           IF screen-group4 = '050'.
             screen-active = 0.
             MODIFY SCREEN.
           ENDIF.
         ENDLOOP.
          LOOP AT SCREEN.
           IF screen-group4 = '060'.
             screen-active = 0.
             MODIFY SCREEN.
           ENDIF.
         ENDLOOP.
         g_ztab_strip-pressed_tab = ' '.
       ENDIF.
       ztab_strip-activetab = g_ztab_strip-pressed_tab.
       CASE g_ztab_strip-pressed_tab.
         WHEN c_ztab_strip-tab1.
           g_ztab_strip-subscreen = '0201'.
         WHEN c_ztab_strip-tab2.
           g_ztab_strip-subscreen = '0203'.
         WHEN OTHERS.
           g_ztab_strip-subscreen = '0202'.
       ENDCASE.
    ENDMODULE.                    "ZTAB_STRIP_ACTIVE_TAB_SET OUTPUT
    check this for hiding one tabstrip in one subtype and another in next subtype

  • How to insert tabstrip control in module pool screen painter

    Hi all!
    plz tell e how to use tabstrip control in module pool screen painter.Also plz give me an example program using tabstrip control.

    To insert tabstrip just open layout of screen and press on the tabstrip button there .
    Use this souce code further to activate it .
    CONTROLS tabstrip TYPE TABSTRIP.
    DATA: okcode TYPE sy-ucomm,
    dynnr TYPE sy-dynnr,
    flag type flag,
    active like tabstrip-activetab .
    call SCREEN 100.
    *& Module USER_COMMAND_0100 INPUT
    text
    MODULE USER_COMMAND_0100 INPUT.
    data: lv_okcode type syucomm.
    lv_okcode = okcode.
    clear okcode.
    case lv_okcode.
    WHEN 'TAB1'.
    dynnr = '0110'.
    WHEN 'TAB2'.
    dynnr = '0120'.
    WHEN 'TAB3'.
    dynnr = '0130'.
    WHEN 'TAB4'.
    dynnr = '0140'.
    WHEN 'TAB5'.
    "check authorization, if authorization fails
    flag = 'X'. "set the global flag
    active = 'TAB1'. "store active tab in global variable
    dynnr = '0110'. "set the screen number
    WHEN 'BACK' or 'EXIT'.
    leave program.
    ENDCASE.
    IF lv_okcode(3) = 'TAB'.
    tabstrip-activetab = lv_okcode.
    ENDIF.
    ENDMODULE. " USER_COMMAND_0100 INPUT
    *& Module STATUS_0100 OUTPUT
    text
    MODULE STATUS_0100 OUTPUT.
    SET PF-STATUS 'MAIN'.
    SET TITLEBAR 'xxx'.
    IF tabstrip-activetab IS INITIAL OR
    dynnr IS INITIAL.
    tabstrip-activetab = 'TAB1'.
    dynnr = '0110'.
    ENDIF.
    "set the activetab explicilty here
    if flag eq 'X'. "from authorization failure
    tabstrip-activetab = active. "'TAB1'
    clear flag.
    endif.
    ENDMODULE. " STATUS_0100 OUTPUT

  • 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.

    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

  • Query about TABSTRIP Control within Sub screen

    Hi Expert,
    I have requirement like follows:
    In IW32->Enhancement Tab screen is as subscreen and No: 0900.
    Now I want to have 2 different sub screen say 0910 and 0920 each of this for different purpose according to
    Order Type as per clients requirement.
    Actaully I have developed screen 0900 already for some order type and now clients requirement changed i.e.
    there are 2 different groups of Order types (say Grp1 and Grp2)
    So, I proposed a solution for this as follows:
    In Enhancement Tab of IW32 according to group of Order Type (either Grp1 or Grp2) only you will be able to
    see fields for that perticular Grp either of 2.
    Technical Solution is like...
    1) I thought that I will create 2 subscreens say 0910 and 0920.
    2) In 0910 i will insert all those fields which are designed already in 0900 which is for Grp1
    3) and for Grp2 i will design 0920
    4) according to Order Type only 0910 or 0920 client will be able to see.
    Now I got stuck in between the screen development for 0920 because there are so many fields and i said to
    client that they will be able to see those fields in different Tab strips.
    I never worked on Tab Strip concept, I search so many forums and sites for Lesson on Tab Strip but not
    understood how to proceed as per my specific requiment.
    Please can anyone suggest me how to proceed further.
    Thanks in advance.
    Regards,
    Jay.

    There's no reason why you couldn't do it.
    A tabstrip control is simply made of a subscreen area and a "tabstrip" above, where each tab corresponds to a button/function code. You have 2 ways to define/program it, "local" or "server", the difference being a better performance with the "local" (interesting in slow WAN).
    In ABAPDOCU demos, you have 2 programs DEMO_DYNPRO_TABSTRIP_LOCAL and DEMO_DYNPRO_TABSTRIP_SERVER.
    Sandra

  • How to change the text for the tabs of a tabstrip control dynamically

    Hi Guys,
        I am having two screens in a transaction.
    1. 1st screen has material number as an input and submit push button
    2. 2nd screen has two tabs in a tabstrip control.
        I want to display material description and plant number as heading for the two tabs based on the material number entered by the user in the 1st screen. Means i want to change the text dynamically. Is there any possible way? If it is there please help me. Very urgent...
    Thanks in advance
    James.

    Hi,
    If you set the "Output field" attribute for a pushbutton/tab, you can also set its text dynamically in the ABAP program. To do this, you must create a field in the ABAP program with the same name as the pushbutton/tab. You must then assign the required text to the field before the screen is displayed.
    For example define a global field in your program called MATNUM(20) and use this as the name for the material number tab on the tabstrip. Then you can assign a text MATNUM = 'Material Number' and this will appear as the tab title. Don;t forget to set the "Output field" attribute on the tab.
    Hope it helps

  • Request for code on Tabstrip controls with subscreen in it.

    Hi experts,
    Can somebody please provide me the code for tabstrip controls with subscreens in it?
    Thanks,

    Hi,
    <li>Check the demo program DEMO_DYNPRO_TABSTRIP_SERVER.
    Thanks
    Venkat.O

  • Problem in Tabstrip Control

    Hi All,
    i had created an Custom Infotype.
    In that infotype i had created Tabstrip control with 2tabs.
    Each Tab contain 4 fields.
    When creating( F5) a record in transaction PA30, it allowing me create a record and the record is available in Data base table.
    1. My doubt is, when Display the Record through F7 and Change mode (F6), Still the fields are in editable mode. But not in Display Mode ( Editable Mode ).
    How to Disable the Fields for this Tab Strip Control. I have not used any Group Field for this. Can we need to Main tain anything.
    But SAVE option is automatically disabled.Iam not able to SAVE when i press F7 but in Editable is the My Problem.
    2. And one more query is, when press F5 or F6 or F7 it is show the following message at End screen,i.e.
    Protected tab titles are not supported (tab MENU_TABSTRIP title PUSH1) . But MENU_TABSTRIP is My Tab Strip control text Name and PUSH1 is my Tab1 , Function code.
    How to remove this message.
    Points will be rewarded.
    Thanks,
    N.L.

    Hi,
    Try this ....In the Table Control, double click on a field. In the attributes make that field as output only...
    Hope it helps,
    Swathi

  • Maximizing Window while Control Hidden Doesn't Behave Properly

    Hi, I've run into a situation where I'm trying to take advantage of the resizing capabilities of LV8.x and I'm running into a snag I was hoping to get some help on.
    Basically, when I have a (grouped) control hidden and then maximize the window and then show the control, the control is not where it should be.
    I've attached an example VI.
    Any ideas?
    Thanks, Bruce 
    Message Edited by bmoyer on 08-13-2009 09:44 AM
    Attachments:
    Resize Window while Control Hidden Test.vi ‏254 KB

    Hello,
    When you are resizing your front panel, it only resizes the visible windows. I have tested this out and submitted a corrective action request (CAR #182933). If you want your panel positioned properly, I would suggest forcing the placement of the cluster by adding an event structure for a panel resize event. This will allow you to determine the coordinates of where it should be.
    -Zach
    Certified LabVIEW Developer

  • Tabstrip control  Tab line navigation button display issue

    I have a tabstrip that has more tabs than can be displayed at the top of the tabstrip control.  When this happens a navigation button appears on the far right of the tab line( the line that contains all the tabs).  This has been working fine for several years.  Recently I needed to increase the width of the tabstrip control so that it was 160 character wide.  Now when the tabstrip displays, the tab line stops displaying at around 130 characters so the navigation button no longer shows.  As it turns out, the button is still there and functions as normal, except that it cannot be seen even though there are still too many tabs to all be displayed. 
    This appears to me to be a bug in the tabstrip control, but before I start complaining to SAP I thought I would ask here to see if anyone else might know of a solution to this problem. 
    Thanks for looking.

    Hi,
    cresate a managed bean in viewScope within the parent page and pass it as an argument to the child task flow. The managed bean contains/exposes a method to hide the menu items you don't want to show (or just disable them). The child task flow then can call the managed bean (from its input parameter reference) and invoke the method (e.g. in a method call activity as the default activity of the task flow).
    See this blog entry for more details: http://one-size-doesnt-fit-all.blogspot.de/2010/09/master-child-btf-chaperone-contextual.html
    Frank

  • Module Pool (tabstrip control Error :  )

    I am trying to activate tabstrip control in module pool but error is coming like no sub screen is assigned to tabstrip pushbutton
    tab12.
    my main screen is : 0221
    flow logic for 0221 is below :
    PROCESS BEFORE OUTPUT.
    CALL SUBSCREEN SUB1 INCLUDING SY-REPID '0321'.
    CALL SUBSCREEN SUB2 INCLUDING SY-REPID '0322'.
    PROCESS AFTER INPUT.
    CALL SUBSCREEN SUB1.
    CALL SUBSCREEN SUB2.
    MODULE USER_COMMAND_0221.
    and 0321 and 0322 is subscreen and i also gave ref field sub1 and sub2 .
    can you plz help me to solve the problem ?

    Hi,
    yes i created sub screen. i am going to explain what i have done .
    step : i created screen 200 (i choose subscreen)and inside 200 i put  tabstripcontrol then in tab1 i gave ref field sub1 and tab2 i gave ref field sub2 and fatch code ic1 and ic2.
    and then i created screen 221 and 222.
    inside 200 flow logic i wrote below code but still its giving me same error.
    PROCESS BEFORE OUTPUT.
    CALL SUBSCREEN SUB1 INCLUDING SY-REPID '0221'.
    CALL SUBSCREEN SUB2 INCLUDING SY-REPID '0222'.
    PROCESS AFTER INPUT.
    CALL SUBSCREEN SUB1.
    CALL SUBSCREEN SUB2.
    MODULE USER_COMMAND_0221.
    i dont know is it required to make any normal screen .
    please try to give me ans as soon as possible.

  • I need help in tabstrip control....helpful answers will be rewarded....

    Hi All,
    I am finding difficulty with the tabstrip control.i have created 3 tabs one for mara,marc and mard tables.i have to display few fields of these tables in their respective subscreens.using the material number i have to get the values from the table and display it in the respective subscreens.i am getting the output.but if i try to give another value for the material number it is not accepting...it holds the same value i gave before.i tried to use refresh,clear to clear the internal tabes i am using to fetch data.but i am not getting it....also
    i want to use f3 function key to go back even if i havent given the value for  mandatory fields.   can u help me?helpful answers will be rewarded....
    regards,
    sheeba.

    Hi,
    http://help.sap.com/saphelp_nw70/helpdata/en/04/10f2469e0811d1b4700000e8a52bed/content.htm
    http://help.sap.com/saphelp_sm32/helpdata/en/d1/801bd2454211d189710000e8322d00/content.htm
    Check think link:
    http://www.****************/Tutorials/ABAP/Tabstrips/page1.htm
    http://www.sapdevelopment.co.uk/dialog/tabcontrol/tc_basic.htm
    Regards,
    Priyanka.

  • Table update problem in tabstrip control

    Hi experts.
    i have one tabstrip control having 4 tabs.
    in those tabs i am updating one table say ztable(database table).
    my problem is this is happening in pai of every tab.
    but what ever i am updateing table those changes will reflect in other tabs.
    where i have to write code like pbo or what i should do.
    what ever i am updateing in tab1 i have to see in tab2.what ever i have update i should see in tab3.
    but it is not showing the updates when we will go for other tabs.
    Thanks

    Hi,
    Please check the following things :
    1 . The Fucntion code type for each tab is blank
    2 . Same subscreen area is assigned to each tab
    3 . Corresponding subscreen is dynamically incorporated into the subscreen area CALL SUBSCREEN in the flow logic
    If you are not doing this, then you are scolling in SAP GUI, not in your program. In this case the values entered in TAB1 won't get reflected in TAB2.
    If this is the case in your program, fix the above three points. then it will work.

Maybe you are looking for

  • Keys not working properly

    DEVICE INFO Carrier: Telus Model info: I have the blackberry 9100 pearl smartphone 3G OS version: 6 APPS AND FREE SPACE Applications=162.8MB Other=41.8MB Free=51.4 MB Battery pull did not fix my issue List of Applications installed -Blackberry 6.0.0

  • Transfering files from PC to Mac via ethernet cable

    I have been unable to connect my Mac for file transfer. I followed the directions on the following sites: http://docs.info.apple.com/article.html?artnum=304721 http://docs.info.apple.com/article.html?artnum=106471 I connected both computer via an eth

  • IMac won't wake at times

    A couple of times recently, my iMac will not wake from sleep. Not only that, but it will not start from the rear power button. I have to unplug the power cord and then it will start up. Any ideas as to the problem? Model Name: iMac Model Identifier:

  • Problem when doing update and commit at the same time...

    I want to "fusion" the update and commit event... I thought that if I added a jbo:Commit at the end of the update event, it would work. But, I get back an error message when running, and since this time, I can throw my project to trash: even if I get

  • Every time I try to update an app or download from iTunes a message appears 'unknown problem has occurred' please help as to why?

    Every time I try to update an app or download from iTunes a message appears 'unknown error has occurred' can anyone help as to why this would happen and how to fix the problem? Thanks