Hide  button in webdynpro standard

Hi friends,
    In the past some folks guided me to hide and change standard buttons; now I'm stuck with a toolbar which does not respond to my code when I want to hide it
  Im enhancing webdybpro HRECM00_PLANNING_UI method WDDOMODIFYVIEW of view v_planning:
  lr_lbl ?= view->get_element( ID = 'ADJUST_COMPENSATION' ).
  IF  lr_lbl IS NOT INITIAL.
    lr_lbl->set_visible( 01 ).
  endif.
  lr_lbl ?= view->get_element( ID = 'SALV_WD_PDF' ).
  IF  lr_lbl IS NOT INITIAL.
    lr_lbl->set_visible( 01 ).
  endif.
but when debug it it seems that the method get_element is not getting anything. This is the detail of the webdynpro and toolbar buttons I want to hide (not all of them):
Any help will be greatly appreciated!!

Hi Federico,
If you want to hide standard ALV toolbar buttons,following is the code.
*---->ALV Config table reference
    lv_value = lo_interfacecontroller->get_model( ).
*----->ALV print,export buttons disabled
    lv_value->if_salv_wd_std_functions~set_pdf_allowed( abap_false ).
    lv_value->if_salv_wd_std_functions~set_export_allowed( abap_false ).
*----->Alv personalization viewlist disabled
lv_value->if_salv_wd_std_functions~set_view_list_allowed( abap_false ).
Thanks
KH    

Similar Messages

  • Hide Button in Applications WD ABAP Travel Standard

    Dear Experts.
    Please Someone can help me with suggestions for the following issue that I have in this moment:
    I need hide the button "Entrada Nueva" "New Entry" for the component[ fitv_vc_advances|http://img842.imageshack.us/img842/2719/fitvvcadvances.png]
    I found that this is posible using the t.code FITVFELD_WEB that controls the input fields within the portal.
    But I am checking and I don't find this with this t.code for hide this button.
    Thanks in advance,
    Regards
    Carmen G

    Hi,
    are you using ESS in portal?
    you can hide button through iView
    choose iView form Content Management, then preview.
    press "Ctrl" button  (@ button you want to hide) combine with right click of your mouse, then you can set the button invisible.
    hope it helps

  • How to hide buttons in UWL

    Hi,
    When we select one task and click on View Detail in UWL it will open another window with task details and some buttons Launch Webdynpro,Forward,Assign to Me,Open Form and links like Display details in SAP GUI.
    We want to hide some of the buttons based on the task.can we acheive this by modifying xml file
    Thanks
    Bala Duvvuri

    Hi srinivas,
    Please refer to the earlier post from Sandeep:
    http://help.sap.com/saphelp_nw70/helpdata/en/09/6d6b17b29b4eef83a553acaa52f668/content.htm
    You need to locate the UWL iView within the relevant portal role in Content Administration. The iView
    has a property to exclude certain actions from tasks. You can enter a comma delimited list of which
    actions you want to switch off.
    After saving the iView properties go into System Administration->Navigation and clear the portal
    role cache(s), log out and back in again and the UWL should reflect the changes.

  • Deletion of dynamic button in Webdynpro?

    Hi Experts,
    We are upgrading from SRM 5.0 to SRM 7.0.
    The requirement is to make few buttons invisible on SC screen (in NWBC portal), those buttons are generated by SAP dynamically,(when I have seen the respective componenet in WebDynpro, there is no Such button seen). How to delete dynamically created button in webdynpro?I have tried deleting through SPRO but not able to find those buttons.
    Could you pls throw some light on this.
    Thanks,
    KP.

    Hi Pranitha ,
    To hide this buttons
    1)System info
    2)Export
    3)Memory snapshot
    4) import
    if you remove SAP_ALL profile to the user then system info and Memory snap shot button will wont be visibel
    and export button can be hide from component configuration .
    go to tcode 80 in webdynpro /component : FPM_OIF_COMPONENT expand thei webdynpro component go to component configuration folder -->go this configuration : /SAPSRM/XYZ
    click on the start configurator
    on screen will open in browser
    in this screen
    click on other function button
    click on this and create the enhancement , after creating enhancement then click on change button
    in the screen you can find the export button & Import button click onit
    here you can set the visibility as invisible .
    Thanks & Regards
    Pradeep Kumar Dondeti

  • CHM buttons are not localized in a French project (shows English Contents, Index, Search, Print, Hide buttons)

    I opened an old WinHelp project into my new RoboHelp 7. When
    I generate the CHM, even with the Project Settings in RoboHelp set
    to French and running in a French Windows operating system (MS
    Windows XP Pro 2002 SP 2), the CHM output is still in English. The
    buttons display in English (Contents, Index, Search, Print, Hide
    buttons). The title bar of the CHM also says "HTML
    Help" even though the project title in the Project
    Settings is "Aide en ligne...".
    My Windows Regional Settings through the Control Panel -
    Regional Options tab is set French (France). On the Languages tab I
    under Text Services and Input Languages, Details button, I selected
    French (France) French. On the Advanced tab I selected French. Then
    I rebooted.
    On the language bar on my Task pane, I selected FR. The CHM
    still displays in English.
    Please help! I have to produce 4 CHMS in languages other than
    English today.
    Thanks!

    GinaL, would you be able to give us an update? Did the CHM
    files look ok on a PC with a true French OS installed?
    To avoid having to rewrite everything, I've written the
    following info/instructions for my team -- though I'm not yet sure
    they're 100% correct:
    After I reported this issue to Adobe, they worked on the
    problem for several days. They even sent me a new
    HtmSingleSourceHtmlHelp.dll file that was supposed to solve the
    problem. But it didn't work correctly. No matter what contortions
    we put ourselves through, we couldn't get both of these items
    correct in the CHM file at the same time, namely:
    Index compiled in correct alphabetical order accdg to the
    language of the help project.
    Correctly translated help title showing in the caption,
    regardless of the user's Windows regional settings. (For example,
    we wanted "FORMS-Hilfe zu FORMS 5-3" to appear as the caption of
    the German version of FORMS help, even if our regional settings
    were set to English.)
    I think we'd all agree that the index has to be in
    alphabetical order. So from what I've seen, this is what we have to
    do when compiling a non-English version of help using RH7:
    1. Set up the project with the foreign name.
    2. Set the language in the project settings. And in the
    Project Settings dialog, click Advanced and check out the LNG File
    tab to make sure it's using a translated version.
    3. Ensure that the Window Caption setting is correct in each
    window included in the project. (On RoboHelp's Project tab, open
    the Windows folder, double-click each window in turn, and check the
    settings.)
    4. Set the Language setting in the HHP file to Language=[hex
    value for that language]. I found a bunch of them listed on this
    web page. Someone else might be able to find a better source:
    https://svn.origo.ethz.ch/scoop/es_scoop_60/library/i18n/locale/nls/i18n_nls_lcid_tools.e
    5. Change your Windows regional settings to the same language
    as the help project. (Reboot if prompted.)
    6. Recommended, for safety's sake: Delete the CPD file.
    7. Open the project and compile using RH7.
    8. Check the index's sort order -- is it in alphabetical
    order according to the language of the project?
    9. Check the help caption -- make sure it's not "HTML Help".
    Note: Any customized buttons in your CHM should appear
    correctly translated, but other buttons (Contents, Index, Search)
    still appear in English -- at least they do on my PC, even though I
    did step 2 above. We need to check whether those buttons appear
    correctly when the PC is actually running a true foreign version of
    Windows, and not just with temporarily adjusted Windows settings.
    OR -- is anyone else able to get these to appear translated in the
    CHM file?
    Does anyone have anything to add? Other solutions? Easier
    procedures? Better results to report?
    Thank you
    Eileen

  • Everytime I open a website apart from popular ones, firefox shows ads with open/hide buttons which are not served by the website actually. What to do?

    if i could show you a screen shot.... that would have cleared the situation. ads show up in left bottom corner with open/hide button in a frame. and the same ads show up in every html plugin on the webpage especially in facebook social plugins. however on google, mozilla, facebook, twitter there comes no ad like this. Its very annoying. I recently uninstalled firefox for the same reason but nightly is having the same problem. and let me tell you there is no such thing in other browsers like chrome and i.explorer. I like firefox i dont want to change it but i will have to if the problem persisted. :( please help.

    hello, can you try to replicate this behaviour when you launch firefox in safe mode once? if not, maybe an addon is interfering here...
    [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]
    please also run a full scan of your system with the security software that you have in place and different other tools like the [http://www.malwarebytes.org/products/malwarebytes_free free version of malwarebytes] & [http://www.bleepingcomputer.com/download/adwcleaner/ adwcleaner].
    [[Troubleshoot Firefox issues caused by malware]]

  • How to add display button(ICON) on standard report screen?

    Hi,
    I have to add display button after the excute button on the standard selection screen of the report.
    could you please guid me how to do that i was trying with below but it does not reflect.
    TABLES:  sscrfields.
    TYPE-POOLS: slis, icon.
    INITIALIZATION.
    Add display button to selection screen
      functxt-icon_id   = ICON_DISPLAY.
      functxt-quickinfo = text-007.
      sscrfields-functxt_01 = functxt.
    Thanks,
    Rajesh
    Edited by: Rajesh Gupta on Nov 16, 2010 3:28 PM

    Hi
    TABLES: sscrfields.
    TYPE-POOLS: slis, icon.
    PARAMETERS: p_bukrs LIKE t001-bukrs.
    SELECTION-SCREEN FUNCTION KEY 1.
    INITIALIZATION.
    * Add display button to selection screen
      sscrfields-functxt_01 = icon_display.
    In selection-screen you need to active the button by statament SELECTION-SCREEN FUNCTION KEY
    Max

  • How to hide button in fb60 by transaction variant.

    Hi experters,
    I want to hide button some buttons in transaction code: fb60 by transaction variant(SHD0)
    transaction code: fb60, input some date,
    and then  click simulation button,
    then go to the simulation screen,
    I want to hide some button on this screen,
    but I find it is impossible to hide it.
    because  when I click enter button, there is no response ,
    there is no screen popup, so I cann't  hide any field or button with transaction variant.
    Please help me...
    Regards,

    Thanks .
    I want to use transaction variant to  hide that button,
    I tried using transaction variant, I have created transaction variant on initial screen's variant of fb60,
    but I found I can't recored that screen of simulation screen.
    can any one have any idear??
    Thanks.
    Edited by: harry wang on Jan 7, 2009 5:43 AM

  • Why do show/hide buttons show when PDF is opened?

    I've created an interactive PDF with a series of show/hide buttons with rollover actions. When I export and open the PDF, some of the target buttons show up. If I mouseover, they correct themselves and go to their correct hidden state until I mouseover. Is this a bug and is there any way to keep them hidden from the start? Note that the target buttons overlap some, and I'm wondering if that is part of the problem so I'll test that, although not having them overlap isn't a viable solution.
    Thanks!

    Thanks for the response. Hidden until triggered was checked. I rebuilt the buttons and they seem to work fine now. It seems like InDesign is very finicky about the order of operations.

  • Hide buttons when movie loads and then show

    I have a movie that loads another video. When it goes to
    video by hitting button
    I can hide buttons underneath.
    When I unload the movie, I need the buttons to show up again
    and clickable.
    I added the onEnterFrame, but makes no difference.
    Can someone help as to how I can bring the buttons back when
    movie that was loaded is unloaded?
    Thank you in advance.

    > onEnterFrame(_root.VideoBtn.enabled._visible = true);
    Where did you find that syntax? It's incorrect, check the
    docs..
    However, I don't why you would do that, all that will do is
    make sure it's never invisible.
    To make the visible again, you do the same thing you did to
    make them invisible -- you set the _visible property to true,
    wherever you are unloading the movie.

  • Add buttons to an standard status ALV

    Hi experts,
    I want to add new buttons to an standard status of ALV list.
    I created the ALV with the function REUSE_ALV_HIERSEQ_LIST_DISPLAY.
    Can anyone help me???
    Thanks!

    Hi LydiaMM,
    Copy the standard Status and add the required functionality in the code for the new buttons and
    pass the status to the import parameter I_CALLBACK_PF_STATUS_SETfor the FM REUSE_ALV_HIERSEQ_LIST_DISPLAY.
    Copy the status 'STANDARD' of the program SAPLKKBL and you can add the new buttons in the status.
    Hope this might help you.
    Regards,
    Phani.

  • GS_CM. How to hide buttons: 'Attachment' and 'URL'

    Hi,
    Business object 'catalog product' use component GS_CM
    We want to hide buttons: Attachment and URL
    We need to use only button Advanced.
    How I can customize it?
    Denis.

    Dear Denis,
    Enhance Component GS_CM and view DocList.
    Redefine method IF_BSP_WD_TOOLBAR_CALLBACK~GET_BUTTONS and implement the following code:
    super->IF_BSP_WD_TOOLBAR_CALLBACK~GET_BUTTONS( ).
    delete gt_button where id ne 'advanced'.
    Hope this helps.
    Thanks
    Vishal
    Edited by: Vishal Kesar on Aug 9, 2011 2:07 PM

  • Hide button in Firefox

    Hi,
    I just built a project in RH X5 with a skin that has an image
    for the "Hide" button. It works great in IE, but doesn't show up in
    Firefox.
    Is there a fix for this or is something else that we're
    waiting for Firefox to fix with the next version?
    Thanks,
    Jim

    Peter Grainge has a summary of patches for X5 that improve
    cross-browser compatibility.
    The link to his site is in his signature.
    Harvey

  • HIde button on events

    Hi,
    Can some body elaborate how to hide buttons on events.
    Regards
    Sameer

    Hi,
    You can use PPR.
    Step 1. create a VO which contains one transient attribute of type boolean
    Step 2. Base button rendered property using SPEL
    Step 3. Initialize your VO for PPR(inintialization includes insertion of one row and set the attribute as True)
    Step 4. In the event handler where you want to hide button just set it false.
    Sample code:
    //Code to hide button
    public void handlePoApproveChangeEvent()
    // Get the special, single-row application properties and make the first
    // (only) row current.
    OAViewObject vo = (OAViewObject)findViewObject("SampleBrowserPVO1");
    OARow row = (OARow)vo.first();
    // Get the value of the view object attribute with the PO Approval
    // status.
    OAViewObject poVO = (OAViewObject)findViewObject("PurchaseOrderHeadersVO1");
    OARow poRow = (OARow)poVO.getCurrentRow();
    String status = (String)poRow.getAttribute("StatusCode");
    // Set the application property values based on the PO Approval
    // status value.
    if ("APPROVED".equals(status))
    row.setAttribute("HideButton", Boolean.FLASE);
    //Code to initialize VO
    public void initializePPRExamplePage()
    // Create purchase order header
    OAViewObject appPropsVO =
    (OAViewObject)findViewObject("SampleBrowserPVO1");
    if (appPropsVO != null)
    // If the VO already has a row, skip its initialization. Note that
    // calling getFetchedRowCount() won't perform a DB hit on a VO with
    // no SELECT and only transient attributes.
    if (appPropsVO.getFetchedRowCount() == 0)
    // Setting the match fetch size to 0 for an in-memory VO
    // prevents it from trying to query rows.
    // Calling executeQuery() is a small workaround to a known
    // BC4J issue that ensures that modified rows in this
    // transient view object are not lost after commit. See
    // View Objects in Detail for additional information about
    // both of these calls.
    appPropsVO.setMaxFetchSize(0);
    appPropsVO.executeQuery();
    // You must create and insert a row in the VO before you can start
    // setting properties.
    Row row = appProposVO.createRow();
    appPropsVO.insertRow(row);
    // Set the primary key value for this single-row VO.
    row = (OARow)appPropsVO.first();
    row.setAttribute("RowKey", new Number(1));
    row.setAttribute("HideButton",Boolean.TRUE);
    // Initialize the application properties VO (and the UI) based on the
    // default PO approval value set on the underlying object.
    handlePoApproveChangeEvent();
    else
    // throw exception
    } // end initializePPRExamplePage()
    SPEL Parameter:
    ${oa.myVOName.HideButton}
    Hope this help, Please refer JDeveloper guide for Topic Dynamic User Interface.
    Regards,
    Reetesh Sharma

  • Add Button with ALV  Standard Toolbar.

    Hi,
    Can any one tell me how to add user-defined button with ALV
    Standard toolbar? When I add Pf-status for alv output , standard alv toolbar is not displayed.
    Plz do needful.

    On the toolbar event of your alv grid, all the button as shown in the code below.
    FORM handle_toolbar USING i_object TYPE REF TO cl_alv_event_toolbar_set .
    DATA: ls_toolbar TYPE stb_button.
    CLEAR ls_toolbar.
    MOVE 'EXCH' TO ls_toolbar-function. "#EC NOTEXT
    MOVE 2 TO ls_toolbar-butn_type.
    MOVE icon_calculation TO ls_toolbar-icon.
    MOVE 'Payment in Other Currencies'(202) TO ls_toolbar-quickinfo.
    MOVE ' ' TO ls_toolbar-text.
    MOVE ' ' TO ls_toolbar-disabled. "#EC NOTEXT
    APPEND ls_toolbar TO i_object->mt_toolbar.
    ENDFORM
    CLASS lcl_event_handler DEFINITION .
    PUBLIC SECTION .
    METHODS:
    *To add new functional buttons to the ALV toolbar
    handle_toolbar FOR EVENT toolbar OF cl_gui_alv_grid
    IMPORTING e_object e_interactive ,
    ENDCLASS.
    CLASS lcl_event_handler IMPLEMENTATION .
    *Handle Toolbar
    METHOD handle_toolbar.
    PERFORM handle_toolbar USING e_object e_interactive .
    ENDMETHOD .
    ENDCLASS.
    DATA gr_event_handler TYPE REF TO lcl_event_handler .
    *--Creating an instance for the event handler
    CREATE OBJECT gr_event_handler .
    *--Registering handler methods to handle ALV Grid events
    SET HANDLER gr_event_handler->handle_toolbar FOR gr_alvgrid .
    Hope this helps.
    Thanks,
    Balaji

Maybe you are looking for

  • Cash Journal

    Dear Guru,               i m working with ECC 6.0 version. posting through T.C. FBCJ  register is updating but while posting  to accounting i m getting following error Runtime Errors         DBIF_RSQL_INVALID_REQUEST Date and Time          20.06.2007

  • Problem active directory importing users at ix4-300d sw ver 4.1.108.32627

    Installed new ix4-300d onto network, added to SBS 2008 domain and can log into NAS with domain\administrator account . In users & groups can see domain\administrator account along with local admin account. Click on sync with AD, no errors, but never

  • An't see itunes store video previews

    I can't see any video previews in itunes even though I hear the audio (either in the artwork window or the itunes store window). Anyone able to help? Thanks!

  • Retrieving image from database in form 6i

    hello all i'm working on form 6i... i have uploded images into the database of customers in my application using READ_IMAGE_FILE.. IT IS FINE... But when i am trying retrieves records into the form.... i'm getting all the data except image... Image f

  • Change the popup window size in the "optional label with help" template?

    G'Day Apex/javascript gurus, I am using Apex 4.0 where I coded an HTML table for help text in one item. Now, when an user click for help in this item then the HTML table is bigger than the size of the pop up window so the client has to re size it a b