How to remove Buttons

Hello All,
I have created ALV for displaying the output of customised table using Webdynpro. I have hides some standard buttons and created new customized buttons like "Refresh, Change", ......
I have created URL link for my webynpro component for displaying/changing the table, If user have access only to display the table then automatically the created customized buttons should be invisible/hide.
Can you please tell me how to solve the above issue.
BR
Srinivas

Hi Srinivas,
Create one authorization object.And before creating buttons for your ALV table,check authorization object.If sy-subrc = 0, create button,else "do nothing.
ex :
AUTHORITY-CHECK OBJECT '<auth_object>'  ID '<field>' FIELD '<value>'
if     sy-subrc = 0.
CREATE OBJECT lr_buttonui.
*  lr_buttonui->set_text('Refresh')."setting the text of the button on alv toolbar
  lr_buttonui->set_tooltip( 'Refresh' ).
  button1 = lv_value->if_salv_wd_function_settings~create_function( id = 'REFRESH')."creating the function for alv button
  button1->set_editor( lr_buttonui ).
endif.
Thanks
KH

Similar Messages

  • No Toolbar Group - How to remove buttons

    Hi Everyone
    I am working in CRM 4.0
    In sales order application, detail area 2 from prices tab i have to remove buttons of "Add Entry", "Delete Entry", "Update Prices".
    However BLueprint application builder and CRMC_PCUITOOLS transaction does not give any toolbar group for this tab
    Could anyone suggest what the problem in this case might be and how do i go about solving it
    TIA
    Asad

    Thanks
    The issue is resolved
    It seemed that there were two screen areas.
    While one did not had toolbar group, the other one had.
    Thanks
    Asad

  • How to remove buttons in an applet?

    how can I remove buttons from an applet?

    with the remove method, i guess. don't forget to (in)validate the applet afterwards

  • How to remove buttons from standard check in page

    Hi,
    Can any one tell me how to hide buttons from the standard check in page and re-arrange field in UCM. I want to just display Check In, Reset and Quick Help.
    Thanks,
    Abhijit
    Edited by: AbhijijitPr on Sep 6, 2010 2:28 PM

    Hey Tim,
    Even i am facing a similar situation but i have to hide the field on the selection of an option list
    How can i do it through profile and rules?
    Can it be done by using custom includes in the fields?
    if yes how?
    Thanks,

  • How to remove Button from Flex Mobile app actionbar with AS3?

    How exactly would i remove a Button from the actionBar "actionContent" in a flex mobile app?
    I tried these:
        this.stage.removeChild(menu_btn);
        this.removeChild(menu_btn);
        stage.removeChild(menu_btn);
        this.stage.removeElement(menu_btn);
        this.removeElement(menu_btn);
        stage.removeElement(menu_btn);
    I'm not having any luck with those. Im guessing where it is located in the actioncontent isn't considered the stage. Any ideas?
        <s:actionContent>
                            <s:CalloutButton id="menu_btn" icon="@Embed('assets/images/menu/menu_btn.png')" visible="false">
                                      <s:VGroup>
                                      <s:Button id="btn_one" label="Button" />
                                      </s:VGroup>
                            </s:CalloutButton>
                  </s:actionContent>
    The actionContent is setup like that, I know like with most mxml stuff I could give it an ID to reference it but im not sure how how to give the action content an id number `<s:actionContent id="testID">` does not work. So how can i access this to remove it? making it invisible isn't cutting it i need to actually remove it.

    Does this do what you are looking for?
    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
            xmlns:s="library://ns.adobe.com/flex/spark" title="HomeView">
        <s:actionContent>
            <s:Button id="excess" label="excess" />
            <s:Button label="remove" click="this.navigator.actionBar.actionGroup.removeElement(excess);" />
        </s:actionContent>
    </s:View>

  • How Can Remove Button in Print Out

    hi,
    i have
    i have created an HTML page No -45 with two regions,i have create two button Generate New Bill And Print Bil in first region and in second Region i have code Pl/SQL Code for create Bill..When i take printout click on print button then bill has printed but both print & Generate New Bill button are print on that print out .
    i don't want to see these button in print out.
    How Can i Remove these button on Print Out.What should i do .

    Hi,
    This might help
    http://w3schools.com/css/css_mediatypes.asp
    Br,Jari

  • How to remove buttons from a selection-screen as window.

    Hello SAPients.
    I'm using CALL SELECTION-SCREEN 100 STARTING AT 10 10 to call a previously created selection-screen. The window shows 4 buttons: Execute,  Check input, Save as variant and Cancel. The user is asking to remove the Check input and Save as variant buttons. Is that possible? I've been searching and I can't find a way to remove those 2 buttons.
    Thank you in advance for your help.

    Hello Ric,
    The buttons must be defined in GUI status right?
    So you must be calling the 'set pf-status' command?
    Modify this statement.
    suppose the function code for check input is 'CHECK' and save variant is 'SAVE'.
    TYPES: BEGIN OF TAB_TYPE,
            FCODE LIKE RSMPE-FUNC,
          END OF TAB_TYPE.
    DATA: TAB TYPE STANDARD TABLE OF TAB_TYPE WITH
                   NON-UNIQUE DEFAULT KEY INITIAL SIZE 10,
          WA_TAB TYPE TAB_TYPE.
    CLEAR TAB.
    MOVE 'CHECK'TO WA_TAB-FCODE.
    APPEND WA_TAB TO TAB.
    MOVE 'SAVE' TO WA_TAB-FCODE.
    APPEND WA_TAB TO TAB.
    SET PF-STATUS 'STAT' EXCLUDING TAB.
    Thanks,
    Susmitha
    Dont forget to reward points for useful answers

  • How do I eliminate Want to simplify your Firefox and learn how to remove buttons? Get started!

    I want to eliminate the animation that is on my Mozilla Firefox home page. It has been there since the latest update ( I do like the changes). I thought that once I opened it up and browsed through the new features it would go away and I would have my regular start page. I do not mind whats below the search box, I just dislike the animation above it.
    Thanks

    If you'd like to remove the animation, you can follow the guidelines I've outlined [https://support.mozilla.org/en-US/questions/1003911#answer-583952 here]. I know it's not a completely straightforward fix, but it's really the best that I can do.
    I hope that helped you!
    ''If it did, please mark this answer as the solution so that others can find information on the forums quickly. Thanks!''
    And of course, please post back if you need more help.
    Happy browsing!

  • Remove buttons from CAD Supervisor toolbar

    UCCE 9
    CAD 9
    I know we can remove Agent buttons from CDA -> CAD-Agent work flow -> User Interface section.
    How to remove buttons from CAD Supervisor toolbar please? Like Recording. If not possible, is it possible to Disable / Grey out a button. I am looking to remove / disable VoIP Monitoring and Record buttons please?
    Thanks,
    Kartik Bhatia

    Can you try this:
    Go to CAD Admin web page
    Services Configuration-> Remove VoIP/Recording & Playback Services
    Make sure that there are no IP addresses of any servers in the Recording & Playback Service menu. If there are some, select them and press ‘Remove’ button to remove them.
    Please make sure that you close CSD, CAD completely and login back to see the changes. I haven’t tried this before but I think this would disable the recording buttons in CSD. I don’t know whether it needs CAD services restarts(all).
    -Sunil

  • Remove buttons (edit/delete) from bizcard view of ess application

    Hi,
    Can anybody tell me how to remove buttons (edit/delete) from the bizcardview of ess apllications? I am using JDI/developer studio for the changes in source code.
    Thanks,
    Sameer

    Hello Sameer,
    I am working on EP7.0 ,NW04s . I am also looking to modify the Bizcard screen for Family Members overview . I want to hide the Edit and Delete button for Divorsed Spouse ...Were you able to hide the buttons?
    Please let me know how can that be achieved ..
    Any help would be highly appreciated.

  • ALV .  How to remove the sort buttons on toolbar in ALV report?

    Hi,experts
      As you know, in default case , the alv report will display two sort buttons(ascending ,descending) on its toolbar , So How to remove the sort buttons on toolbar in ALV report?
      Thanks for your help .

    Hi guixin,
    1. Before calling REUSE_ALV_LIST_DISPLAY
    2. Write this code :
    data : excl type SLIS_T_EXTAB.
    data : exclwa type SLIS_EXTAB.
    exclwa = '&OUP'.
    append exclwa to excl.
    exclwa = '&ODN'.
    append exclwa to excl.
    3. Then while calling the FM,
       pass this parameter also .
    IT_EXCLUDING     = excl
    It will work fantastic.
    regards,
    amit m.

  • How to remove the the standard button APPEND/INSERT/DELETE in webdynpro alv

    Hello,
    how to remove the the standard button APPEND/INSERT/DELETE in webdynpro-abap  alv
    Thanks
    Rakshar

    Use  this.
        data lo_cmp_usage type ref to if_wd_component_usage.
        lo_cmp_usage =   wd_this->wd_cpuse_alv1( ).
        if lo_cmp_usage->has_active_component( ) is initial.
          lo_cmp_usage->create_component( ).
        endif.
        data lo_interfacecontroller type ref to iwci_salv_wd_table .
        lo_interfacecontroller =   wd_this->wd_cpifc_alv1( ).
        data lo_value type ref to cl_salv_wd_config_table.
        lo_value = lo_interfacecontroller->get_model(
        data: lr_std type ref to if_salv_wd_std_functions.
        lr_std ?= lo_value.
        lr_std->set_export_allowed( abap_false ).
    NOte: ALV1 is alv component name
    Regards
    Srinivas
    Edited by: sanasrinivas on Dec 1, 2011 6:11 AM

  • How to remove the buttons in ALV GUI?

    Hi All,
    I am using the FM REUSE_ALV_GRID_DISPLAY for disaplying the ALV grid. i need how to remove these buttons ( mail word processing, loal file, Mail recipient,  ABC analysis, Microsoft Execl and Graphics ) from the ALV Gui?
    please give solution.
    Regards,
    Santha

    hi,
    IT_EXCLUDING TYPE SLIS_T_EXTAB OPTIONAL
    you need to append the Fucntion codes to the it_exclude and then pass it to the parameter it_excluding.
    append '&ABC' to it_excluding.
    append '&BAC' to it_excluding.
    call function 'REUSE_ALV_GRID_DISPLAY'
    IT_EXCLUDING = it_exlcuding
    Regards
    Anver

  • Urgent help: How to remove the accumaltion when show movies step by step with buttons

    I want to show the movie step by step by clicking the next
    button. Inside each frame, many movie clips are generated
    dynamically at runtime, and they can be played interactively.
    I achieves the step-by-step display of those frames by adding
    another layer with the action stop(). But I got one trouble: all
    the movie clips from previous frames are accumalted. How to remove
    the accumulation from previous frames?
    For the continuous display of the movie, I tried to use
    onEnterFrame() and change the _visible property of all the movie
    clips to false in this function. But it doesn't work for the
    step-by-step display. Once I click the next button, the movie clips
    at the current frame just show very quickly, then disappear. What
    should I do?
    I need to fix this immediately.
    Your help would be greatly appreciated.
    - zcx

    you can use the removeMovieClip() method for those movieclips
    added dynamically.

  • How to remove credit card information when the none button is not available?

    The None button doesn't show up when I edit my billing information. Help?

    Maybe:
    How do I remove my credit card...: Apple Support Communities
    How to remove credit card details?...: Apple Support Communities
    Some uses have said they could not.

Maybe you are looking for