Disable toolbar in SALV_WD_TABLE

hi,
We are implementing Performance management process based on EHP4.
We are using standard SAP delivered WD ABAP applications.
On the manager's view there is table to show all appraisal form of his sub ordinates. This table is created through SALV_WD_TABLE component,
The problem is that the toolbar of this table allows the manager to create/ delete the appraisal form of the sub ordinates employee and we do not want to have this functionality.
i would like to know how can we disable the toolbar of the table so that manager cannot access any buttons on the toolbar.
Thanks,
Rahul

Try following code in the WDDOINIT method
DATA: l_ref_interfacecontroller TYPE REF TO iwci_salv_wd_table .
l_ref_interfacecontroller = wd_this->wd_cpifc_alv_table( ). " Name of component usage given by you for SALV_WD_TABLE
DATA: l_value TYPE REF TO cl_salv_wd_config_table.
l_value = l_ref_interfacecontroller->get_model( ).
DATA: lr_standard_functions TYPE REF TO if_salv_wd_std_functions.
lr_standard_functions ?= l_value.
lr_standard_functions->set_pdf_allowed( abap_false ).
lr_standard_functions->set_filter_complex_allowed( abap_false ). "* Disable Filter tab from Settings
lr_standard_functions->set_excel_inplace_allowed( abap_false ).
lr_standard_functions->set_export_allowed( abap_false ).
lr_standard_functions->set_dialog_settings_allowed( abap_false ).
lr_standard_functions->set_view_list_allowed( abap_false ).
lr_standard_functions->set_filter_filterline_allowed( abap_false ).
lr_standard_functions->set_edit_append_row_allowed( abap_false ).
lr_standard_functions->set_edit_insert_row_allowed( abap_false ).
lr_standard_functions->set_edit_delete_row_allowed( abap_false ).
You will find all methods to remove standard toolbar in methods of interface if_salv_wd_std_functions. Double click on it to find the methods
Regards,
Saket.

Similar Messages

  • I'm unable to lock the toolbars so that disabled toolbars remain disabled. HELP!

    I want to be able to disable toolbars; enable as needed, e.g., Yahoo toolbar. However, every time I open Firefox in a new window, there are the toolbars I just disabled in a previous window. What am I doing wrong/not doing?
    I'm also not able to control Panel uninstall certain toolbars, e.g., Absolutist Games Customized Web search..which i feel like using a bomb on to get it off of my toolbar group!
    Please help. Do I have to completely uninstall Foxfire, reinstall?
    Mizharmony

    Do you think people can't read? I know where extensions and add-ons and plug-ins are, and where the options are, but what I don't know is why Firefox 4 was released with so much that doesn't work. How about some advice that's not screamingly obvious?
    And why does Hotmail looks so good on Chrome and so dire on Firefox?
    Why do icons keep moving and disappearing?
    And why does yahoo keep taking over as the search engine?
    And why does the yahoo toolbar keep coming back no matter how many times I get rid of it?
    Why is Firefox still so slow opening?
    How could Mozilla release this monstrosity? IE9 (I can't believe I'm saying this) is better.

  • Enable disable toolbar items on click on any checkbox,radio button,text box.

    Hi Friends,
    I am create application in eclipse RCP E4 and now i am trying to Enable disable toolbar items on click on any checkbox, radio button, text box .
    Please Help me friends....

    Hello friend my proble is solve and now i am sharing my solution ....
    I am create RCP application and view side any listener click event fire time apply this code
    IEvaluationService evaludationService = (IEvaluationService) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getService(IEvaluationService.class);
    evaludationService.getCurrentState().addVariable("noOfRowsChecked", noOfRowsChecked);
    evaludationService.requestEvaluation("com.jobsleaf.propertytester.canDeleteItem");
    and add plug in extension and create property tester class means listener property tester class side apply this code
    IEvaluationService ws = (IEvaluationService) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getService(IEvaluationService.class);
    Integer integer = (Integer) ws.getCurrentState().getVariable("noOfRowsChecked");
    if (integer != null)
    if (integer.intValue() > 0)
    return true;
    I hope useful above code when use property tester in eclipse RCP

  • How can I disable toolbar features when opening a file in a browser?

    Hi,
        I am trying to create an application that loads a pdf in a browser and want to disable certain toolbar features so that the user is incapable of ever seeing them. I know how to do this manually by going to the toolbar settings, but the user can easily enable them as well doing the same process. How can I code this to enable and disable features of adobe reader without having to change the registry keys or by doing them manually? Is there a way to do this? Is there a command that I can type in the command prompt to do this? I am working in C++ on a windows app.
    Basically, I am asking how to edit any/all Edit>Preferences by coding it or through command prompt when launching the pdf without having to do it manually.
        Much help would be appreciated. Thank you!

    If you are using URLConnection
    myURLConnection.setRequestProperty("pragma:","no-cache"Actually, the 'pragma' header is an HTP 1.0 (old) concept. The one for HTTP 1.1 is 'Cache-Control'. That said, you should always use both to support old/new browsers.
    You could also use the following headers :
    Expires, must-revalidate, proxy-revalidate etc...
    You could also implement a getLastModified() method in your servlet, which returns the time (as a long) at which the content was last changed. The server could then intercept 'If-Modified-Since' requests.
    Keep in mind that, because of several notorious browser bugs ( http://www.web-caching.com/browserbugs.html ), it can be difficult to effectively turn off caching across the board.

  • OVCD: Disabling toolbar in full screen mode

    I use OVCD from my macbook pro in fullscreen mode.
    Every time I hover close to the bottom to switch Solaris windows this toolbar pops out.
    Is there a way to completely disable the toolbar?

    Figured this one out myself. Apparently if you move your cursor to the top of the screen in full screen mode the toolbar drops down. Then there's a little lock symbol you can click to make it stay down. Basically it works like the launch bar on the desktop.
    Thanks self!

  • Disabling toolbars of Acrobat reader in a PDF file

    any help ???

    hi ,,,,
    Can u say me did u got any useful information about the query u posted here?I too need to disable the toolbars in a pdf file! I am able to do that by placing the config.js in the javascripts folder ....but I am unable to do that if i open it in the IE.Can u help me ion this regard?
    regards
    saran

  • Disabling toolbar in browser

    i have to disable the toolbar in the browser when the application is running.ie back and other buttons.
    can this be done. i don't know java script or jsp much as i'm a beginner.
    does it require java script or jsp. i have a java script code but i dont know how it works. can any body help me please.
    code goes here:
    <html>
    <body>
    <SCRIPT LANGUAGE="JavaScript">
    window.open('x. htm','newWindow','height=768,width=1024,toolbars=n
    o,scrollbars=yes,resizable=yes');
    window.opener = top;
    window.close();
    </SCRIPT>
    </body>
    </html>
    please tell me whether this works or is there any other method.
    thanks

    x.htm is the webpage that you want to open in the new window.
    Replace that with whatever you wish.
    However, you can not completely stop people using the browser toolbar buttons. A simple ctrl+N will open up a new window, with the same URL, and the buttons available.

  • Displaying PDF within Browser, but disabling Toolbars and Navigation Panel

    I am currently working on the site for the University of Oregon Undergraduate Council, and my boss wishes me to disable the Toolbars and Navigation Panel that display when users open a PDF, as she finds them "distracting". Although I think this is a bad idea, is there a way to input code which would automatically hide or disable the use of Toolbars within a browser window? I know that users can disable these themselves via F8 and the like, but if anyone knows a way to disable (or more preferably, automatically hide) these without work on the part of the user, that would be most appreciated.
    -Luke Norman
    http://www.uoregon.edu/~ucouncil/

    I don't know if a PDF is able to tell Acrobat what to do (or any other viewer from a different vendor) but, if it is possible, you might check the Acrobat Scripting Forum http://www.adobeforums.com/webx?13@@.3bbedaa6

  • Disabled ToolBar Buttons

    Hi Folks ,
    how can i eanble/disable a toolbar button insted of using exclude table ?

    hi,
    chk this sample.
    REPORT  z_test_interactive NO STANDARD PAGE HEADING.
    DATA: BEGIN OF it_one OCCURS 0,
          vbeln LIKE vbak-vbeln,
          erdat LIKE vbak-erdat,
          END OF it_one.
    DATA: BEGIN OF it_two OCCURS 0,
          vbeln LIKE vbak-vbeln,
          posnr LIKE vbap-posnr,
          END OF it_two.
    DATA: BEGIN OF it_code OCCURS 0,
          okcode LIKE sy-ucomm,
          END OF it_code.
    DATA: fld(20), val(10).
    START-OF-SELECTION.
      SET PF-STATUS 'STATUS'.
      SELECT vbeln
             erdat
             FROM vbak
             UP TO 100 ROWS
             INTO TABLE it_one.
      IF sy-subrc = 0.
        SORT it_one BY vbeln.
        SELECT vbeln
               posnr
        FROM vbap
        INTO TABLE it_two
        FOR ALL ENTRIES IN it_one
        WHERE vbeln = it_one-vbeln.
      ENDIF.
      LOOP AT it_one.
        WRITE:/(10) it_one-vbeln,
               (10) it_one-erdat.
      ENDLOOP.
    AT LINE-SELECTION.
      IF sy-lsind = 1.
        it_code-okcode = 'FCODE1'.
        APPEND it_code.
        CLEAR it_code.
        it_code-okcode = 'FCODE2'.
        APPEND it_code.
        CLEAR it_code.
        SET PF-STATUS 'STATUS'  EXCLUDING IT_CODE.    GET CURSOR FIELD fld VALUE val.
        IF fld = 'IT_ONE-VBELN'.
          CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
            EXPORTING
              input  = val
            IMPORTING
              output = val.
          LOOP AT it_two WHERE vbeln = val.
            WRITE:/ it_two-vbeln,
                    it_two-posnr.
          ENDLOOP.
        ENDIF.
      ENDIF.
    AT USER-COMMAND.
      CASE sy-ucomm.
        WHEN 'BACK1' OR 'CANC1' OR 'EXIT1'.
          IF sy-lsind = 2.
            SET PF-STATUS 'STATUS' .
            SET USER-COMMAND 'BACK'. "this is the trick to go back to first list
          ENDIF.
          IF sy-lsind = 1.
            LEAVE TO SCREEN 0.
          ENDIF.
      ENDCASE.
    rgds
    anver
    pls mark hlpful answers

  • Disable Toolbar in custom TextEditor Control

    Dear Gurus ,
    I made a custom Texteditor control in my own screen. The problem is that i can't disable the toolbat above the control .
    Please see my code ....
    CREATE OBJECT G_EDITOR_3
        EXPORTING
           PARENT = G_EDITOR_CONTAINER_3
           WORDWRAP_MODE = CL_GUI_TEXTEDIT=>WORDWRAP_AT_FIXED_POSITION
           WORDWRAP_TO_LINEBREAK_MODE = CL_GUI_TEXTEDIT=>TRUE
           WORDWRAP_POSITION          = 70
        EXCEPTIONS
            OTHERS = 1.
        IF SY-SUBRC NE 0.
          CALL FUNCTION 'POPUP_TO_INFORM'
            EXPORTING
              TITEL = G_REPID
              TXT2  = SPACE
              TXT1  = TEXT-001.
        ENDIF.
    Thanks a lot ....

    Hi,
    Try this code to disable your custom designed texteditor.
      CALL METHOD: editor_s->set_toolbar_mode
                       EXPORTING toolbar_mode = '0'.
    pls don't forget to place your container name inplace of mine,i.e  "editor_s".
    do rply if it's workable.
    Edited by: izullah on Feb 16, 2010 7:24 AM

  • MS Word 2011 for Mac toolbar missing and cannot get back. tried disabling toolbars, deleting Normal.dotx to no avail. Sometimes just pops up for no reason. Also reinstalled Office.  Any ideas please?  Driving me nuts as cannot use shortcut icons

    I have MS Word 2011 installed on my iMac running Lion.  Have overcome the problem of the hidden Library but still unable to see toolbar with the shortcut icons such as Format paster.  Have researched and tried deleting normal template.  no joy. reinstalled Office. no joy. unchecked standard and formatting toolbars and rechecked and a blank line appears where toolbar icons should be.  Sometimes they magically appear after a few minutes!  Often not.
    this is driving me nuts so please any ideas

    That's awesome G4 dude, thank you.
    I've had this problem since upgrading to the latest release of word 2011. Thre used to b a losenge in the top right corner, when this dissappeared it lost the toolbar strip. Really frikkin' annoying it was. Thanks for the tip!
    So can someone tell Microsoft about this problem? their forums are as useless as their desktop help files.
    J

  • Script for disabling toolbars

    Hi all.
    I am designing a website and I have a pdf that opens within in an iFrame.
    Is there a script I can put in the page code that ensures that when the pdf opens the Adobe Reader toolbars and menus are hidden.
    To see what I mean, go here:
    http://www.vertexdesign.co.uk/Faceplace3/
    click on "News/Reviews" then on any pdf
    Thnx in advance

    Hi all.
    I am designing a website and I have a pdf that opens within in an iFrame.
    Is there a script I can put in the page code that ensures that when the pdf opens the Adobe Reader toolbars and menus are hidden.
    To see what I mean, go here:
    http://www.vertexdesign.co.uk/Faceplace3/
    click on "News/Reviews" then on any pdf
    Thnx in advance

  • Disabling toolbar and menubar from pdf file from web browser

    I have been unable to remov PDF Toolbar when viewed in browser. To generate PDF I am using rwclient of "Oracle Reports". Is there any solutionto do this.
    Thank you in advance
    Regards Sne

    This maybe helpful:
    http://support.adobe.com/devsup/devsup.nsf/docs/51866.htm

  • Disabling toolbars of a PDF file

    I am developing a web application on JSP.
    There are option to download policies that are in pdf but now problem is client don't want to allow user to download.
    He want to only see that policies i.e. no save option, no copy option, no print option.
    I hope you will solve my problem.

    This forum is for questions about the javadoc tool. You might have better luck getting an answer elsewhere. Cheers.

  • PDF toolbar disabled on some sites in IE8 (Acrobat v8.1.3)

    Hello,
    Recently we have come across sites that do not allow a conversion to PDF through the Adobe PDF toolbar in IE8. The toolbar is greyed out.
    For example, when searching google.com for acrobat, the results page has a greyed out pdf toolbar.
    Has anyone else come across this? I can replicate this on a range of other sites too (though it works for the majority of sites).
    I've looked at http://forums.adobe.com/message/2829007 and we do have all our add-ons enabled.
    Cheers,
    Rhys

    Even if I go to http://acrobat.com/ I still have a disabled toolbar.

Maybe you are looking for