Hiding Tabstrip.

Please Let me knw how to hide a tabstrip on main screen on click of button.

Hi Vinita,
onclick of the button you can write the below code:
Loop at screen.
if screen-name eq <Tab_name>.
screen-active = 0.
endif.
endloop.
Here <tab_name> is the name of the tab which you want to hide.
Thanks...

Similar Messages

  • Problem hiding Tabs in Tabstrip of My Trips and Expenses WD ABAP iView

    Hi,
    My requirement is to hide the thet tabs ALL MY Trips,All my Travel REquest,All my travel Plans,Pending expense report from the tabstrip ALl my Expense report in Travel and Expense Application.
    I have gone through the thread and the sap note mentioned in
    Re: Problem hiding Tabs in Tabstrip of My Trips and Expenses WD ABAP iView
    My problem is tabs that has to be deleted /hidden does not present in the Development system, but exist in the QA or the prd system.
    So how to implement the note when data is not present in the dev system and only exist in the QA/PRD system.
    Pleas eprovide me your valuable inputs.
    Thanks in advance.
    Pooja

    Implemneted the note and problem is solved.

  • Hiding of tabstrip control

    Hi ,
    Can anybody please hiding of tabstrip control along with a simple example.
    Thanks ,
    Ahmed.

    Hi Ahmed,
    Please refer the below thread(s),
    Re: How to make a tabstrip visible and invisible again?
    how to hide tabstrip Control at runtime?
    Best Regards.

  • Hiding A TabStrip ViewSet in a Window

    Hello everyone,
    I created a TabStrip ViewSet in a Window.  Depending on certain conditions, i'd like to hide or show certain tab strips.
    Is this possible?
    Any help will be much appreciated.
    Mike

    Hello Arun,
    I downloaded and executed the Tutorial.  Unfortunately the UI elements are within a view. 
    I need to be able to change the properties of a tabstrip that is a viewset that is inside a Window.
    regards,
    Mike

  • SHD0-Transaction Variant not correctly hiding screens from tabstrip control

    Hello All,
    I have created a transaction variant for transaction PPDPIM.  It is my intention to hide all tabs on the second screen of the transaction except for one.  This is working.  However, I find that my results are as follows:
    1. The tab I have left as visible is, in fact, visible.  All others are invisible.  This is good and what I want.
    2. For the one visible tab, the subscreen contains the structure/information found on the DEFAULT tab (which is not the same as the chosen visible tab).  This is bad.
    It would seem that somewhere in the application the default tab is being set and somehow overriding the transaction variant.  Has anyone found a solution to this type of problem?
    Thank you.

    I have used the "Invisible" checkbox on the subscreen screen variant as the only configuration.  I marked this check box for 5 of the 6 tabs with outcome as outlined in my first message.
    If I include the "default" screen (giving me two visible screens) then both screens display properly.  This does not seem consistent.
    Has anyone had a similar problem who can give me some constructive suggestions?
    Thanks

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

  • Problems activating / deactivating Tabstrips

    Hi people,
    I'm creating a dialog program that has a tabstrip with a set of 4 tabs, which (excepting the last one in the right side, which remains active permanently) must activate or deactivate given some conditions (values exist on internal tables).
    My problem is, when activating the first tab in the Tabstrip (the one on the left side), the screen <a href="http://img246.imageshack.us/img246/1640/26008729du2.jpg">appears like this</a> ("Cuenta de Mayor" is the tab that never deactivates, the activated tab is behind it).
    Once selected, <a href="http://img155.imageshack.us/img155/2429/75553586xs2.jpg">it returns to normal status</a>. Is there a solution to this <u>other than getting the tab that never deactivates as first in the Screen painter, or selecting the first tab programatically once activated</u> (i've tried the first of this solutions and it solves the problem but i'd rather prefer a better solution)?
    This is my code to activate or deactivate tabs (in PBO of main screen 100 which has the tabstrip control with a subscreen area inside it):
    MODULE m_estado_tabs OUTPUT.
      LOOP AT SCREEN.
        IF screen-name EQ 'TAB_SER' OR
           screen-name EQ 'TAB_UNI' OR
           screen-name EQ 'TAB_REP'.
          CASE screen-name.
            WHEN 'TAB_SER'.
              READ TABLE i_datospedidos WITH KEY kalsm = k_esq_ser.
            WHEN 'TAB_UNI'.
              READ TABLE i_datospedidos WITH KEY kalsm = k_esq_uni.
            WHEN 'TAB_REP'.
              READ TABLE i_datospedidos WITH KEY kalsm = k_esq_rep.
          ENDCASE.
          IF sy-subrc = 0.
            screen-invisible = 0. " Hay pedido: Activar tab
          ELSE.
            screen-invisible = 1.
          ENDIF.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    ENDMODULE.                 " m_estado_tabs  OUTPUT
    Thank you very much in advance for any help.

    Hi sowjanya s,
    I understand what you suggest. That would be my second alternative solution, quoting myself: "Is there a solution to this other than getting the tab that never deactivates as first in the Screen painter, <b>or selecting the first tab programatically once activated</b>"
    What i want is to them to appear or dissapear regardless of which the active tab is at the moment, maybe i've been confusing in saying activate /deactivate, i'd rather say showing / hiding.
    This is working now as it is but the problem is when showing the first tab, since it gets showed behind the other tabs as you can see in the first screen.
    Any other suggestions? Many thanks to you anyways, i'm awarding points.
    <b>UPDATE: it happens whatever the showed tabs is/are, it doesn't necesarily has to be the first one.</b>
    To be more precise in explaining the problem: When setting any tab visible, the tabstrip shows <a href="http://img246.imageshack.us/img246/1640/26008729du2.jpg">like this</a>. I need it to be <a href="http://img155.imageshack.us/img155/2429/75553586xs2.jpg">like this</a> but without setting "Gastos Serie" as active.
    I don't even know if that's possible, or if this is the normal, expected and unique tabstrip behaviour.
    Closing thread: I've solved because I had to put an aditional fixed tab as the first.

  • Hiding a Maintenance View in a View Cluster

    Hello ABAP Experts,
    We have a scenario where we would like to hide a maintenance view to an existing view cluster based on condition.
    Is it possible via events of a view cluster, where i can hide the view at runtime based on some condition before the view cluster is displayed ?
    Is there any way as well, which help achieve this hiding of views ?
    For example in the below View Cluster, i would like to hide "Define object links" view from the main view cluster "Define document Types".
    Thanks,
    Naresh

    Hi Naresh,
    Yes, you can do it in events of a view cluster, define a subroutine and bounding it to event(02) in SE54,
    when you define the subroutine, it will ask you creat a mian program, in this main program, you need  'INCLUDE lsvcmcod'.
    Then you can access some standard data, http://help.sap.com/saphelp_nw04/helpdata/en/62/c302c7de8e11d1a5960000e82deaaa/frameset.htm
    INCLUDE lsvcmcod.
    FORM yourSubroutineName.
    DATA: viewname TYPE vclstruc-object,
            error_flag TYPE vcl_flag_type,
      viewname = 'ZTEST_VIEW1'.
    *  PERFORM vcl_set_table_access_for_obj USING    viewname
    *                                       CHANGING error_flag.
      ----> according your condition to change the view.
    IF xxx = yyy.
      DELETE vcl_struc_tab WHERE object = viewname.
    ENDIF.
    ENDFORM.
    regards,
    Archer

  • Error in creation of  Tabstrip Control

    Hi Guy's
    Please help me i created one sample tabstrip, when executing this program i am getting error message" SQL Error in the database when accessing a table".  Pasting my code here please help me where i did mistake. it is very urgent.
    1) IN SE-38
    tables : kna1.
    data : begin of itab occurs 0,
    land1 type LAND1_GP,
    name1 type NAME1_GP,
    end of itab.
    *& Module USER_COMMAND_0100 INPUT
    case sy-ucomm.
    when 'DISP'.
    select land1 name1 from kna1 into itab where kunnr = kna1-kunnr.
    append itab.
    endselect.
    when 'EXIT'.
    leave program.
    endcase.
    ENDMODULE. " USER_COMMAND_0100 INPUT
    *& Module STATUS_0110 OUTPUT
    MODULE STATUS_0110 OUTPUT.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
    MOVE-CORRESPONDING ITAB TO KNA1.
    ENDMODULE.
    2) IN SE51-Fow Logic and layout of Screen 100
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0100.
    CALL SUBSCREEN SUB INCLUDING 'ZSHANTHU1' '110'.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0100.
    CALL SUBSCREEN SUB.
    3) In the screen -110 Flow logic and Layout
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0110.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0110.
    Edited by: sai shanhu on Apr 11, 2008 1:32 PM

    Hi,
    From the message it seems either you are using wrong company code in Organisation data of the PO or the company code need to be assigned to country in spro-enterprise structure-Financial accounting-edit copy check company code.
    Please check this.
    Dhruba

  • Dialogue tick boxes un-hiding all fields, not just the ones where value has changed to true

    I am hoping someone can help me make what I want to happen, happen if certain check boxes are ticked withing the dialogue box
    right now I can see on the console print that the tick box turns the value from false to true but the OK button is also un-hiding all my fields rather than just the ones where the value has turned to true. What am I missing here
    //Create a Dialogue box for staff to state how many of the account owners are in branch in order for the names to show in the signing section
    var Signors =
        result:"cancel",
        DoDialog: function(){return app.execDialog(this);},
        bChk2:false,
        bChk3:false,
        bChk4:false,
        bChk5:false,
        initialize: function(dialog)
            var dlgInit =
                    "Chk2": this.bChk2,
                    "Chk3": this.bChk3,
                    "Chk4": this.bChk4,
            dialog.load(dlgInit);
        commit: function(dialog)
            var oRslt = dialog.store();
            this.bChk2 = oRslt["Chk2"];
            this.bChk3 = oRslt["Chk3"];
            this.bChk4 = oRslt["Chk4"];
        description:
            name: "Signors",
            elements:
                    type: "view",
                    elements:
                            type: "view",
                            char_height: 10,
                            elements:
                                    type: "static_text",
                                    item_id: "stat",
                                    name: "Who is here to sign:",
                                    char_width: 15,
                                    alignment: "align_fill",
                                    font: "dialog",
                                    type: "view",
                                    char_width: 8,
                                    char_height: 8,
                                    align_children: "align_top",
                                    elements:
                                            type: "view",
                                            char_width: 8,
                                            char_height: 8,
                                            elements:
                                                    type: "check_box",
                                                    item_id: "Chk2",
                                                    name: "Primary Applicant",
                                                    type: "check_box",
                                                    item_id: "Chk3",
                                                    name: "Associate 1",
                                                    type: "check_box",
                                                    item_id: "Chk4",
                                                    name: "Associate 2",
                            type: "ok_cancel",
    // did the value change when ticked - lets check
    Signors.bChk2 = false;
    Signors.bChk3 = false;
    Signors.bChk4 = false;
    if("ok" == Signors.DoDialog())
        if (Signors.bChk2 = true)
    getField("Signor1").hidden = false;
    getField("Staff1").hidden = false;
    getField("Date1").hidden = false;
    getField("Date2").hidden = false;
    if (Signors.bChk3 = true)
    getField("Signor2").hidden = false;
    getField("Staff2").hidden = false;
    getField("Date3").hidden = false;
    getField("Date4").hidden = false;
    if (Signors.bChk4 = true)
    getField("Signor3").hidden = false;
    getField("Staff3").hidden = false;
    getField("Date5").hidden = false;
    getField("Date6").hidden = false;
        console.println("Chk2:" + Signors.bChk2);
        console.println("Chk3:" + Signors.bChk3);
        console.println("Chk4:" + Signors.bChk4);
        console.println("Chk5:" + Signors.bChk5);
    //console.println shows if bChk.. is true or false
        console.println("Chk2:" + Signors.bChk2);
        console.println("Chk3:" + Signors.bChk3);
        console.println("Chk4:" + Signors.bChk4);
        console.println("Chk5:" + Signors.bChk5);
    //Yeah, confirmed values have changed, now show fields based on staff input
    //was primary applicant ticked
    doWhatIWant: function(results) {
    if (results [Signors.bChk2] = true)
    getField("Signor1").hidden = false;
    getField("Staff1").hidden = false;
    getField("Date1").hidden = false;
    getField("Date2").hidden = false;
    //was Associate 1 ticked
    if (results [Signors.bChk3] = true)
    getField("Signor2").hidden = false;
    getField("Staff2").hidden = false;
    getField("Date3").hidden = false;
    getField("Date4").hidden = false;
    //was Associate 2 ticked
    if (Signors.bChk4 = true)
    getField("Signor3").hidden = false;
    if (Signors.bChk4 = true)  
    ("Staff3").hidden = false;
    if (Signors.bChk4 = true)
    ("Date5").hidden = false;
    if (Signors.bChk4 = true)
    ("Date6").hidden = false;

    You're missing some curly brackets, using the incorrect equality operator, and using the long deprecated field.hidden property. Try this:
    if ("ok" == Signors.DoDialog()) {
        if (Signors.bChk2) {
            getField("Signor1").display = display.visible;
            getField("Staff1").display = display.visible;
            getField("Date1").display = display.visible;
            getField("Date2").display = display.visible;
        if (Signors.bChk3) {
            getField("Signor2").display = display.visible;
            getField("Staff2").display = display.visible;
            getField("Date3").display = display.visible;
            getField("Date4").display = display.visible;
        if (Signors.bChk4) {
            getField("Signor3").display = display.visible;
            getField("Staff3").display = display.visible;
            getField("Date5").display = display.visible;
            getField("Date6").display = display.visible;
        console.println("Chk2:" + Signors.bChk2);
        console.println("Chk3:" + Signors.bChk3);
        console.println("Chk4:" + Signors.bChk4);
        console.println("Chk5:" + Signors.bChk5);
    I don't know if that will deal with all of the problems, but it's a good start.

  • I have a old excel file that does not show hiding cell boxes on my Mac.

    I have a old excel file that has some hiding info. in some of the cell boxes.  I can not see them on my Mac computers.  When I click on the cells to see the hidden info. it does not show up.

    Are you using Mac OSX version of Excel or the Windows version of Excel?  Regardless being specific to Excel, it would be best to ask in the Microsoft Office forums.
    Microsoft Office for Mac forums
    http://www.officeformac.com/productforums/
    Microsoft Office for Windows forums
    http://answers.microsoft.com/en-us/office

  • Hiding text box based on check box checking

    Hello,
    I have a jsp in which based on whether the check box is checked or unchecked I want to hide or show a text box. I am including the text box in a div tag & calling a javascript function to set the style of the div to hidden or shown based on whether the check box is checked or not. although i am getting the correct values in the alerts the text box is not getting hidden.
       <td class="label"><label for="chk1"><gbms:message key="lblSearchforDeletedCustomer"/>:</label></td><td class="input">
                  <html-el:checkbox property="chk1" value="N" tabindex="3" onclick="javascript:checkboxClicked(document.forms['formCustomerOrVehicleMaintenance'])" onfocus="fnShowError(document.formCustomerOrVehicleMaintenance.chk1);"></html-el:checkbox> <gbms:message key="chek"/> 
                                 </td>
                                 <div id="delDateDiv" style:hidden>
                            <td class="label"><label for="txtDeleteDate"><gbms:message key="lblDeletedAsOf"/>:</label></td><td class="input">
                 <html-el:text property="txtDeleteDate" size="6" maxlength="40" tabindex="3" onchange="fnChanged()" onfocus="fnShowError(document.formCustomerVehicleMaintenanceDelete.txtDeleteDate);"></html-el:text> <a href="#" onclick="cal1xx.select(document.forms[0].txtDeleteDate,'anchor1xx','MMddyy'); return false;" name="anchor1xx"><img src="<%=request.getContextPath()%>/css/common/calendar.gif" border="0" style="cursor: hand"></a><gbms:help jsp="customerVehicleMaintenanceDelete" module="admin" languageCode="<%=request.getLocale().getLanguage()%>" field="DeletedAsOf"/>
                        </td></div>javascript function being called..
    function checkboxClicked(aThis)
                        var aform = document.forms['formCustomerOrVehicleMaintenance'];
                        var aDiv = document.getElementById('delDateDiv');
                        alert(aDiv.style.visibility);
                        alert(aDiv.innerHTML);
                        alert(aform.chk1.checked);
                        if(aThis.chk1.value == true)
                             aform.txtDeleteDate.value = '';
                             aform.txtDeleteDate.disabled = false;
                             aDiv.style.visibility = 'visible';
                        else
                             aform.txtDeleteDate.value = '';
                             aform.txtDeleteDate.disabled = true;
                             aDiv.style.visibility = 'hidden';
                   }

    in my javascript function the value returned is true when checkbox is checked & false when it is unchecked. visibility is also giving correct value in the alert. but still field is not hiding
              function checkboxClicked()
                        var aform = document.forms['formCustomerOrVehicleMaintenance'];
                        var aDiv = document.getElementById('delDateDiv');
                        alert(aDiv.style.visibility);
                        alert(aform.chk1.checked);
                        if(aform.chk1.checked)
                             aform.txtDeleteDate.value = '';
                             aform.txtDeleteDate.disabled = false;
                             aDiv.style.visibility = 'visible';
                             alert("inside if");
                             alert(aDiv.style.visibility);
                        else
                             aform.txtDeleteDate.value = '';
                             aform.txtDeleteDate.disabled = true;
                             aDiv.style.visibility = 'hidden';
                             alert("inside else");
                             alert(aDiv.style.visibility);
                   }

  • ALV Grid - Hiding the values of a feild and disabling checkboxs

    Hello,
    I have a report that requires the need to hide certain fields in an ALV report as well as checkbox in certain rows.
    So example I want to turn the ALV's output from ....
    PO Number
    PO Item
    450000001
    001
    450000001
    002
    450000001
    003
    450000002
    001
    450000002
    002
    [   ] = checkbox
    to the desired output below ...
    PO Number
    PO Item
    450000001
    001
    002
    003
    450000002
    001
    002
    so baically I want to do 2 things
    1. Hide the values of certain fields if the value from the previous row is identital and ...
    2. .... only include checkboxes for each new value of that column by either hiding (preferable) or disabling them.
    Hope to hear from all of you soon.
    Thank you all and good day.

    Hi Chad Cheng,
    U have a variable IT_SORT in the FM REUSE_ALV_GRID_DISPLAY.
    IT_SORT -fieldname = ur fieldname 1.
    IT_SORT-up = 'X' or IT_SORT-Down = 'X'.
    Append it_sort.
    IT_SORT -fieldname = ur fieldname 2.
    IT_SORT-up = 'X' or IT_SORT-Down = 'X'.
    Append it_sort.
    awrd points if helpful
    Bhupal

  • Hiding fields in screen area 031

    Hello Masters,
    I have query on hiding following fields in Quality Notification screen area 031of Notification Type Q2:
    1) Windows-32 bit box (big box/window under Description field)
    2) Long Text icon available next to big box/window which is also available next to Description field in header
    I tried 'Field Selection: General Screens' configuration under Define Screen Templates, was unable to hide above mentioned field(window) and icon.
    I hope I was able to describe what issue is and will get some help from you masters.
    Thanks and regards,
    Devang

    Use (or Create) authorization [field|http://help.sap.com/saphelp_nw04/helpdata/en/52/67168c439b11d1896f0000e8322d00/frameset.htm] and [object|http://help.sap.com/saphelp_nw04/helpdata/en/52/6716a6439b11d1896f0000e8322d00/frameset.htm], in the BAdI [check this authorization|http://help.sap.com/abapdocu_70/en/ABAPAUTHORITY-CHECK.htm] and change the INVISIBLE field and not the ACTIVE field in SCREEN structure.
    - [Programming Authorization Checks|http://help.sap.com/saphelp_nw04/helpdata/en/52/6712ac439b11d1896f0000e8322d00/frameset.htm]
    Inform system admin to manage those new object and field in the user roles. ([SAP Authorization Concept Modules|http://help.sap.com/saphelp_banking463/helpdata/en/5c/deaa74d3d411d3970a0000e82de14a/frameset.htm])
    Regards,
    Raymond
    NB: The "d" of BAdI should always been in lowercase, except in statement GET BADI...

Maybe you are looking for