To disable the Application tool bar button in ALV report

Hi Everyone,
Iam using REUSE_ALV_GRID_DISPLAY to display ALV report.
Now my requirement is to disable(I mean grey out) a application tool bar button.
Thanks in advance
Moderator message: please search for available information and try yourself before asking.
locked by: Thomas Zloch on Sep 23, 2010 11:38 AM

We can disable the buttons on the application toolbar as below.
*To Exclude a few buttons from the Application tool bar
data: it_excluding type slis_t_extab.
data: wa_excluding type slis_extab.
wa_excluding-fcode = '&OUP'.
append wa_excluding to it_excluding.
wa_excluding-fcode = '&ILT'.
append wa_excluding to it_excluding.
wa_excluding-fcode = '&ODN'.
append wa_excluding to it_excluding.
and in the FM.....
call function 'REUSE_ALV_GRID_DISPLAY'
      exporting
        i_callback_program      = sy-repid
        i_callback_pf_status_set = 'ZPICK'
        is_layout               = itlayout
        i_callback_user_command =  'LIST1'
        i_grid_title            = <fs>
*       i_callback_top_of_page  = ' '
        it_fieldcat             = itfieldcat[]
        it_excluding            = it_excluding
But,no idea on how to disable the  whole application tool bar itself ?
K.Kiran.

Similar Messages

  • Display of push button in the application tool bar in an ALV report

    Hello everyone,
    Query:
    Is it possible to display a custom push button in the application tool bar while displaying an ALV report(1st one)?
    On pressing this custom push button will I be able to display another ALV report(2nd one) based on the selection made on the current ALV report(1st one)?

    Hiii..
    I have written a sample code for You
    <b>"Call the below FunctionModule For Displaying The List
    " And see the bolded line in the Below FunctionModule
    " STANDARD_02 and USER_COMMAND are the subroutine Names</b>
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
      I_INTERFACE_CHECK              = ' '
      I_BYPASSING_BUFFER             =
      I_BUFFER_ACTIVE                = ' '
       i_callback_program             = sy-repid
       <b>i_callback_pf_status_set       = 'STANDARD_02'</b>
      <b> i_callback_user_command       = 'USER_COMMAND '</b>
       i_structure_name               =  'ZST_SCARR'
       is_layout                      = is_layout
       it_fieldcat                    = gt_fieldcat[]
      IT_EXCLUDING                   =
      IT_SPECIAL_GROUPS              =
      IT_SORT                        =
      IT_FILTER                      =
      is_sel_hide                    = is_sel_hide
      I_DEFAULT                      = 'X'
      I_SAVE                         = ' '
      IS_VARIANT                     =
       it_events                      = e03_lt_events[]
      IT_EVENT_EXIT                  =
      is_print                       = t
      IS_REPREP_ID                   =
      I_SCREEN_START_COLUMN          = 0
      I_SCREEN_START_LINE            = 0
      I_SCREEN_END_COLUMN            = 0
      I_SCREEN_END_LINE              = 0
      IR_SALV_LIST_ADAPTER           =
      IT_EXCEPT_QINFO                =
      I_SUPPRESS_EMPTY_DATA          = ABAP_FALSE
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER        =
      ES_EXIT_CAUSED_BY_USER         =
      TABLES
        t_outtab                       = it_scarr
    EXCEPTIONS
       program_error                  = 1
       OTHERS                         = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
       FORM PF_STATUS_SET
    <b>" Here Set A Button In Application Toolbar Using PF- Status</b>
    FORM standard_02 USING  extab TYPE slis_t_extab.
      SET PF-STATUS 'STANDA02' EXCLUDING extab.
    ENDFORM.                    "STANDARD_02
    *&      Form  USER_COMMAND
          text
         -->R_UCOMM    text
         -->RS_SELFIELDtext
    FORM user_command USING r_ucomm LIKE sy-ucomm
                      rs_selfield TYPE slis_selfield.
      CASE r_ucomm.
    <b> "menubutton with functioncode GOTO's Action</b>
        WHEN  'GOTO'.  
          READ TABLE it_scarr INDEX rs_selfield-tabindex. "cursorposit.
          IF sy-subrc = 0.
            WRITE:/ it_scarr-carrid,
                  /  it_scarr-carrname.
          ENDCASE.
    ENDFORM.                    "USER_COMMAND<b></b>
    Hope it helps..
    Regards,
    Simy

  • How can i disable a button in the application tool bar of a standard trans?

    Hi Experts,
       I want to disable the create button in the application tool bar of the standard transaction cv03n. Is there any method?

    Hi,
    In the include 'LCV110F19', the GUI is being called for the screen.
    This is the actual code being called.
    WHEN c_dms_create.
          SET PF-STATUS 'D100CREATE'.
          SET TITLEBAR  'D100CREATE'.
    You can try to code something like below.
    DATA: itab TYPE TABLE OF sy-ucomm.
    APPEND 'CREATE' TO itab.
    SET PF-STATUS 'D100CREATE' EXCLUDING itab.
    Kindly reward points by clikcing the star on the left of reply,if it helps.

  • How to disable ikons on the Application tool bar in module pool

    Hi Guys,
    I am working in module pool.
    I had three ikons on the Application tool bar .
    i am creating transactions for create,change and display.
    for display transaction i want to disable the ikons on the Application tool bar .
    Can any one help me in this regard.
    Regards
    Ram
    Message was edited by:
            ram kumar

    Hi
    go to layout
    double click on the button
    it will display button properties
    in that below u will find 3 tab strips
    like
    dict program  display
    click on display
    click on check box for invisible
    so that will become invisible
    reward if usefull

  • Push button in the application tool bar in the standard LDB PNP

    Hi ABAPERS,
    I have a  requirement that in the selction screen to use the standard LDB PNP beyond that I need to pass one push button in the selection screen 1000 ( in the application tool bar beside execute button) actually i  passes the push button in the gui status but its not refelcting in the output  and in the initilization event also i passed even then its noty working,
    initialization.
      move 'Cluster ID'(010) to sscrfields-functxt_01.
    Thanks and Regards,
    Deepthi.

    Pavan,
    write code like this
    TABLES: USR02,       "Logon data
            SSCRFIELDS.  "FIELDS ON SELECTION SCREENS
    STANDARD SELECTION SCREEN FOR SCROLLING LEFT AND RIGHT
    SELECTION-SCREEN: FUNCTION KEY 1.
    SELECTION-SCREEN begin of BLOCK b1.
      PARAMETERs p1 type i.
      SELECTION-SCREEN end of BLOCK b1.
    INITIALIZATION.
    SCREEN ICON LEFT AND RIGHT
      SSCRFIELDS-FUNCTXT_01 = 'Button'.
      start-OF-SELECTION.
    Thanks
    Bala Duvvuri

  • Portal: Disable the SAP tool bar and enable a pop up in SAP IAC iview

    Hi Experts,
    My requirement:A user will open the ESS->Bank details iview (which uses the standard transaction PZ03) and would like to edit a record. So, he clicks on the change button and a screen to edit the record comes up. Here, he edits information as required and now decides not to save these changes. Then the user clicks on the back button and a pop up dialog box appears which asks the user if he would like to proceed without saving the changes. Once he clicks on OK, he is taken back to the previous screen. Also, in the iview, the SAP tool bar must be invisible.
    I can achieve the dialog pop up to appear using these ITS parameters:
    ~popups = 1
    ~generateddynpro = 1
    In this case, the SAP menu tool bar is very much visible.
    If I give the ITS service parameters as
    ~webgui = 1
    ~webgui_simple_toolbar = 1
    ~popups = 1
    ~webgui_popups = 1
    Here, I'm able to disable the SAP tool bar but my pop up dialog box does not appear.When I click on back button, I continue to remain on the same screen instead of the pop up dialog box getting opened.
    If I give both ~webgui and ~generated dynpro together, it's not helping either.I cant see the pop up again, but able to disable the tool bar.
    Need some inputs to fix this issue.
    We are on EP 7.0, ECC 6.0 and ESS/MSS 50.4
    Thanks,
    M.Maneesha

    Please keep following parameters in the ITS services and your problem will be resolved.
    Make sure you remove all parameters other than below.
    ~AUTOSCROLL     0
    ~GENERATEDYNPRO     1
    ~LANGUAGE                                                                               
    ~LISTSCROLLING     0
    ~LOGIN                                                                               
    ~PASSWORD                                                                               
    ~POPUPS     1
    ~STYLE     DHTML
    ~TRANSACTION     PZ03
    ~WEBTRANSACTIONTYPE     EWT
    Edited by: Barin Desai on May 11, 2010 6:45 PM

  • User exit/ BADI in f-32 / f-28 for adding application tool bar button

    Hi Experts,
    There is a requirement, for adding application tool bar button in the Transaction codes F-32 / F-28 / Feba_lockbox. So that while clearing documents with reference document, they can upload the data(Reference Documents) from local file and after the data is fetched for clearing, they need to download the data to local file for verification. If the data is verified to be okay, then they can go ahead with simulation and posting. They need this verification to be done in excel sheet, so need to download the data into local file.
    I found a BADI in that screen is BADI_LAYER but I don't think it is relevant.         
    Any help is apreciated!
    Is there any EXIT ? Because I can not find it too.
    Regards,
    Nitin

    where you did the enhancement?
    I have to create the IDOC once Clear docuemnt is created.. It may help me.

  • Add bottons on the application tool bar of the standard selection screen

    Hi All,
    I am having the standard selection screen in module pool programing. I wnat to add the bottons on the application tool bar of the standard selection screen.and hide the existing bottons (like std. execute and i bottons.)instead of these i want to give my won bottons like create and display.
    pls help on this.

    Hi Sridhar,
      Try the Code below. It places two buttons on the selection-screen along with the execute button.
    TABLES sscrfields.
    PARAMETERS: p_carrid TYPE s_carr_id,
                p_cityfr TYPE s_from_cit.
    SELECTION-SCREEN: FUNCTION KEY 1,
                      FUNCTION KEY 2.
    INITIALIZATION.
      sscrfields-functxt_01 = 'LH'.
      sscrfields-functxt_02 = 'UA'.
    AT SELECTION-SCREEN.
      CASE sscrfields-ucomm.
          WHEN'FC01'.
          p_carrid = 'LH'.
          p_cityfr = 'Frankfurt'.
        WHEN 'FC02'.
          p_carrid = 'UA'.
          p_cityfr = 'Chicago'.
      ENDCASE.
    START-OF-SELECTION.
      WRITE / 'START-OF-SELECTION'.
    Just go to the table sscrfields to knoe the fields in it. I think this clears the issue.
    Regards,
    Swapna.

  • How to create print button in the Application tool bar in the Std.SAPscreen

    Hi,
        I want to create a print button in Production order display:header screen in  CO03 transaction.In that after Viewer button(i.e. in application tool bar) ,I have to create this print button. Can anyone suggest me How do i need to proceed further?

    hi,
    Use this code..
    REPORT  Z_TEST999                               .
    DATA itab TYPE TABLE OF sy-ucomm.
    PARAMETERS test(10) TYPE c.
    AT SELECTION-SCREEN OUTPUT.
      APPEND: 'E' TO itab.
      CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
           EXPORTING
                p_status  = sy-pfkey
           TABLES
                p_exclude = itab.
    Regards,
    Sailaja.

  • How do I disable the MP3Tube tool bar when Firefox opens? I have already unchecked it in the views menu, under toolbar. It disappears when I do that, but comes back every time I reopen Firefox.

    When I log on to Firefox, the home page displays a tool bar called "MP3 Tube" powered by Yahoo. I would like to remove that toolbar permanently from my start up page. I have tried to uncheck it in the View menu under Toolbars, but it reappears every time I log off and log back on to Firefox.

    You're welcome

  • Manually adding a Extra button in the application tool bar of the view cluster.

    hello Colleagues ,
    I have created a couple of maintenance view , and with this two maintenance view i have created a view cluster using the transaction SE54.
    Now, there is default Application toolbar gets generated when a view cluster is created. (screenshot attached.)
    Now i have a requirement where i can add another button (syntax Check button in the screenshot 2) in the same view cluster. (screenshot attached.)
    Want to know the feasibility of this requirement.
    Thanks in advance
    Shavneet Singh

    Hello,
    Not sure of your exact reqt
    But got some sample code to create a button on the toolbar which once clicked gives a new popup window with additional parameters
    TABLES:SSCRFIELDS.
    **Create the Additional Selection screen to input filename
    SELECTION-SCREEN: BEGIN OF SCREEN 10.
    PARAMETERS: P_FILE TYPE RLGRAP-FILENAME.
    SELECTION-SCREEN: END OF SCREEN 10.
    **Create Application Toolbar Button on the Standard selection Screen
    SELECTION-SCREEN FUNCTION KEY 1. "Its fcode will be FC01
    PARAMETERS : P_WERKS TYPE MARC-WERKS.
    INITIALIZATION.
      SSCRFIELDS-FUNCTXT_01 = 'Enter File'. "Assign the Text to the Button
    AT SELECTION-SCREEN.
      CASE SSCRFIELDS-UCOMM. "Check the Fcode
        WHEN 'FC01'.
          CALL SELECTION-SCREEN 10 STARTING AT 5 8 ENDING AT 85 20.
      ENDCASE.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
      CALL FUNCTION 'F4_FILENAME' "Local file browser
      EXPORTING
      PROGRAM_NAME = SYST-CPROG
      DYNPRO_NUMBER = SYST-DYNNR
      FIELD_NAME = 'P_FILE'
      IMPORTING
      FILE_NAME = P_FILE.
    START-OF-SELECTION.
    ***Your list processing.

  • Enabling Tool Bar Buttons for LIST UI for FBI ?

    Hi,
    I have created Actions to a Node 'MNR_SEARCH_RESULT',
    when I Configure LIST GUIBB with this node I made 3 tool bar Buttons for these actions, but when Test the Application tool Bar Buttons are disabled .
    (No data present in the list).
    below are the screen shots :
    How to make these Tool Bar Buttons Enable ?
    How to Create One Click Action in the List ?
    Thanks In Adv.
    Thanks,
    Kranthi.

    Hi Kranthi,
    1. Can you please check the additional settings in FPM list - 'Enable Event on All Selections'?
    2. Check the corresponding FPM view. In 'Action' tab, add the actions and check the checkbox 'enable' .
    Thanks,
    Dhivya

  • Custom button  on ALV report for Tcode FL10G ?

    Hi All,
    I want to add custom button in the AVL report for FL10G transaction.  And then need to implement logic for that button (calling BAPI to create shipment for the selected records).
    For VL10G alv program GUI Status - STANDARD001  I think I can add button in this gui by using access key.
    But how to implement logic for this custom button?  Where I can put the code for this button logic?
    Please let me know if any one has any ideas on this issue.
    I appreciate your help and time on this.
    Thanks.
    M

    Hi Murali,
    The standard program it will not allow to copy the GUI Status. Because source and target program should not same.
    It will definitely debug will work. Yo can create the GUI Status through SE41. In SE41 Just give Program name :SAPLV50R_VIEW click the button status. here you should not give any gui status. just blindy say create the then it will popup screen appears in the screen. Here you can mention your Z GUI Status. It is not required to create all the menus manually instead of the there is button which is located in the screen next to blue i button. here you can click and select the standard interface. You can get all the menus as similar to standard. Like that you should create Menu Bar, Application Toolbar and Function Keys  Menus. Then you can add your custom button in the Application tool bar button.
    When you execute the Transaction VL10G and check your cusom menu button will appears. Once you click custom button only exit will trigger. Find the below code for your reference.
    CODE
            loop at ct_postab assigning <fs>
                    where selkz = 'X'.
    *To Fill the BAPI  Header Parameters
                  str_ordhdr-ship_cond = w_sval-value.
    *To Fill the BAPI  HeaderX Parameters
                  str_ordhdrx-updateflag = 'U'.
                  str_ordhdrx-ship_cond = 'X'.
                  call function 'BAPI_SALESORDER_CHANGE'
                    exporting
                      salesdocument    = <fs>-vbelv
                      order_header_in  = str_ordhdr
                      order_header_inx = str_ordhdrx
                    tables
                      return           = str_return.
                endloop.
                read table str_return into w_return index 1.
                if sy-subrc eq 0.
                  if not w_return-type = 'S'.
                    message w_return-message type 'E'.
                    leave to current transaction.
                  endif.
                endif.
    *Do the BAPI Commit
                call function 'BAPI_TRANSACTION_COMMIT'
                  exporting
                    wait = 'X'.
              endif.
            endif.
          endif.
    Let me know if you have anything to discuss on the same.

  • How to create a new push button in application tool bar in GMGRANT thru BDT

    Dear SAP Gurus -
    We have a requirement in 'GMGRANT' transaction. We need to create a button in the application tool bar of 'GMGRANT' transaction. Once the button is activated, if the user clicks on the button then it will go to a new screen (external screen). User can input data in to the external sceeen and upon saving, the data will be stored in to a custom table and when user clicks on 'back ' button user should come back to the GMGRANT transaction.
    Just wanted to know, how to create / activate a new button on application tool bar of GMGRANT transaction and what are the configuration and detail steps to achieve the same through BDT.
    We went through a lot of documents on BDT but do not have a proper solution.
    Could you please help.
    Thanks in advance.
    Regards,
    Atul Mohanty

    hi,
    You can find user-exits (menu exits) to add new menu item.
    But, there is no possibility to add new buttons on application tool bar.
    Regards,
    Sailaja.

  • Regarding list display + button on application tool bar

    Hi guru's
    I have a requirement like i need to select one particular record in the list display and prees on the button which is placed on the application tool bar.Then i should get one more screen where i can enter some details.
    As per my knowledge it is possible only in grid display.
    Kindly let me know if it is possible.
    It would be great help if sample coding is provided.

    Hi Ajay,
                You can do this in alv list display also.
    Copy the standard gui status in ur program using tcode SE51->user interface>copy->target prog name.activate it
    and add a button there.Use FM <b>'REUSE_ALV_EVENTS_GET'</b> to get user-command event.
    sample code :
    form Z8_EVENTCAT  using    p_i_eventcat TYPE SLIS_T_EVENT.
    DATA : L_EVENT TYPE SLIS_ALV_EVENT.
    FOR GETTING ALL 17 EVENTS
    CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
    EXPORTING
       I_LIST_TYPE           = 0
    IMPORTING
       ET_EVENTS             = P_I_EVENTCAT
    EXCEPTIONS
       LIST_TYPE_WRONG       = 1
       OTHERS                = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CLEAR L_EVENT.
    READ TABLE P_I_EVENTCAT WITH KEY NAME = SLIS_EV_PF_STATUS_SET INTO L_EVENT.
    IF SY-SUBRC = 0.
    MOVE 'Z8_PF_STATUS' TO L_EVENT-FORM.
    APPEND L_EVENT TO P_I_EVENTCAT.
    ENDIF.
    CLEAR L_EVENT.
    READ TABLE P_I_EVENTCAT WITH KEY NAME = SLIS_EV_USER_COMMAND INTO L_EVENT.
    IF SY-SUBRC = 0.
    MOVE 'Z8_USER_COMMAND' TO L_EVENT-FORM.
    APPEND L_EVENT TO P_I_EVENTCAT.
    ENDIF.
    form Z_MENU using p_extab type slis_t_extab.
    SET PF-STATUS 'MENU_LIST'.
    endform.                    " Z_MENU
    form z8_user_command using p_ucomm type sy-ucomm
                               p_selfield type slis_selfield.
      case p_ucomm.
      WHEN '&IC1'.
    call screen 100.
    endcase
    endform.
    Reward points if helpful.
    Regards,
    Hemant

Maybe you are looking for