Hide all buttons in a GUI-STATUS ?

I'd like to hide all functions from the toolbar of a GUI-STATUS except for one function.
I could of course create a table with all the FCODE except for the one and then call
SET PF-STATUS 'bla' EXCLUDING itab.
But whenever I add a function to the GUI-Status then, I have to change that code. Is there a way to prevent this.

Hello Daniel,
Looking at the responses that your question has got, I wouldn't say that I had understood the question as well as
the others have.
I understand that you want to be able to dynamically add and delete the Functions from your toolbar. But what I did
not quite understand is what exactly you had meant by "...I have to change that code....". If you want to perform an
action, you would have to write some code anyways. So here's what I would do:
1. Define a GUI-STATUS which has all the function codes you will ever need during the program.
2. You can manipulate the Buttons on the toolbar with the EXCLUDING option.
3. I don't believe that you need to use the FM RS_CUA_GET_STATUS_FUNCTIONS. Consider using instead the ABAP statement GET PF-STATUS. The Online Documentation has explained this statement wonderfully.
4. I don't think that creating a database table to merely maintain the FCODEs of a program is a sensible option either.
Instead consider using an internal table of constants, where you have all the FCODES required.
I hope these points would clarify some of the things. If you need further assistance, please get back.
Regards,
Anand Mandalika.
P.S. Two points that I would like to remind you:
a). You can use the statement SET PF-STATUS SPACE to reset all the PF-STATUS.
b). Once you set a PF-STATUS, it will be available till the moment you use the next SET PF-STATUS statement.

Similar Messages

  • SHOW ALL / HIDE ALL BUTTONS produce error in chm but not in "View Selected Item"

    My SHOW ALL and HIDE ALL buttons work in the View Selected
    Item mode. However, the compiled version generates an error tag:
    Line: 72
    Char: 1
    Error: Object expected
    Code: 0
    URL:
    mk:@MSITSTORE:C\Documents%20and%20Settings\glenn_michaels\RoboHelp%206.0\TCA\!SSL!
    In short, the the compiled chm is located in the SSL. I tried
    adding showhide.js and ehlpDhtm.js to the SSL folder, but that
    didn't make a difference. What is missing? How do I fix this?
    Many thanks in advance...
    glennito

    Mr. Grainge,
    I've tried to follow your instructions to the letter, but I'm
    not having any luck.
    1) I copied the showhide.js to
    a) RoboHelp 6.0 > Project Folder
    b) RoboHelp 6.0 > Project Folder > SSL
    c) RoboHelp 6.0 > Project Folder > SSL >
    MicroSoft_HTML_Help
    2) I pasted btnhideall.gif, btnshowall.gif, printerblue.gif
    into
    a) RoboHelp 6.0 > Project Folder > SSL
    b) they are also listed in RoboHelp 6.0 > Project Folder
    3)The Project Manager > Baggage File originally displayed
    a
    a) Project (Name) folder
    b) ehelp.xml
    c) RoboHHre.Ing
    I opened the Baggage File > Project (Name) folder,
    selected New Baggage File, and added, respectively:
    i. btnhideall.gif
    ii. btnshowall.gif
    iii. ehlpDhtm.js
    iv. printerblue.gif
    v. printerred.gif
    vi. showhide.js
    vii. TCA.fpj
    vii. root.fpj
    4) I also opened rhbag.apj in Notepad. It shows
    a) ehelp.xml and RoboHHRE.Ing accompanied by
    <usercreated>false</usercreated> tags
    b) the remaining baggage files are accomanied by
    <usercreated>true</usercreated> tags
    5) Finally, I used Notepad to display two topic files in
    which the error message identified a Line: XX. In one case the line
    # is 42, in another, 19. In both cases, when I counted lines,
    starting with <body>, I ended up on:
    onClick="JavaScript:hideEm()"
    However, I am none the wiser for my effort and don't know
    what (5) might be telling me.
    6) The only thing I can think of is that the compiled chm
    file is two levels away from the Project Name directory that holds
    all the files. The files live in Robohelp 6.0 > Project Name
    while the compiled help is found in Robohelp 6.0 > Project Name
    > SSL! > MicroSoft_HTML_Help > Project Name.chm.
    Should I be adjusting the Relative Path within the topics?
    Many thanks for your attention and assistance.
    glenn

  • Creating a cascading menu button an a GUI status

    I have a GUI status on a normal screen (NOT on an ALV grid).  On this status I have added 3 function buttons (SEARCH, CREATE, MANAGE).  I want to add a 4th button that appears and acts like a cascading menu button. An example of what I want the button to look like is similar to what you would see on the standard 'Change Layout' button on an ALV Grid.  I am not using an ALV grid, though - but I'm trying to get a button on the GUI status to act like that - where you click on it and you see multiple options such as Display, Edit, Copy.
    I don't want to add this to my MENU bar.  I'm trying to add it to my APPLICATION bar.  If anyone has ever done this, please let me know how you did it.
    Thank you for any helpful information.
    -P. Foley

    I think that is done with the "toolbar" control so it will be in the screen, not on the application bar... have a look at SAPTOOLBAR_DEMO1, and the CTMENU_* programs, plus
    http://help.sap.com/saphelp_sm32/helpdata/en/8f/bcc23657ad0730e10000009b38f839/frameset.htm
    for more info on this, if it is the style you want.
    Or perhaps look at Generic Object Services to add a button between the application bar and below the menu (as in ME23N, FB03 etc)
    Jonathan

  • How to hide all button except one in a PageButtonBar

    Hello,
    I am newbie to OAF.
    And i am trying to do is, when i would clink on a submit button of my Update page(page is using Train. All the buttons are in a TrainFooter Region, whose lay out is pageButtonBar and Submit button only visible when i am on the last page of train, i.e. Summary Page) then all the button except one (Back to Search Page) will get hide.
    Pls let me know where i need to work to do this, i try to do it in PR but no change get reflect.
    Thanks,
    Udit

    Hello Abdul,
    Yes, i want only "Back to Search" Button on last page when i press "Submit" Button.....but before pressing submit...all button should be there on Summary(last) page except "Back to Search" Button....and when i press Submit Button then only page buttons get hide without any change in whole pageLayout.
    Here is CO of my TrainFooter===========
    PR====
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    OATrainBean trainBean=
    (OATrainBean)pageContext.getPageLayoutBean().getLocation();
    trainBean.prepareForRendering(pageContext);
    int step = trainBean.getSelectedTrainStepRenderedIndex();
    if(step + 1 != trainBean.getNumberOfRenderedTrainSteps()){
    OASubmitButtonBean submitButton =
    (OASubmitButtonBean)webBean.findIndexedChildRecursive("Submit");
    submitButton.setRendered(false);
    PFR==========
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    if (pageContext.getParameter("Cancel") != null)
    pageContext.forwardImmediately("OA.jsp?page=/oracle/apps/ak/Emptry/webui/EmpTrySearchPG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    true, // retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
    if(pageContext.getParameter("Submit") != null){
    am.getOADBTransaction().commit();
    throw new OAException ("Current Record is Updated!!", OAException.CONFIRMATION);
    Pls let me know in any other confirmation.
    Thanks,
    Udit

  • Desactivate standard buttons in GUI Status

    We are looking to desactivate these standard buttons in the gui status.
    Button 1: Creates new session
    Button 2: Generates a shortcut on the desktop
    Button 3: Help
    Button 4: Customizing of local layout
    We thing that these buttons are set automaticaly by SAP. Is there a way to desactivate them. (SAP version 4.6C)
    Help Required,
    Best regards.

    Hello Daniel,
    It is not possible to do that. The reason is that these buttons are a part of the SAPGUI. They don't come from the application server - i.e., they don't have any function codes as such. So you wouldn't be able to disable them.
    Regards,
    Anand Mandalika.

  • GUI-status disable button?

    Hi,
    How to disable an button on my gui-status MAIN?
    tnx.

    Hi,
    You can use the following command:
    DATA: it_buttons TYPE STANDARD TABLE OF sy-ucomm,
              wa_buttons TYPE sy-ucomm.
    wa_buttons = 'SAVE'.
    APPEND wa_buttons TO it_buttons.
    SET PF-STATUS 'ABC' EXCLUDING it_buttons.
    Screen will have the button disabled having F-CODE 'SAVE'.
    Regards,
    Kunjal

  • GUI status in OOPS in ALV

    Hi Gurus,
      Am developing the ALV report in OOPS. In that report am displaying 2 grids one after the other. My problem here is am getting the tool bar separately for the 2 grids. So i disabled the tool bar for two grids in layout. And i copied the standard gui status SLVC_FULLSCREEN into that report. Now am getting the tool bar. But i did nt get the button events. The buttons are clickable but the functionality is not doing. How to get the functionalites for the ZSLVC_FULLSCREEN. Please guide me some suggestions how to copy the functionalites for those.
    Points will be awarded
    Thanks
    Ravi

    check the all function codes of the buttons in ZSLVC_FULLSCREEN GUi status
    and write u r functionality in your progrm in at user-command subroutine.
    case sy-ucomm.
         when 'xxx'
               do something.
         when 'yyy'
               do something.
    endcase.

  • Hide some buttons or enable buttons, that's the question

    I have a problem with content presenter portlet, I developed a new theme for my portlets and it was all great, but in workspace studio you have the chance to say "hey i want this button, this one and... no i don't like this", allowing you to determine when the user can or cannot change the status of your portlet, but in a content presenter portlet this is not possble(or i haven't found it) I need to hide all buttons except for the edit button, I modified my theme and now the delete and float buttons are disabled in that theme, but i haven't found the way to hide the maximize an minimize buttons, any ideas?
    It's something similar to borderless theme, but that theme hides everything and then inserts the edit button in the body of the portlet using javascript(I'd rather not to use that).
    Thanks a lot

    If you do not wish the porltet to have maximize or minimize capabilities, simply do not entitle those states on the portlet in the desktop. Note that you should give maximize capability to those that you've entitled to be able to edit (configure) the content presenter portlet instance since the Wizard interface will work best when in a maximized view.

  • GUI status items are not displayed

    Hi all,
    Some parts of gui status are not displayed but some of them are displayed.
    What is the problem?
    Thanks.
    deniz.

    Hi snehi chouhan,
    I have created a program and two gui statuses for this.
    One of them is set at first display of report but not all items.
    Thanks.

  • Link symbol (Hand symbol) in " Show all" and "Hide all"

    Hi peter,
    With respect to the same topic posted by me, can u help me in
    one more requirement (definitely simple for u)
    When i try to click these show all/hideall buttons (the hand
    symbol) should appear which usually appears when we click any
    link.....how this can be done........

    Hi peter, apart from adding the cursor pointer (per ur
    guidance), i also add some "screen tip text" (For ex. "Click to
    view instructions of all fields)...i included the tag <a
    title="Click to view -----------">
    i'm getting the same screen tip text for both "Show all" and
    "Hide all" buttons (that is obvious)
    If i click "Hide all" button, i want the screen tip text as:
    "Click to hide all instructions"..............probably i need to
    change this in the "showhide.js" (how to do this).............can
    you help me to achieve even this :-) Thankx a lot in advance :-)
    Note: You may thing that this screen tip text is not required
    for these two buttons (as it is self-explanatory) (I too
    know)..........however, i can use this method in any other
    requirement...........

  • DISABLE button(FCODE) from the GUI-Status

    Hi people,
    Can anyone help me out with this... I need to manipulate the PF-STATUS and 'DISABLE' some of the buttons. I am already using the
    'SET PF-STATUS 'STATUS_100' EXCLUDING lt_off_commands.' but instead of hiding the buttons I would rather diable them so that they are visible on the toolbar but could not be used.
    TIA,
    ZAM

    Hello ZAM,
    There's a standard way to do that. When you Create / Edit a GUI status in the Menu Painter, you can choose whether you want the disabled function codes to be hidden or to be displayed as grayed out.
    Follow the menu path <i><b>Goto>Attributes>Pushbutton Assignment</b></i>. You will get a pop-up with three options. The default option is <i><b>Hide all</b></i>. Just choose <i><b>Display all</b></i> on this pop-up and activate the GUI status. Your functionality is achieved.
    If this helps, please reward the points and close the thread. Otherwise, please get back with the problem you might be facing in doing so.
    Regards,
    Anand Mandalika.

  • Add Button to GUI STATUS Application toolbar

    Hi,
    I have to add a button in the application toolbar of a gui status. I have done that many times before, but I never got into trouble like this time....
    When I open the Gui status and the tree for the application toolbar, I can see already set buttons. When I now click on change (a modification warning comes) and press the plus-icon, it is possible to enter a new item. But everything I´m typing, I get the message Function code XXXX has not been assigned to a function key. I have never got this before....
    When I now go to SE41 and enter a new function key, I can´t use it either afterwards as a button in the application toolbar.
    In the tree of the function keys, I can´t change anything...
    What can I do here? The program name is SAPMZLCG, so it has been modified sometimes. But how can I change the GUI STATUS now to add a new button?
    Thank you!

    You need to goto the application toolbar and the add your text to the items and click below the text you will get one popup which will ask for static text and dynamic text. select statictext and then add all the information like text name and if you want to add an icon you can do it aswell. the there will be another popup for fuction attributes where you will be able to find some options loke fuction types and reaction need to select all that and then click on the ok button and save check and activate the same and after that activate and check whether the button is visible or not. once the button is visible then you need to check for the ok_code and sy_ucomm and then insert the fuctionality of the button.
    I hope this might solve your problem.

  • How to get GUI Status(Push Buttons) in ALV Report

    Hi Friends
    I have a requirement in a way that:
    Once selection-screen was processed,an ALV report has to come and above the ALV List,I need a custom GUI Status(4 Push Button) with Push Buttons Logic.
    Once I had clicks on thesse push button,I need to display one more ALV List and above this List,again I need a custom GUI Status(2 Push Buttons) with Push Buttons Logic.
    Can anyone throw some light how we can achieve this.
    Thanks for your cooperation!
    Regards,
    Madisetty

    data: rt_extab type slis_t_extab,
            g_ucomm like sy-ucomm ,
            g_selfield type slis_selfield.
    form alv_display .
      call function 'REUSE_ALV_LIST_DISPLAY'
         exporting
         i_callback_program             = g_repid
         i_callback_pf_status_set       = 'PF_STATUS'
         i_callback_user_command        = 'USER_COMM'
           it_fieldcat                    = it_fldcat
          tables
            t_outtab                       = it_final1
      perform pf_status using rt_extab.
      perform user_comm using g_ucomm g_selfield .
    endform.  
    form pf_status  using    p_rt_extab.
      set pf-status 'PF_STATUS' excluding p_rt_extab.
    endform.
    form user_comm  using    p_ucomm like sy-ucomm
                             p_selfield type slis_selfield.
      data: l_row type i.
      case  p_ucomm.
        when 'DISPLAY_PO'.
          loop at it_final1 into wa_final1.
            if wa_final1-sel eq 'X' .
              l_row = l_row + 1.
            endif.
            if l_row gt 1.
              message e004.
            endif.
            clear wa_final1.
          endloop.
          p_selfield-fieldname = 'SEL'.
          read table it_final1 into wa_final1 index p_selfield-tabindex .
          set parameter id 'BES' field wa_final1-ebeln.
          call transaction 'ME23N'.
      endcase.
    endform.
    *create user interface for gui status by double clicking on 'PF_STATUS'.
    *Check the above sample code .

  • Gui status standard - new button

    Hi gurus,
    I have added a new button to a standard gui status: 0101 of function group CEI0. Everything seems ok, but when I start the transaction (CU50) I can't see the new button. Should I do some other operation to see the modification I have done?
    Thanks a lot
    Guido

    Hi
    It should be a gui for a popup, I don't believe It can deactive your new functions at runtime, but try to check what's happens as soon as that gui is set in PBO.
    Max

  • Copy GUI Status with all languages

    Hi,
    this is my situation:
    I copied an existing GUI Status (function group SALV, status STANDARD) to a newly created report. Original languiage for the status is German, for my report is English.
    Only the German texts have been copied.
    How can I copy all existing languages without changing the original language of my report?
    TIA,
    Clemens
    P.S.: Easily get rewards!

    Hi Clemens,
    I am afraid you need to do one by one.
    Please go to SE41 and give the program name and status name. In menu choose GO TO ->Translation.
    or try t/code SE63.
    Hope this will help.
    Regards,
    Ferry Lianto

Maybe you are looking for

  • How to find DateofBirth of  currently login user?

    Hi everyone, I got some problem regarding how to get the DateofBirth of a user?Is there any class or property in C# or ASP.NET from where we can find the date of birth?

  • Emails sent with Mail show as double for Windows users

    I just restored my computer, and trying to go back to Mail instead of the bloated Outlook. However, I am having the same problem as before: every time i send an email, the recipient always sees a single message with double the content. This means he

  • Destination type code in po receipts

    HI All, Iam doing a report on po receipts in which there is a column destination_type_code to be displayed, when we looked at the view in the form that is bringing the column value it was from rcv_supply, but when we checked in that table we could no

  • FI-GL- FI Document mass change

    Hello friends, We are on ECC6 and having requirement from user to have field "VALUT - Value Date" in "Mass Change" option of FBL3n. Can any one give me solution to add VALUT field in mass change screen. Thanks, Parag +9120 9823053472

  • Title in Brower Window

    Hi - I use Captivate 4. Title of course in browser window is incorrect when project is preview or published.  I have checked preferences, properties, publish settings, etc.  All titles are correct.  On this forum I found info about changing this in e