Regarding icon in tabstrip control

Hi Friends,
   I've designed a tabstrip control with 3 tabs.In each tab, I'm populating different data in ALV format.I've used a custom container for the same.Now I've a requirement from business side that if any of the tabs is having the data, some icon should be displayed alongwith the name of the tab (may be ICON_OKAY). If there is no data in the tab, then no icon should be displayed.
Please advise me in detail as how to do this.Is there any standard functionality or method available for the same.
Thanks in advance!!!!!

Hi,
I dont think we can control icon on tabs dynamically. May be the below links will be useful to find the alternatives / solutions.
[Tabstrip controls|http://help.sap.com/saphelp_nw04/helpdata/en/17/5bf1b52ba211d2954f0000e8353423/frameset.htm]
[Tabstrips|http://help.sap.com/saphelp_sm32/helpdata/EN/d1/801bd2454211d189710000e8322d00/content.htm]
http://www.sapdesignguild.org /resources/icon_cookbook/icon_cookbook.pdf
Statically if you want to attach then you can use : Screen painter: attributes for the TAB2.
Regards,
~Satya
Edited by: Satya suresh Donepudi on Mar 28, 2009 8:31 PM

Similar Messages

  • Status icons on tabstrip controls

    Hello
    I have a problem displaying the status icon on a tabstrip control.
    I've created an infotype. On the tabstrip control, I've added texteditors and status icons.The status icon is there as an indication to state whether there is information populated in the texteditor.
    The texteditors all have information populated in them. Whenever I run the infotype on PA30, the status icon does not appear. It only appears when I click on the texteditor button which is not what i want it to do.
    On PA30,I would like the ICON to appear when there is information in the texteditor and not when I click on the texteditor button.
    Please advice me on how to fix this problem.
    Thanks
    Adhil Ramruthan

    REPORT  ZICON_CONTROL.
    tables: icon.
    controls: tc type tableview using screen 100.
    data: begin of it_data occurs 0,
           icon(4),
           value(02),
          end of it_data.
    "Based on condion you populate the ICON data here
    "if the case is editable and then you have to do the same in PBO
    it_data-icon = '@0A@'."ICON_RED_LIGHT.
    it_data-value = '00'.
    append it_data.
    it_data-icon = '@08@'. "ICON_GREEN_LIGHT.
    it_data-value = '01'.
    append it_data.
    call screen 100.
    *&      Module  transfer_data  OUTPUT
    *       text
    module transfer_data output.
    read table it_data index tc-current_line.
    endmodule.                 " transfer_data  OUTPUT
    Flow logic.
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0100.
    loop at it_data with control tc.
      module transfer_data.
    endloop.
    PROCESS AFTER INPUT.
    loop.
    endloop.
    MODULE USER_COMMAND_0100.

  • Program errors working with OOPS ALV in a Tabstrip control

    Hi Experts,
    I am displaying an ALV grid in a Tabstrip control in dialog program and its getting displayed fine. However when I am presing any of the standard push buttons like sort, export etc., I am getting a pop up with icon 'STOP' and beside its mentioned 'Program errors'. Please let me now if there is any solution for this issue.
    Thanks and Regards,
    Praveen.

    Got the solution. We must declate the internal table that is bening passed into the set_table_for_first_display as global variable always.

  • 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

  • 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

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

  • Problem in Tabstrip Control in Custom Infotype Creation

    Hi All,
    Can any body tell me how to process with Tabstrip Control in an Custom Infotype.
    Iam creating Customizing Infotype With Tabstip Control.The Tabstrip Control have 2tabs.Each tab have Custom some fields.
    But iam not able activating the sample Tabstrip control.
    Can u tell me how to approach to create this in Modulepool programming for my Custom Infotype.
    Points wil be rewarded.
    Thanks,
    N.L.Narayana

    Hello Swapna,
    Thanks for your reply.
    This is my code for tabstrip control.
    AT SELECTION-SCREEN.
    CASE SSCRFIELDS-UCOMM.
       WHEN 'BOOK'.
         tabb1-prog = 'ZAXOMM005_V1'.
         tabb1-dynnr = 1.
         tabb1-activetab = 'TABS1'.
         option = '1'.
       WHEN 'SUMM'.
         tabb1-prog = 'ZAXOMM005_V1'.
         tabb1-dynnr = 2.
         tabb1-activetab = 'TABS2'.
         option = '2'.
       WHEN 'POST'.
         tabb1-prog = 'ZAXOMM005_V1'.
         tabb1-dynnr = 3.
         tabb1-activetab = 'TABS3'.
         option ='3'.
    *CH01 start
       WHEN 'RSET'.
         tabb1-prog = 'ZAXOMM005_V1'.
         tabb1-dynnr = 4.
         tabb1-activetab = 'TABS4'.
         option = '4'.
    ENDCASE.
    case option.
      when '1'.
    IF  SSCRFIELDS-UCOMM = 'ONLI'.
       if p1_werks is initial or p1_lgort is initial or
          p1_bstar is initial or p1_gjahr is initial.
         message e000(vz) with text-001.
       endif.
    ENDIF.
      when '2'.
    IF  SSCRFIELDS-UCOMM = 'ONLI'.
       if p2_gjahr is initial.
         message e000(vz) with text-005.
       endif.
    ENDIF.
      when '3'.
    IF  SSCRFIELDS-UCOMM = 'ONLI'.
       if p3_gjahr is initial.
         message e000(vz) with text-005.
       endif.
        ENDIF.
    *CH01 start
      when '4'.
    IF  SSCRFIELDS-UCOMM = 'ONLI'.
      if s4_werks is initial or p4_gjahr is initial.
         message e000(vz) with text-001.
      endif.
      if p4_book is initial and
         p4_summ is initial.
         message e000(vz) with text-022.
      endif.
       ENDIF.
    endcase.
    I can give you some more information.
    If I execute from program it is working fine, if I execute from T.code it is not working properly.
    Regards.
    Krishna.

  • How to create subscreens in tabstrip control using  module pool

    hai experts,
    can u plz give me step by step procedure to create subscreens in tabstrip control using  module pool,

    hi,
    You can check this program
    <b>  DEMO_DYNPRO_TABSTRIP_LOCAL </b>
    This will help you in understanding the concept and how to create subscreens.
    Regards
    Nishant

  • 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

  • Creating TabStrip control with VisualComposer

    Hi,
    I am NW04 version for Visual Composer. I want to create a TabStrip control on which I want to show two table from a RFC. Is there any facility available to create this like NW2004s. I found from some posts that NW04 verson doesn't have capabilities to create listbox. Or is there any patches available and after applying we will get the functionality??? Or can I install VC for NW2004s and it will be compatible with EP 6.0??
    Please suggest.
    Thanks,
    SA.

    Hi Sri,
    tabstrip control is not possible with vc (nw04 version).It is only possible with vc nw04s. and this nw04s is not compatible with ep 6.0. hope this ll help u.
    regards
    Amit
    P.S.  reward points if helpful

  • Screen error in tabstrip control

    hi all,
    I'm practicing a program for Tabstrip control.
    it will be like this
    tab1           tab2
    number1    result
    number2
    number1 number2 result are of integer data types.
    now the problem is
    the program is giving result when I declare the above variables as char...that to with some limit.
    but if the varilable are of type int program is givng an error called screen error.
    why this is happening ?
    whats the solution for it?
    points assured,
    Usha.

    HI,
    try like this...
    1.goto that perticular Screen Element List, there you will find a tab General Attributes.
    2.In that change the Format Column for that perticular field from CHAR to INT1 ( by default it will take as CHAR ).
    now you will not get any error.
    Regards,
    Sathish Reddy.

  • 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

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

  • Renaming the tabs on a tabstrip control for ME21N

    Hello SDNers,
    I am working on a screen enhancement for ME21N using user exit MM06E00.
    On ME21N a addiional tab called "Customer Data " has been added along with the standard tabstrip control.
    I wanted to rename this has "CFORM" now how do I do this.
    Please help me regarding this.
    Regards,
    Ranjith N

    Hi Nambiar,
    Go to the text symbols of Function Pool SAPLXM06 (function pool that contains the modules and includes and screens creatted using Enhancement MM06E005 ).
    Say you want to name the custom header tab (screen number 101) in PO as 'PO Header additonal data'.
    Then in the text symbols of Function Pool SAPLXM06 add '101' to "Sym" coulmn and 'PO Header additonal data' to "Text" column.
    Now after activating the text elements and the enhamcement project, if you run ME21N/ME22N/ME23N the name of the custom addtional header tab would be displaed as 'PO Header additonal data'.
    Hope this helps.
    Regards,
    Abhisek.

  • Tabstrip Control Problem

    I created a form with a a two-tab tabstrip (using the wizard).  On the first tab is an ALV grid, on the second, a text field.  When I run the program and the first grid shows up with the ALV grid just fine.  When I click the second tab, however, the program just terminates.  I'm a newbie so it's probably something obvious.  Thanks in advance!

    hi ,
    look at this...
    http://help.sap.com/saphelp_nw04/helpdata/en/04/10f2469e0811d1b4700000e8a52bed/frameset.htm
    Tabstrip control
    check this test code...
    TABLES : VBAK ,VBAP.
    CONTROLS : TAB_STRIP TYPE TABSTRIP.
    CONTROLS : TAB_CNTRL TYPE TABLEVIEW USING SCREEN 0002.
    DATA : OK_CODE_0101(20).
    DATA : D_REPID TYPE SY-REPID,
    D_SUBSCR TYPE SY-DYNNR.
    DATA : D_VBELN TYPE VBAK-VBELN.
    TYPES : BEGIN OF D_STRUCT,
    VBELN TYPE VBELN_VA,
    POSNR TYPE POSNR_VA,
    MATNR TYPE MATNR,
    FMENG TYPE FMENG,
    NETWR TYPE NETWR_AP,
    END OF D_STRUCT.
    DATA : ITAB TYPE STANDARD TABLE OF D_STRUCT WITH HEADER LINE.
    DATA : D_WA TYPE D_STRUCT.
    *& Module GET_SCR OUTPUT
    text
    module GET_SCR output.
    IF OK_CODE_0101 IS INITIAL.
    D_SUBSCR = '0001'.
    ENDIF.
    D_REPID = SY-REPID.
    endmodule. " GET_SCR OUTPUT
    *& Module EXIT_MODULE INPUT
    text
    module EXIT_MODULE input.
    SET SCREEN 0.
    LEAVE SCREEN.
    endmodule. " EXIT_MODULE INPUT
    *& Module USER_COMMAND_0101 INPUT
    text
    module USER_COMMAND_0101 input.
    case ok_code_0101.
    when 'TAB1'.
    D_SUBSCR = '0001'.
    TAB_STRIP-ACTIVETAB = 'TAB1'.
    WHEN 'TAB2'.
    D_SUBSCR = '0002'.
    TAB_STRIP-ACTIVETAB = 'TAB2'.
    WHEN 'GET1'.
    D_SUBSCR = '0002'.
    TAB_STRIP-ACTIVETAB = 'TAB2'.
    ENDCASE.
    regards,
    venkat.

Maybe you are looking for