Exclude Application Toolbar button

Hi,
My requirement is to call SM30 skiping the first screen in either display/maintain mode according to the logged in user. I make this check in a program and call VIEW_MAINTEINANCE_CALL in 'U'/'S' mode. but i see even when the screen of SM30 is opened in 'S' /Display mode , we have the Change button which will allow the user to make changes. So i require to exclude this button from the application toolbar. I think ihave to write something like
    SET PF-STATUS 'ZSLG' excluding 'CHANGE'.
but i don't know where do i write this ? Can anyone please help ?
Thanks,
Asha

If you are calling the VIEW_MAINTENANCE_CALL function module, you can then fill in the tables parameter EXCL_CUA_FUNCT with the function code AEND of that button. That will take care of it. See below.
    it_vimexclfun-function = 'AEND'. <---
    APPEND it_vimexclfun.
  CALL FUNCTION 'VIEW_MAINTENANCE_CALL'
    EXPORTING
      action                               = p_v_action
*   CORR_NUMBER                          = '          '
*   GENERATE_MAINT_TOOL_IF_MISSING       = ' '
*   SHOW_SELECTION_POPUP                 = ' '
      view_name                            = p_table
*   NO_WARNING_FOR_CLIENTINDEP           = ' '
*   RFC_DESTINATION_FOR_UPGRADE          = ' '
*   CLIENT_FOR_UPGRADE                   = ' '
*   VARIANT_FOR_SELECTION                = ' '
*   COMPLEX_SELCONDS_USED                = ' '
*   CHECK_DDIC_MAINFLAG                  = ' '
*   SUPPRESS_WA_POPUP                    = ' '
   TABLES
*   DBA_SELLIST                          =
     excl_cua_funct                       = it_vimexclfun <---
   EXCEPTIONS
     client_reference                     = 1
     foreign_lock                         = 2
     invalid_action                       = 3
     no_clientindependent_auth            = 4
     no_database_function                 = 5
     no_editor_function                   = 6
     no_show_auth                         = 7
     no_tvdir_entry                       = 8
     no_upd_auth                          = 9
     only_show_allowed                    = 10
     system_failure                       = 11
     unknown_field_in_dba_sellist         = 12
     view_not_found                       = 13
     maintenance_prohibited               = 14
     OTHERS                               = 15

Similar Messages

  • How to disable statdard application toolbar button in O4TFN using BADI

    Hi,
    I want to disable standard application toolbar button in O4TFN using BADI, i want to disable it for specific users should be deactivated and for others it should be activated.
    Thanks in advance..

    Hi Ed,
    But in control panel -> user accounts -> Change user account control settings
     I can set the settings to always notify
    and default notify when programs try to make changes to computer.
    But I can't set it to never prompt because only administrator as power to do that and if I set never prompt in  administrator account the settings in standard user remains in
    always notify.
    so please let me know, if there is any other way to over come the problem.
    Main problem is application from unknown source always prompt for admin password.
    I need to disable it from prompting for admin password to run applications in standard accounts.

  • How to call report by click application toolbar button?

    I need to know the way to call a report by click a button in application toolbar?
    BR,
    Ali
    Moderator message: next time, please (re)search yourself instead of asking basic questions.
    Edited by: Thomas Zloch on Aug 31, 2010 11:44 AM

    Hi Ali,
    Selection-screen function key is used to add push buttons on application tool bar.
    Syntax:
    selection-screen functuin key<num>
    Where num is ranging from 1 to 5.
    whenever application toolbat components are added using above statement,tables are defined in the structure "SSCRFIELDS" as "Functxt_01","Functxt_02","Functxt_03","Functxt_04","Functxt_05" for the related function key numbers.
    eg:
    Tables SSCRFIELDS.
    Selection-Screen pushbutton/10(10 lb1 user-command pb1.
    Selectiong-Screen Function key1.
    Selectiong-Screen Function key2.
    Selectiong-Screen Function key3.
    Selectiong-Screen Function key4.
    Selectiong-Screen Function key5.
    Initialization.
    sscrfields-Functxt_01 = 'first".
    sscrfields-Functxt_01 = 'fifth".
    At Selection-Screen.
    case sy-ucomm.
    When 'first'.
    Sumbit zreport.
    endcase.
    Hope it solves your problem.
    Regards,
    Amarnath S

  • Disable selection screen application toolbar button

    Hi All,
    Could you please let me know how to hide or disable application toolbar pushbuttons in the selection screen default screen 1000??
    Thanks & regards,
    Santhosh

    Hi,
    Try this way.
    "Create table for function codes
    DATA: it_exclude TYPE TABLE OF sy-ucomm.
    PARAMETERS: r1 RADIOBUTTON GROUP gr1 USER-COMMAND uco1,
                r2 RADIOBUTTON GROUP gr1.
    INITIALIZATION.
      "Create two buttons with function codes FCODE1 and FCODE2.
      SET PF-STATUS 'MY_GUI'.
    AT SELECTION-SCREEN OUTPUT.
      IF r1 = 'X'.
        APPEND 'FCODE1' TO it_exclude.
        CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
          EXPORTING
            p_status  = 'MY_GUI'
          TABLES
            p_exclude = it_exclude.
      ELSE.
        REFRESH it_exclude.
      ENDIF.
    Thanks
    Venkat.O

  • Module-Pool application toolbar

    Respected SAP guru,
      I like to know how Application Toolbar button should be disabled or enabled in Module-Pool Programming plz, explain with example.
    Sincerly,
    sandeep

    As mentioned in the Thread, use the Syntax
    SET Pf-STATUS 'STATUS' excluding itab
    Example:
    data: BEGIN OF MTAB_UCOMM_EXCLUDE OCCURS 0,
            VALUE(4) TYPE C,
          END OF MTAB_UCOMM.
    AT USER-COMMAND.
      PERFORM SET_PF_STATUS. ...
    FORM SET_PF_STATUS *
    Set up the menus/buttons for the report *
    FORM SET_PF_STATUS.
      CLEAR MTAB_UCOMM_EXCLUDE.
      REFRESH MTAB_UCOMM_EXCLUDE.
      CASE MI_CURRENT_PAGE.
        WHEN 1.
    *-- Do not want any pushbuttons that point to items to the right
    *-- since the list is at its rightmost position
        MTAB_UCOMM_EXCLUDE-UCOMM = 'FRST'.
        APPEND MTAB_UCOMM_EXCLUDE.
        MTAB_UCOMM_EXCLUDE-UCOMM = 'PREV'.
        APPEND MTAB_UCOMM_EXCLUDE.
      WHEN MI_TOTAL_PAGES.
    *-- Do not want any pushbuttons that point to items to the left
    *-- since the list is at its leftmost position
        MTAB_UCOMM_EXCLUDE-UCOMM = 'LAST'.
        APPEND MTAB_UCOMM_EXCLUDE.
        MTAB_UCOMM_EXCLUDE-UCOMM = 'NEXT'.
        APPEND MTAB_UCOMM_EXCLUDE.
      WHEN OTHERS.
    *-- Want all pushbuttons to appear on any other page
      ENDCASE.
      SET PF-STATUS 'MAIN' EXCLUDING MTAB_UCOMM_EXCLUDE.
    ENDFORM. " SET_PF_STATUS
    Hope this helps
    Vinodh Balakrishnan

  • How to make the buttons INVISIBLE in the Application toolbar

    Hi All,
    I have a requirement to create a button in the Application toolbar of the Module Pool Screen. The field should be made Invisible by default. and it should be displayed based on one condition.
    Could you please let me know how to make that particular button INVISIBLE. I think we can make it invisible by using EXCLUDING statement. But, How to make the button VISIBLE again when the check is satisfied.
    I found from the portal that the FM 'VIEW_SET_PF_STATUS' can be used to make a button INVISIBLE. Could anyone help me out how to pass the parameters to this Function module?
    or is there any Function Module available to make the button VISIBLE and INVISIBLE? Please help me on this issues.
    Is there any possibility to make the button VISIBLE or INVISIBLE as we do for the screen fields using LOOP AT SCREEN..?
    Thank you in advance.
    Regards.
    Paddu.

    Hi,
    Try to use below in the PBO module status_0100 OUTPUT.
    DATA t_fcode TYPE TABLE OF sy-ucomm.
    refresh t_fcode[].
    APPEND 'Function code name of the button' TO t_fcode. 
    Check the condition here for which you want to make field visible.
        DELETE FCODE of the button from T_FCODE table
      ENDIF.
      SET PF-STATUS 'STATUS_0100' EXCLUDING t_fcode.

  • Creating a push button in the application toolbar-----vvvv urgent...

    Hi,
    I have already created in the program.
    The addl. requirement is to create a pushbutton after displaying the output .
    Can anybody tell the procedure on how to create a pushbutton in the application toolbar.
    Plz send the relevant code also to download the output in to the excel sheet.
    Regards,
    Sree
    Edited by: sree on Feb 18, 2008 10:09 AM
    Edited by: sree on Feb 18, 2008 10:13 AM

    Sree,
      If you are using ALV report:
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
             EXPORTING
                  i_callback_program       = ws_repid
                  i_callback_pf_status_set = 'GUI_STAT1'
                  i_callback_user_command  = 'STAT'
                  is_layout                = gs_layout
                  it_fieldcat              = i_fieldcat[]
                  it_sort                  = wa_sort1
             TABLES
                  t_outtab                 = i_zaw_pol_plan.
    *--Setting Status of output screen
    FORM gui_stat1 USING rt_extab TYPE slis_t_extab.
    SET PF-STATUS 'STANDARD1' EXCLUDING rt_extab.
      SET TITLEBAR text-005.
    ENDFORM.
    Double click on status 'STANDARD1'.
    Expand the Application toolbar-->press ctrl+f1 for change mode -
    >add your  buutton name --> double click on name add text name button icon  --> save it.
    In classiccal report also Add set pf status
    same like above

  • How to make buttons in application toolbar enable and disable

    Hi ,
           I have to shaow the buttons in application toolbar enable or disable dynamically , pls help

    Check syntax of SET PF-STATUS status EXCLUDING fcode  in online help...
    Regards,
    Raymond

  • Grey-out button dynamically in the application toolbar

    Hi,
    How can I grey-out button dynamically in the application toolbar?
    It's not an ALV grid, where it's easy.
    SET PF-STATUS '100' EXCLUDING 'SOMETHING'. hides completely the button.
    Thanks,
    Peter

    Hi,
    Sorry forgot to add something to my previous reply...
    The complete steps will be as follows :
    1. Create Two PF status , One with active Button and Function code and Second with Inactive Function code and Greyed button (This can be acheive by using Push Button assignment as specified in the thread)
    2. Dynamically change the PF status to Second one when you want to deactivate the specified Function from the application tool bar.
    regards,
    Sumeet Mishra
    Reward point if this helps : )

  • Making buttons in application toolbar dynamic....

    Hello,
    I have a application tool bar with 8 icon buttons defined. Now I have a custom configuration table where I check what buttons in application toolbar should be seen so that user can select which button he wants to see and which not anytime he wishes.
    My question is how can  I make buttons in application toolbar dynamic ?
    Please guide.
    Regards,
    Rajesh.

    This is sample logic, but you can adapt it to you needs
    DATA: excl_tab   TYPE sy-ucomm OCCURS 0 WITH HEADER LINE.
      AUTHORITY-CHECK OBJECT 'ZREO'  ID 'ACTVT' FIELD c_print.
      IF sy-subrc NE 0.
        APPEND 'PRIN' TO excl_tab.
      ENDIF.
      IF ok_0010 = 'DISP' OR ok_0010 = 'DELE'.
        APPEND 'SAVE' TO excl_tab.
      ENDIF.
      IF ok_0010 <> 'DELE'.
        APPEND 'DELE' TO excl_tab.
      ENDIF.
      SET PF-STATUS 'STAT_100' EXCLUDING excl_tab.

  • How to Deactivate the Button in Application Toolbar

    Dear ABAPers,
                 I would like to deactivate the Release button in CO01 Transaction.How to do this.Please Help me to solve this problem.
    Thanks & Regards,
    Ashok.

    Hi,
    You can do it 2 ways,
    One is
    Code a Function code for the button in the Application toolbar that you want to disable.
    For example, I am trying to disable the SAVE button on the Application toolbar. The Function Code that I have coded is 'SAVE'.
    module STATUS_0100 output.
         APPEND 'SAVE' TO T_PFSTATUS.
      SET PF-STATUS 'STATUS' EXCLUDING T_PFSTATUS.
    endmodule.                 " STATUS_0100  OUTPUT
    The second way is to create a transaction variant using SHD0
    Give the Transaction code(ZTRAN) for which you want to create a variant -> name of some variant (ZVAR) -> create -> takes you to your transaction -> enter -> Menu Functions -> Double click on the button that you want to deactivate -> it turns yellow -> Click on Exit and Save -> Save and go back -> You can see a screen variant created (ZVAR_0100)
    Now Goto -> Create variant transaction -> Give your transaction variant name (ZVAR) -> Select Transaction with variant -> Takes you to SE93 transaction -> The transaction variant name appears -> save
    Now your new transaction is ZVAR -> Execute it and you will find the button deactivated
    Check this for verifications
    [http://help.sap.com/saphelp_nw70/helpdata/EN/43/132f9803d76f40e10000000a422035/content.htm]

  • Application specific button on FPM toolbar to call action triggered in view

    Hello,
    In the content area of my FPM is an ALV with some buttons, e.g. clicking one of the button opens up certain ALV column for editing (for simplicity, I omit the details besides simply enable the columns).
    With FPM, I want the button to be placed in the toolbar as a application specific button. How do I achieve the same functionality e.g. from PROCESS_EVENT method calling an action (to open up certain ALV column for editing) via the application specific button placed on the toolbar communicating with the action/method found in the view controller ? Thank you.
    Regards
    Kir Chern

    Hi Arvind,
    I tried as follows :
    - Create an event in the component controller, say 'MA'
    - Within PROCESS_EVENT, raise the event as follows :
      data : lo_fpm type ref to if_fpm,
             lo_event type ref to cl_fpm_event.
      create object lo_event
         exporting
            iv_event_id = 'MA'.
       lo_fpm = cl_fpm_factory=>get_instance( ).
       lo_fpm->raise_event( io_event = lo_event ).
    - In the view controller, create an event handler which subscribe to the event, MA of the component controller.
    However, the code in the event handler is never executed despite the event being raised. Not sure how FPM event flow works here.
    Can anyone advise ? Thank you.
    Regards
    Kir Chern

  • 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 add a custom button on Application Toolbar for ME21N, ME22N & ME23N

    Hi Experts,
    I am new to this forum. I hope someone will help me.
    My Requirement is as :
    I want to add a new custom button on Application Toolbar for ME21N, ME22N & ME23N.
    There are already standard buttons in this toolbar which is Document Overview On, Hold, Personal Settings etc.
    So after the 'personal settings' button i want add a new button and want to write a code which will open one custom screen.
    I am not able to find any exit for this....
    Please help...
    Thanks....

    Hey Buddies
    Try below BADI : ME_PROCESS_PO_CUST
    and check with required methods.
    1)PROCESS_ITEM
    2)CHECK
    3)POST
    Regards,
    Pranav

  • Adding a button in Application toolbar of Transaction IW32

    Hi ,
    I need to add a button in the Application Toolbar of standard transaction IW32,I tried copying the pf-status and adding it in the user exit exit_saplocih_006 also,but its not working.
    Please Kindly help.
    Regards,
    Ismail.

    I think you must create a copy of IW32 ( I am not wrong in SAP lingo they say repair) for example ZIW32. And add a button relevant gui status. (I have been looking Gui status of IW32 it is have more status. you must find true status)
    If you want change original source don't forget this a patch can change your code.

Maybe you are looking for

  • Validation for selection screen

    hi all,    can anyone help me on the particular issue for adding f4 functionality based on selection criteris.i am using the code below but i am not able to get the selection.   SELECTION-SCREEN: BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.      PARA

  • XFA form from API java

    Hi, I'm developing a small project in java, it's a desktop project. This application has to populate a PDF document. The PDF document has been developed using LiveCycle with a dynamic XFA form. 1. Could I use the LiveCycle API from my application wit

  • Fixed length XSD - values right bounded

    Hi I have designed a BPEL process to write a fixed length file in to a folder. I have associated an XSD to the output file adapter. my output contents are written in fixed length but all the fields are right bounded, For example let us take the field

  • Transparent border appears when I use Image Size to shrink an image (bug)

    In CS2 (9.0.2) and CS3 (10.0.1), whenever I shrink an image using Image Size, my layers get a slightly transparent edge. As a game developer, I make tiling textures a lot, and this generally ruins their tiling-ness. Try this: - create a 32x32 image,

  • Account Missing from MY BT

    Logged in to MYBT today and it is asking me to add my account. To do this I need the account number. My account has been linked to my BT profile for sometime so not sure why it has now disappeared. As all my bills are stored online I cannot access th