Hid Customzation button in FPM

Hi,Experts,
         Currently, I got a requirement for modifing a standard OIF program, Which is to  hide a customaztion button dynamicly when user click a standard button sach as 'SAVE'.
         I try to use the below code in the method 'Process_event',But it does not work.
CASE io_event->mv_event_id.
  WHEN 'SAVE' .
      DATA: lo_cnr_oif TYPE REF TO if_fpm_cnr_oif,
            lt_buttons TYPE  if_fpm_cnr_oif=>t_button.
      lo_cnr_oif ?= lo_fpm->get_service(
      cl_fpm_service_manager=>gc_key_cnr_oif ).
*get_buttons just for testing
      lo_cnr_oif->get_buttons( EXPORTING iv_variant_id = 'VARIANT_1'
                               IMPORTING et_buttons = lt_buttons ).
      lo_cnr_oif->define_button( iv_variant_id  = 'VARIANT_1'
                              iv_mainstep_id = 'step1'
                                   iv_function    = if_fpm_constants=>gc_button-alternate_function
                                   iv_text        = ' Approve'
                                   iv_enabled     = abap_true
                               iv_on_action   = 'ON_CLEAR'
                                   iv_visibility = '01' "Invisibile
                                   iv_element_id = 'Approve').
*get_buttons justfor testing
  lo_cnr_oif->get_buttons( EXPORTING iv_variant_id = 'VARIANT_1'
                               IMPORTING et_buttons = lt_buttons ).
ENDCASE.
Any help will be appreciated.
Thanks & Best Regards
Alight

Hi,
Problem is resolved.
There is a dropdown in FPM config, there I have selected webdynpro built in and then made button container of initial screen invisible.
But did not work for approve application as the FPM config changes are not getting saved.
I had to create a new application.
The changes would get saved if the support pack SAPKA70207(SAP_ABA) and SAPKB70207(SAP_BASIS) is implemented
Thanks
Veda

Similar Messages

  • Start button in FPM configuration

    Hi all,
    There is a start button in FPM for initial screen.
    In my webdynpro component, i have created 2 applications MAINTAIN and APPROVE.
    Few days back i was able to hide start button for MAINTAIN application,
    but because of the requirement change I had to hide for application APPROVE also.
    I tried to hide in the same way as I have done for MAINTAIN application but button is not getting hidden.
    Is there anything that I am missing like refresh of something, so that FPM configuration change is reflected
    Thanks in advance.
    Veda

    Hi,
    Problem is resolved.
    There is a dropdown in FPM config, there I have selected webdynpro built in and then made button container of initial screen invisible.
    But did not work for approve application as the FPM config changes are not getting saved.
    I had to create a new application.
    The changes would get saved if the support pack SAPKA70207(SAP_ABA) and SAPKB70207(SAP_BASIS) is implemented
    Thanks
    Veda

  • How can I hide a button with javascript in Captivate 8?

    I need to run some javascript in my project and at the same time I want to hide a button, so I can't use advanced actions.

    It is very strange, most users who have focus on JS try to do everything with it, whereas lot of simple actions can easily be done with advanced/shared actions. I will only go to JS when it is not possible with advanced/shared actions.
    You are lucky, I was just restarting to work on an advanced training for next week when your question showed up.

  • How to hide 'SAVE' button in adobe form layout

    Hi  Friends,
    I have a requirement to hide 'SAVE' button in adobe form layout .They dont want to save the form .
    Is there any way to achieve this .I have gone through scn ,but couldnt find the proper solution
    Thanks and Regards,
    Subeesh Kannottil

    Hi Subeesh,
    Are you talking about restricting the User from Saving the Adobe Form Output. 
    Regards,
    Sivanand Ala

  • Capture screen positions on click of a button in FPM toolbar

    Hi Uve,
    Currently in visual business if i right click on any map stack i will get the option for personalization and to set the screen position per user.
    But my requirement is I have to set screen positions for multiple rail yards per user.So on click of a save button in fpm i require tje current screen positions so that i could save it and pass it during initialization of VB for that yard next time.
    But what i notice is only when we right click on a map stack the exact screen position details are fired to backend,But when we right click on spot or links screen positions details like zoom factor, change of perception values etc are not passed.
    Could you suggest a solution to get screen position from VB on an external FPM event.
    Thanks
    Siju

    Hello Siju,
    I am afraid this is a limitation of the current backend of Visual Business. Technically the camera value can be retrieved with every event fired by the control. But in your case there are two issues right now:
    1. There is no event raised by the VB control when you press an FPM button
    2. Even if there would be an event, the camera data needs to be requested with the event registration. This registration is fix for the backend API, and the data comes only with the right click on the map/scene.
    However, there is a chance to get this done! If you check impl of method IF_VBI_CONTROL_ADAPTER~CHECK_DATA_CHANGED of class CL_VBI_CONTROL_ADAPTER you see how to trigger an arbitrary event of the control from the backend. You can derive your own control adapter from our base class and add an own method triggering event "7" instead of "GenDummy". This should lead to a context menu request including the current camera values.
    Good luck,
    Uwe

  • How to Hide advance button in input list of values Popup

    I am using input List Of Values component to select value from search Pop up, in that popup i need only basic search only , i am unable to hide advance button... plase tell me how to hide this advance option

    I haven't tried this, but check
    How to remove basic/advanced button in inputListOfValues search dialog
    This does not have complete solution, but might give you some lead.

  • Using jQuery to hide a button (wrapped in td tag) based on attribute value (name in this case)

    I have simulated what I'm trying to do here:
    http://jsfiddle.net/dayjuuk5/
    Let me know if you can't see it for any reason.
    My question- I'm not sure I understand why this method of hiding this td tag doesn't work. I'm looking for a way to hide this button on page load (not click driven).
    Thank you for your time.
    Samir

    Hi Samir,
    Thanks for your sharing.
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • 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

  • JavaScript in the PDF can hide toolbar buttons

    Hi Leonard,
    You mentioned in http://forums.adobe.com/message/2161074#2161074 that "JavaScript in the PDF can hide toolbar buttons."
    According to the Javascript docs for Acrobat 7 the App.HideToolbarButton function only runs at AppInit.  Which means that I would have to have the javascript in a file.  How can I do that from within the document?  Is there another way to to do set this from our web application?
    Rob

    Perhaps that's simply a feature that isn't supported by presenting a Captivate intended for the web from inside a PDF?
    Just guessing... Rick

  • How to hide default buttons on WD selection screen

    Hi Experts,
    Is there a way to hide default buttons ( Cancel, Check, Reset, Copy ) on web dynpro selection screen ??
    Please let me know how can I achieve this..
    Thanks in advance !
    Anand

    By selection screen do you mean the select-options reusable component?  If so, then there is an API of the component that you can call to disable these fields. Use the SET_GLOBAL_OPTIONS method of the select-options API to acomplish this:
    data: l_ref_cmp_usage type ref to if_wd_component_usage.
      l_ref_cmp_usage =   wd_this->wd_cpuse_select_options( ).
      if l_ref_cmp_usage->has_active_component( ) is initial.
        l_ref_cmp_usage->create_component( ).
      endif.
      wd_this->lv_wd_select_options =
           wd_this->wd_cpifc_select_options( ).
    * init the select screen
      wd_this->lv_sel_handler =
           wd_this->lv_wd_select_options->init_selection_screen( ).
      wd_this->lv_sel_handler->set_global_options(
        EXPORTING
    *      i_display_btn_cancel  = ABAP_TRUE    " Displays "Cancel" Button
    *      i_display_btn_check   = ABAP_TRUE    " Displays "Check" Button
    *      i_display_btn_reset   = ABAP_TRUE    " Displays "Reset" Button
          i_display_btn_execute = abap_false    " Displays "Apply" Button

  • Hide Push Button

    I have a scenario where the ITS Template OK CODE is working in ECC 6.0 so we have had decided to Hide Push Button.Plz can any one give the solution for this

    Check for the authorization using  AUTHORITY CHECK and accordingly fill the itab for excluding the buttons.
    SET PF-STATUS 'MENU' EXCLUDING ITAB.
    ITAB  will have the lis to the function codes that you don't want the user to acess.
    Regards,
    Ravi
    Note - Please mark all the helpful answers

  • How can hide the buttons based on condition

    Dear all
    I have to hide the button based on condition
    When I open the third page directly I want to hide that button
    When I open the third page via first and second page I need to visible that button
    I pass spell parameter from first to second and second to third
    In third page I get the value using pagecontext
    I write the code in third page co
    If I go directly third page it is null
    If I go to third page via first the value is Y
    If(“Y”.equals(pmode))
    OASubmitButtonBean btn =( OASubmitButtonBean )webBean.findChildRecursive(“<id>”);
    If(!btn=null)
    btn.setrendered(true);
    else
    btn.setrendered(false);
    but the button is not hiding
    Regards
    Sreekanth

    Hi Srikanth,
    I have modified ur method:
    OASubmitButtonBean btn =( OASubmitButtonBean )webBean.findChildRecursive(“<id>”);
    If(btn !=null)
         If(“Y”.equals(pmode))
         btn.setrendered(true);
         else
              btn.setrendered(false);
    Thanks,
    'Kumar
    Edited by: Kumar Kovela on Aug 3, 2009 5:53 AM

  • Hide Variant button

    Hi experts!!
    We have a report ZREPORT for which we have created 2 t-codes ZCODE1 and ZCODE2. Now, ZCODE1 should start with variant TEST and should not be changed by any means. And hence we are planning to hide variant button only for ZCODE1 t-code. But for ZCODE2 t-code variants can be changed.
    Can somebody suggest how this can be handled?
    Thanks a lot!!

    Try something similar to
    AT SELECTION-SCREEN OUTPUT.
      IF sy-tcode = 'ZCODE1'.
        DATA: status TYPE sy-pfkey,
              prog   TYPE sy-repid,
              excl_tab TYPE rsexfcode OCCURS 1 WITH HEADER LINE.
        " identify current status
        GET PF-STATUS status PROGRAM prog EXCLUDING excl_tab.
        " disable some function codes
        excl_tab-fcode = 'GET'. " Get Variant...
        APPEND excl_tab.
        excl_tab-fcode = 'VSHO'. " Variants, Display...
        APPEND excl_tab.
        excl_tab-fcode = 'VDEL'. " Variants, Delete...
        APPEND excl_tab.
        excl_tab-fcode = 'SPOS'. " Save as Variant...
        APPEND excl_tab.
        SORT excl_tab.
        DELETE ADJACENT DUPLICATES FROM excl_tab.
        " update status
        CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
          EXPORTING
            p_status  = status
            p_program = prog
          TABLES
            p_exclude = excl_tab.
      ENDIF.
    Regards,
    Raymond

  • How to hide sort buttons in BEx Web?

    Hi,
    I've got an input-ready query with hierarchy on lead column and key figures on data columns. I'd like to hide sort buttons in column headers to decrease the space required and make the screen simpler. Any possibilities to get rid of these, in this case useless, arrows?
    Thanks!
    Aki

    Hi,
    Create a new GUI Status for your program.. put whatever button you require for it..
    In the AT SELECTION-SCREEN OUTPUT event..
    SET pf-status xxx.
    Regards,
    Anand

  • How to hide refresh button in crviewer?

    Hi,
      I want to hide refresh button when view the crystal report in webi, but don't know how to do that
      Pls give me some advice,thanks~

    Hi Julian,
      I tried, but the fresh button is still there. Just when click this button,it says you have no right to refresh the report.
      i guess if we want to hide the refresh button,we may edit the viewer.js in Crystal reports web application folder,but not sure and don't know how to do that, pls help me~

Maybe you are looking for