Disable Tab in Tabstrip

Hi,
I have created a Tabstrip dynpro application. Each tasbstrip calls
it´s own subscreen.
Now I want to lock some tabs just for administration use. That means,
only if a user has the special parameter, he can see all tabs. Otherwise
he just can see some of the tabs and the others should be hidden.
How can I hide tabs, if the user is not administrator?
Thank you!
Reward points guaranteed

or else you can do  this also.
this will work.
REPORT demo_dynpro_tabstrip_local.
CONTROLS mytabstrip TYPE TABSTRIP.
DATA: ok_code TYPE sy-ucomm,
      save_ok TYPE sy-ucomm.
mytabstrip-activetab = 'PUSH2'.
CALL SCREEN 100.
MODULE status_0100 OUTPUT.
  SET PF-STATUS 'SCREEN_100'.
ENDMODULE.
MODULE cancel INPUT.
  LEAVE PROGRAM.
ENDMODULE.
MODULE user_command INPUT.
  save_ok = ok_code.
  CLEAR ok_code.
  IF save_ok = 'OK'.
    MESSAGE i888(sabapdocu) WITH 'MYTABSTRIP-ACTIVETAB ='
                                  mytabstrip-activetab.
  ENDIF.
ENDMODULE.
*&      Module  modify_screen  OUTPUT
*       text
module modify_screen output.
Place the condition here, according code .
  loop at screen.
   if screen-name = 'PUSH1'.
    screen-invisible = 0.
    screen-active = 0.
    modify screen.
   endif.
  endloop.
endmodule.                 " modify_screen  OUTPUT
Flow logic code.
PROCESS BEFORE OUTPUT.
  MODULE STATUS_0100.
  module modify_screen.
  CALL SUBSCREEN: SUB1 INCLUDING SY-REPID '0110',
                  SUB2 INCLUDING SY-REPID '0120',
                  SUB3 INCLUDING SY-REPID '0130'.
PROCESS AFTER INPUT.
  MODULE CANCEL AT EXIT-COMMAND.
  CALL SUBSCREEN: SUB1,
                  SUB2,
                  SUB3.
  MODULE USER_COMMAND.

Similar Messages

  • Disable tabs at runtime (WebDynpro Java - tab strip)

    I have a tab strip view set and want to disable the navigation to some embedded views at runtime.
    Tab 1 contains a view for selecting items. If the selection does not return any values from
    the database I want to disable tab 2 ("the user shall not be able to select tab 2).
    Any idea how I could do this?
    Regards FW

    Use a TabStrip and ViewContainerUIElements instead of a view set. Then you can disable tabs dynamically via the Tab.enabled property.
    Armin

  • How to disable tabs in titlebar for all users?

    I want to disable tabs in title bar for all users, because looks ugly http://i57.tinypic.com/33nkm77.png
    I type to C:\Program Files\Mozilla Firefox\defaults\pref\local-settings.js
    pref("browser.tabs.drawInTitlebar", false);
    It doesn't work, but any other options in this file works fine.
    Setting with about:config works fine, but only for currrent user.

    I think that preference refers to what happens when you have Firefox maximized and you do not display either the classic menu bar or the title of the page in that area: the tabs slide up to the top.
    I agree the double-high blue area is irritating. To modify that, I think you need to do one of these:
    * Change the Windows XP color theme (I always preferred Silver)
    * Create a custom style rule to modify the appearance of the tab bar (so the blue does not show through it)
    * Find a Firefox theme that fixes that area (e.g., [https://addons.mozilla.org/firefox/themes/])
    I haven't researched the second and third options in detail.

  • Tab in Tabstrip Control in display mode (Module Pool)

    Hi friends,
    I am trying to give authorization based on sy-uname, in runtime based on uname the particular tab should be opend in a display mode and some in change mode.  please help me out in this
    Edited by: shravan sonayila on Aug 12, 2008 8:06 AM

    Hi,
    when u creating tabstrip,while defining each tab in tabstrip , u have to
    create one subscreen for each tab.i think u want one tab for display
    mode and one tab for edit mode. if u want this way , in one tab try to
    give fields all in invisible mode this for display mode and goto second tab if u want all visible only keep like that only other wise u have create geoups.when u press enter ,groups will be change.it means visible , invisible modes.
    u have to give logic for screen in pbo.
    *&      Module  STATUS_0300  OUTPUT
          text
    module status_0300 output.
      set pf-status 'GUI_300'.
      set titlebar 'TITLE_300' with v_title.
      if i_aktyp = 'H'.
        if temp_flag = 1.
          loop at screen .
            if screen-group1 = 'GP2'.
              screen-input = 1.
              modify screen .
            else.
              screen-input = 0.
              modify screen.
            endif.
            temp_flag = 0.
          endloop.
        else.
          loop at screen.
            if screen-group1 = 'GP1'.
              screen-input = 1.
              modify screen.
            else.
              screen-input = 0.
              modify screen.
            endif.
            temp_flag = 1.
          endloop.
        endif.
      elseif i_aktyp = 'V'.
        loop at screen.
          if screen-group1 = 'GP1'.
            screen-input = 1.
            modify screen.
          else.
            screen-input = 0.
            modify screen.
          endif.
        endloop.
      endif.
    endmodule.                 " STATUS_0300  OUTPUT
    Try to give this logic.
    Regards,
    Ramya

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

  • "Leave tab" event for tabs in TabStrip UI

    Hi
    I want to check that some input fields are valid and force users do not change Tab in TabStrip (until enter valid values for required fields) but I do not know is it possible this in Webdynpro? Does anybody know which is this event and may I use it in my WD Application?
    In TabStrip there is action for OnSelect event but this is event when user enters in Tab. I need event when user exits the tab.

    In BSP the tabStrip has a value "selection" which if you read the tabStrip to see the tab they selected you can store that value.
    Then check if the fields are filled in if so then pass the stored value back to the "selection" parameter and if not give the name of the tab they were currently on back to the "selection" parameter.

  • Permamently display menu bar in Mac OS/Disable tabs

    iMac i5, Mac OS 10.7.5, Thunderbird 24.x
    The Menu Bar in T-bird 24.x is automatically hidden even though the T-bird Help says that it CAN'T be done. I prefer to have the Menu Bar PERMANENTLY visible, but I can't find a setting in Preferences to do this. Where is the setting that will make the Menu Bar permanently visible.
    I DESPISE tabs in Thunderbird; where is the setting to DISABLE tabs? Again I can't find it in the Preferences.

    Use what you like romad, but personally I have come to like the Australis theme in Thunderbird and I downloaded Firefox alpha when I heard that after a year or fussing and fiddling they have finally moved forward.
    Seriously I have no idea what your talking about though. You carrying on like Thunderbird suddenly changed. Australis has been there since Version 17 tabs since Version 3
    As far as your minority operating system is concerned. I have never used it and have no desire to try and decipher what apple did to a perfectly good copy of BSD. If the product changes so radically on point releases that information a couple of years old is worthless, I am sorry. I am used to point releases being minor changes and whole numbers containing the big stuff. However as Thunderbird does not have a feature of the kind you describe, but apple users have been complaining of similar for years in a number of different applications I suggest you ask apple how to fix OSX so it does not do it.

  • Is there a way to disable tab font smoothing (maybe with userchrome.css)?

    hello everyone I've just switched from chrome to ff and I'm very satisfied. Just one problem, is there a way to disable tab font smoothing (maybe with userchrome.css)? I've changed the colour of tab font (with userchrome.css) to white to improve readability but with white text is too bold. thanks !!

    hey thanks for the quick reply. here's a screenshot
    http://www.mediafire.com/view/?c2a2l69ci5zbq#bt6qrwr6ku8m5n6
    i think we just have to add some antialiasing in the userchrome.css? but i don't know the code.
    here's my modified userchrome.css
    /* Inactive Tab */
    tab:not([selected="true"]) {
    color:white !important;}
    /* Tab while loading */
    tab[busy] {
    color: blue !important;}
    tab .tab-text {
    font-size: 12px !important;
    /* tab font */
    tab .tab-text {
    font-family:Verdana !important;
    i read somewhere else the problem is more evident with white text on dark background
    thanks

  • Disabling tab functionality in a field

    Dear all,
    How do you disable tab functionality in a field in sap b1 2005? I would just like to have a formatted search on the field.
    Regards,
    Monil

    Hi Monil
    Is this at row level? If so, then set it as visible but not active in the Form settings. If it is a header field, then consider that the TAB is to validate a field and changing standard SAP logic is not advisable. Some more information on the exact field type will help me guide you better.
    Kind regards
    Peter Juby

  • Problem on tab in tabstrip

    Hi all,
       I want to execute particular code or event when i select a particular tab. But in standard only one event is available, that execute every time when i select any tab in tabstrip.Plz reply....
    Regards,
    Ramesh.

    hi,
    You can use selected tab property of tabstrip, just bind it to attribute
    says tab, node selected_tab and read that attribute by code wizard,
    suppose you have 3 tab name tab1, tab2, tab3
    i.e,
    DATA LO_ND_SELECTED_TAB TYPE REF TO IF_WD_CONTEXT_NODE.
      DATA LO_EL_SELECTED_TAB TYPE REF TO IF_WD_CONTEXT_ELEMENT.
      DATA LS_SELECTED_TAB TYPE WD_THIS->ELEMENT_SELECTED_TAB.
      DATA LV_TAB LIKE LS_SELECTED_TAB-TAB.
    navigate from <CONTEXT> to <SELECTED_TAB> via lead selection
      LO_ND_SELECTED_TAB = WD_CONTEXT->GET_CHILD_NODE( NAME = WD_THIS->WDCTX_SELECTED_TAB ).
    get element via lead selection
      LO_EL_SELECTED_TAB = LO_ND_SELECTED_TAB->GET_ELEMENT(  ).
    get single attribute
      LO_EL_SELECTED_TAB->GET_ATTRIBUTE(
        EXPORTING NAME =  `TAB`
        IMPORTING  VALUE = LV_TAB ).
    case lv_tab.
    when 'tab1'.
    *do somthing'
    when 'tab2'.
    *do somthing
    when 'tab3'.
    *do somthing.
    when  others.
    exit.
    endcase.
    Y N

  • How to disable Tabs in the application

    Hi OAF Guys
    How to disable tabs in the application? if any one knows reply asap
    Thanks in advance

    Tabs are generated by the menu structure, if you want your page not to have tabs, have a responsibility with a menu which does not have any levels of submenus and just has your page as a function in the menu.
    Thanks
    Tapash

  • How do I disable tabs?

    I want to disable tabs. I use a Mac at home, so an application doesn't take the entire screen like on Windows, so tabs are a pointless distraction that constantly gets in the way. Opening a new window is much more convenient.
    The extension TabKiller doesn't work on Firefox 4, so is there another way to entirely disable tabs? As for the moment I'm using Safari since Firefox 4 is utterly useless to me.

    Regrettably, no it doesn't.
    If I encounter a link that "pops" i.e. starts with a new page, I'll always get it in an open tab. Back before tabs it would open a new window, but no longer. Firefox assumes I want a new tab, because everyone uses/loves tabs.
    In Safari all I have to do is set "Open pages in new tabs" to "Never" and I'll never see another tab. In Firefox it becomes infrequent, but I still get new tabs popping up. For example, it's happened 5 times since I've been searching the Mozilla websites.
    In Chrome, forget it. Tabs are integrated into the interface. Asking Google to disable them in Chrome is like asking them to pull their eyes out. I should know, I have tried. (But then Google doesn't listen to anyone. They poop rainbows, and don't dare suggest otherwise.)
    If I can't find an answer this way I'll have to find the fellow who made Tab Killer and convince him to write an update for version 4, or I'll have to downgrade back to version 3.6

  • Can I disable TAB key for Flash?

    Hi All,
    Can i disable TAB key actions in flash? That is i dont want
    the focus to get transferred from one button to another on clicking
    TAB key. Im using my SWF in an MFC application. Even if the MFC
    developers trap the TAB key, it doesnt affect flash - the tab key
    works for flash. I will have to do something in flash.
    I tried _focusrect = false; but it doesnt satisfy me
    requirements.
    Regards
    Roshan

    Hi niki,
    That would do the thing. Thanks a lot.
    Regards
    Roshan

  • Mnemonics not diabled on disabled tab of JTabbedPane

    Does anybody know a simple way around this? I have a JTabbedPane with a disabled tab that has a mneumonic key on it. Clicking the mneumonic (ALT-T in my example) goes to the disabled tab, which defeats the purpose of having it disabled (clicking the tab with the mouse works as expected). This is obviously an overlooked bug. Running 1.4_02. Thanks in advance.
    Sample code:
    import java.awt.event.KeyEvent;
    import java.awt.BorderLayout;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import javax.swing.JTabbedPane;
    import javax.swing.JPanel;
    import javax.swing.JFrame;
    import javax.swing.JButton;
    public class TabPaneExample extends JFrame
        /** Creates a new instance of TabPaneExample */
        public TabPaneExample()
            super("TabPaneExample");
            JTabbedPane tabpane = new JTabbedPane();
            tabpane.addTab("One", new JButton("Panel One"));
            tabpane.addTab("Two", new JButton("Panel Two"));
            tabpane.setMnemonicAt(0, KeyEvent.VK_O);
            tabpane.setMnemonicAt(1, KeyEvent.VK_T);
            tabpane.setEnabledAt(1, false);
            JPanel panel = new JPanel(new BorderLayout());
            panel.add(tabpane, BorderLayout.CENTER);
            getContentPane().add(panel, BorderLayout.CENTER);
        public static void main (String args[])
            TabPaneExample frame = new TabPaneExample();
            frame.addWindowListener(new WindowAdapter()
                public void windowClosing(WindowEvent e)
                    System.exit(0);     
            frame.setSize(280, 230);  
            frame.setVisible(true);
    }

    http://search.java.sun.com/search/java/index.jsp?qp=&nh=10&qt=%2Bjtabbedpane+%2Bmnemonic+%2Bdisabled&col=javabugs&x=36&y=9

  • Disable tabs??

    In Preferences/Interface, I have both OPEN DOCUMENTS AS TABS and ENABLE FLOATING WINDOW DOCKING unchecked. Yet when I drag in files, they TAB themselves! I really don't like tabs, each time I have to manually FLOAT all windows. How can I totally disable tabs??
    thanks

    Yes, application bar icon... which doesn't allow a shortcut, either! (and I've only seen the icons on the flyout once!) That just seems crazy that they make this new Window system (tabs) so ubiquitous! If you don't want tabs, TOUGH LUCK~ Guess I should find some kind of "suggestion box" for CS5~ ?!
    thanks again

Maybe you are looking for

  • Business Area Wise Payment in F-53

    Hi Frnds., We are using ECC 6 and have document splitting functionality active. I have  created an invoice using FB60, with debiting 2 exps  belonging to 2 Business Areas and crediting one vendor. In the GL view, two vendor line items are generated f

  • How setup LDAP Sync After Install in OIM 11g  ver, 11.1.1.5.0

    Hi guys, I'm trying to find how to setup LDAP Sync After Install in OIM 11g (ver, 11.1.1.5).... I found on Metalink an interesting article "*How to Setup LDAP Sync After Install in OIM 11g [ID 1272682.1]*", but inside there is a Note that says: Note:

  • Lenovo G480 Problem: I cant Create a new Drive

    Hi everyone.. so my my laptop is a Lenovo G480 intel i3 4GB ram My operating System when i bought this was Windows 7 Home Basic. So my problem is that my Local Disk C is 420 GB while my Local Disk D is only 25.4 GB So I want my disk D to have more sp

  • ERRORS in calculations in AS3

    I have serios errors in calculation when my application compiled as ActionScript3. When it compiled as AS2 - no errors. These errors (For AS3) is present in all versions of Flah Player 9 which I has checked. Please anyone try to compile this code as

  • Employee determination on the basis of Org.Unit

    Hi expert, I'd like to retrieve the employee responsible for a task from the organizational unit: In the business scenario i've a person that, for each org unit, is in charge to fulfill this task; the expected behaviour would be that while creating a