HOW to Disable a button in ALV on application bar

Hi,
    I have a button in ALV program and i want to disable that button which is on application bar is there any way plz tel me
Regards,
Saleha

hi ,
Copy the STANDARD status of the function group SALV into the application program
i.e  in ur prg....
see below ex....
data:
  t_spfli like standard table of spfli.
DATA:
  w_program LIKE sy-repid.
SELECT *
  INTO CORRESPONDING FIELDS OF TABLE t_spfli
  FROM spfli.
MOVE sy-repid TO w_program.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
   i_callback_program             = w_program
   i_callback_pf_status_set       = 'STATUS'
   i_structure_name               = 'SPFLI'
TABLES
    t_outtab                       = t_spfli
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  status
      text
     -->P_T_EXTAB  text
FORM status USING p_t_extab TYPE slis_t_extab.
  SET PF-STATUS 'DEMO' EXCLUDING '&ODN'.
ENDFORM.                    "status
<b></b><b></b><i></i>
regards ,
Naresh.

Similar Messages

  • How to disable SAVE button(in menu and tool bar)

    Hi all
    i have to disable the save button in menu and tool bar...
    Thanks
    raj

    Hi,
    I have an issue to disable special menu in the menu list for production supervisor responsiblity.
    I am using release 12 application. I want to achieve this using custom.pll
    I have used the following code in the custom.pll
         if (event_name='WHEN-NEW-BLOCK-INSTANCE') THEN
              if (form_name='GMEBDTED') then
              app_menu2.set_prop('Transact Material',ENABLED,PROPERTY_OFF);
         end if;
         end if;
    But when i complied this code and reopen the form still the Transact Material in the menu list enabled.
    please give ur advice
    Regards
    Prabu

  • How to disable a button on ALV grid that was enabled per user action?

    In an editable ALV grid, per entry in one of the fields , a button is eanbled in a field next to it.
    This is written in the event onF4. (not all the lines are shown here).
                ls_f4-fieldname = 'TEXT1''.
                ls_f4-row_id    = es_row_no-row_id.
                ls_f4-value     = icon_create_text.
                ls_f4-error     = space.
                ls_f4-tabix     = space.
                IF ls_return-fieldval EQ 'AB'.
                  ls_f4-style     = cl_gui_alv_grid=>mc_style_button.
                ELSE.
    *Now when Field1 = 'CD'.
    *the button in field2 should disappear.   
                 ls_f4-value     = space.
                  ls_f4-style     = space.
                ENDIF.
                ls_f4-style2    = space.
                ls_f4-style3    = space.
                ls_f4-style4    = space.
                APPEND ls_f4 TO <t_f4>.
    This is not happening.
    Please advise.
    Thanks,
    Ven

    example
           wa_celltab-fieldname = 'VBELN'.
          wa_celltab-style = cl_gui_alv_grid=>mc_style_disabled.
          INSERT wa_celltab INTO TABLE itab-celltab.

  • Disable delete button in ALV grid

    Hi Experts,
    I have a functionality to disable some buttons in alv grid such as delete row,cut,print etc.
    I know how to exclude them by using it_toolbar_excluding , but I need to disable them.
    Can you please let me know how to handle this.
    I am displaying the ALV grid by calling the method set_table_for_first_display.
    Thanks in Advance
    Prasanth

    Hi,
    By using below code you can disable any button in ALV display
    data : tool_wa_exclude  type ui_func.
      tool_wa_exclude  = cl_gui_alv_grid=>mc_fc_loc_delete_row.
    append tool_wa_exclude  to tool_it_exclude .
      call method grid2->set_table_for_first_display
        exporting
          it_toolbar_excluding          = tool_it_exclude
        changing
          it_outtab                            = it_ekpo
          it_fieldcatalog                    = it_fcat
        exceptions
          invalid_parameter_combination = 1
          program_error                           = 2
          too_many_lines                         = 3
          others                                        = 4.
    U need to pass tool_it_exclude internal table to  method for displaying

  • How to disable hold button in purchase order creation.

    hi
    how to disable hold button in purchase order creation.

    Select single * from VBAK where clause
    ---It fetches single record from the database, based on the condition you specified in the where clause.
    Where as select * from VBAK up to 1 row
    ---Fetches first record if the condition specified in the where clause is satisfied, otherwise it doesn't fetch any record

  • How to disable save button on selection screen (1000) run from other report

    Hi Experts,
    Can any one let me know how to disable save button on selection screen (1000) run from other report.
    Say I am running from report R1 which submits report R2, but the save button should be disabled on
    report R2(selection screen 100).
    Thanks in advance.
    Regards
    RP.

    Hi RPReddy16 ,
    Try this:
    DATA :BEGIN OF t_extab occurs 0,
                     fcode like rsmpe-func,
                 END OF t_extab.
    REFRESH T_EXTAB.
    MOVE 'SAVE' TO T_EXTAB-FCODE.
    APPEND T_EXTAB.
    CLEAR T_EXTAB.
    SET PF-STATUS 'STATUS' EXCLUDING T_EXTAB.
    Regards,
    José

  • How to disable Setting button in Tools - Options - Advanced - Network from windows registry?

    Dear support,
    Now, my office use Firefox as default browser to access WebServer. And there are some policy that users must use ProxyServer. I do not want user change proxy setting in Firefox. How to disable Setting button in Tools - Options - Advanced - Network from windows registry?
    Thank you.
    Treky

    You can not use the Windows registry to disable items in Firefox. This link shows how to lock down Firefox proxy settings, change the values to suit your needs:
    http://www.stbernard.com/ip5kb/iPrism/WhatsNew/50SupportFiles/SupportFiles/IP0460.htm
    One minor variation, in step 4 instead of adding that line to all-js, you can create a file called ''local-settings.js'' containing the line shown and save the file in the same folder as all.js

  • How to disable Setting button in Tools - Options - Advanced - Network..i've read an article that solved this problem..but thats problem contains web adress that couldn't be opened..any other solution??? thanks before best regard

    How to disable Setting button in Tools - Options - Advanced - Network..i've read an article that solved this problem..but thats problem contains web adress that couldn't be opened..any other solution???
    thanks before
    best regard
    -ariansyah-

    You can disable or remove that button, but that won't prevent users from making the changes on the about:config page directly.<br />
    You can lock the related network.proxy prefs if you do not want users to change the connection settings.
    See:
    *http://kb.mozillazine.org/Locking_preferences
    * http://kb.mozillazine.org/network.proxy.type
    * http://kb.mozillazine.org/network.proxy.%28protocol%29
    * http://kb.mozillazine.org/network.proxy.%28protocol%29_port

  • How to disable the button in application toolbar in report pgm

    Can anyone help with How to disable the button in application toolbar in report pgm

    Hi,
    You can use it_excluding to disable button on the tool bar.You have to find the function code for the required button and append that function code to the it_excluding .The optional IMPORTING parameter IT_EXCLUDING is an internal table. It is only needed if the caller uses the list tool standard interface but wants to deactivate interface functions which he or she does not need.You can have your defined pf-status using I_CALLBACK_PF_STATUS_SET.
    SAMPLE PROGRAM
    tables spfli.
    type-pools: slis.
    DATA W_FCODE TYPE SLIS_EXTAB-FCODE.
    data: t_spfli TYPE SPFLI OCCURS 0 WITH HEADER LINE.
    select * from spfli into table t_spfli.
    data : t_excluding TYPE SLIS_T_EXTAB .
    W_fcode = '&OUP'.
    append w_fcode to t_excluding.
    W_fcode = '&ODN'.
    append w_fcode to t_excluding.
    call function 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    I_STRUCTURE_NAME = 'SPFLI'
    IS_LAYOUT =
    IT_FIELDCAT =
    IT_EXCLUDING = T_EXCLUDING
    tables
    t_outtab = T_SPFLI
    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.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/99/49b844d61911d2b469006094192fe3/frameset.htm
    Regards,
    Priyanka.

  • How To Disable Delete Button on AR Customer Search

    hi Guru,
    How to Disable the Delete Button of AR Customer Search Form.

    Hi;
    Duplicate post, please make post once
    How To Disable update Button on AR Customer
    Regard
    Helios

  • How to disable a button

    Hy Experts,
    I am a Basis guy and I want to know how to disable a button from any screen.
    Basically I have to Disable a button "Save as Completed" from the screen of t.code MIR7.
    Is there any way to hide it. If it is then please let me know, I will be thankful to you.

    Dear Aplesh,
    Check this:
    It will give you the description along with screen-shots.
    http://husnie.wordpress.com/
    Regards,
    Rakesh

  • How to disable X button on internet explorer(IE)

    hi ,
    can u please tell me how to disable close button of IE ,if possible send java script code
    thanq

    So you want to annoy your users, eh? You've already annoyed us here, since this is a Java forum, not an ECMAScipt forum. What do you want to do for an encore?

  • How to disable maximize button of the java.awt.Window ????

    How to disable maximize button of the java.awt.Window !!!!
    Help needed

    How to spam the forum with the same fuqin question. Please get lost.

  • How to disable minimize button(icon) of jframe

    how to disable minimize button(icon) of jframe

    HELP!
    I need to do a similar thing. Along with a couple other things.
    I was able to control some windows thru a unix window manager like I would for Motif (the use the window name of AWTapp or AWTdialog are recognized when doing xwininfo) That is all I can seem to get. Nothing changes this.
    Does anyone know how?
    Anyway. mwmDecorations and mwmFunctions settings appear to allow setting of some of the windows. But I need control 100%of the time.
    I need to disable the CLOSE button in all java windows or find a way that the window manager event can get back to the java application. Currently it is not recognized.
    In some windows I need other items disabled such as SIZE & MAXIMIZE.

  • How to disable Print button on WebDynpro ABAP ALV

    In WebDynpro ABAP, a standard menu appears around the ALV,  that has a PRINT button and an EXPORT button.
    Is there anyway to disable those buttons????
    Thanks
    John

    Hi John,
    Check the interface if_salv_wd_std_functions. It contains methods which are used to hide the standard ALV toolbar buttons.
    Also refer : Removing "print version" button in alv
    How to hide Print and Filter option from dynamic ALV

Maybe you are looking for

  • This movie requires QuickTieme, that is not compatible with this version of iTunes

    I have a problem to play a movie, in some titles.  Error: this movie requires QuickTieme, that is not compatible with this version of iTunes (version installed on my iMac 11.0.1).

  • Transfering photos from old laptop to new with different versions of PS elmnts

    We have PS Elements 4 on an old lap top, running Windows Vista, which is beginning to fail. Have just purchased new lap top running Windows 8 which will not accept PS Elements 4 as it is incompatible, but it has partially loaded. Shop says they trans

  • Why won't Photoshop CS5 let me upload pictures?

    I'm new to Photoshop CS5 but i've used Photoshop before, I tried uploading a picture the same way but the browsing styles are diffrent. so i tried both browsing styles with the same picture and each one wouldnt let me upload it and it said it was the

  • SAX Parser method charaters trouble

    Hi, I am using a sax parser for loading an xml file of size over 1gb. The problem whats happening is that the content gets truncated at random. And this truncation happens in the characters method of the sax parser. This am sure as I logged the conte

  • A Question about using MSN Messenger

    Hi I am quite new to Mac, so I have a noob question When I tried to log in MSN, It asked me to download a newer version MSN. when the download was finished, I have a Messenger.bin file Can anyone tell me how to use that file to update my MSN please?