How to disable the custom push button in Classic ALV

Hi All,
Iam Using Classic Alv (with out classes).I have a created a push button.now at run time i want to make it dynamic .
iam using REUSE_ALV_GRID_DISPLAY
for ex.
i have some records in my out put.
i have a push button "INSERT"
For first time when i clicked it will be inserted.
Now if i run the report for the same inputs as top,i will get the records.But the "INSERT" push button should be disable.IS that Possible ??
If yes kindly send me the solution.

Hi,
Here is the piece of code for your understanding...
FORM f4200_pf_status_set USING i_extab TYPE slis_t_extab.
  REFRESH i_extab.
  PERFORM f4210_exclude_fcodes CHANGING i_extab.( This form is mentioned below ).
  SET PF-STATUS 'STANDARD' OF PROGRAM '(Program name)' EXCLUDING i_extab.( This line of code will excude the function u don't want)
ENDFORM.
FORM f4210_exclude_fcodes USING i_extab TYPE slis_t_extab.
  DATA: ws_fcode TYPE slis_extab.
  CLEAR ws_fcode.
  ws_fcode = '&EB9'.           
  APPEND ws_fcode TO i_extab.
  ws_fcode = '&ABC'.           
  APPEND ws_fcode TO i_extab.
  ws_fcode = '&NFO'.           
  APPEND ws_fcode TO i_extab.
  ws_fcode = '&LFO'.          
  APPEND ws_fcode TO i_extab.
ENDFORM.                    " f4210_exclude_fcodes
I hope this clarifies. Revert for any queries.
Cheers,
Venkat

Similar Messages

  • Can we disable the default push buttons on the ALV Grid

    Hi,
        Can we disable the default push buttons on the ALV
    Grid Control...
        If so, pls send me the procedure...
    thanks and regards
       raghu

    Hi,
    In the PBO:
      PERFORM f9100_exclude_functions USING :
                             i_exclude[]  '&CHECK',
                             i_exclude[]  '&REFRESH',
                             i_exclude[]  '&LOCAL&CUT' ,
                             i_exclude[]  '&LOCAL&COPY',
                             i_exclude[]  '&LOCAL&PASTE',
                             i_exclude[]  '&LOCAL&PASTE_NEW_ROW',
                             i_exclude[]  '&LOCAL&UNDO' ,
                             i_exclude[]  '&LOCAL&APPEND',
                             i_exclude[]  '&LOCAL&INSERT_ROW',
                             i_exclude[]  '&LOCAL&DELETE_ROW',
                             i_exclude[]  '&SORT_ASC',
                             i_exclude[]  '&SORT_DSC',
                             i_exclude[]  '&FIND',
                             i_exclude[]  '&SUMC',
                             i_exclude[]  '&SUBTOT',
                             i_exclude[]  '&MINIMUM',
                             i_exclude[]  '&MAXIMUM' ,
                             i_exclude[]  '&VGRID' ,
                             i_exclude[]  '&VEXCEL' ,
                             i_exclude[]  '&VCRYSTAL',
                             i_exclude[]  '&HTML',
                             i_exclude[]  '&MAINTAIN',
                             i_exclude[]  '&SAVE',
                             i_exclude[]  '&GRAPH',
                             i_exclude[]  '&HELP',
                             i_exclude[]  '&ALL' ,
                             i_exclude[]  '&SAL' .
    *                         i_exclude[]  '&EXCLALLFC'.
    *&      Form  f9100_exclude_functions
    * This form exclude buttons  from the toolbar.
    *      -->P_IEXCLUDE  text
    *      -->P_1150   text
    FORM f9100_exclude_functions USING   pexclude LIKE i_exclude
                                   value(pfunction).
      DATA: l_exclude TYPE ui_func.
      l_exclude = pfunction.
      APPEND l_exclude TO pexclude.
    ENDFORM.                    " f9100_exclude_functions
    This will exculde the default push buttons.
    Let us know if it works for you.
    Regards,
    Anjali

  • How to disable the select options button, while audio is playing in the question template in captivate 8?

    How to disable the select options button, while audio is playing in the question template in captivate 8?

    Apologies for late reply.
    I mean "On Question screens audio keeps on playing even after we have selected an option or options depending on the question type and clicked Submit. How do we stop the audio on selecting an option?"

  • How to Disable the Add & Review Button

    How to Disable the Add & Review Button
     *Updated with the correct ISF  code (the previous code, in case you saved it, was to actually  escape apostrophes.  That will be posted  seperately. 
    Note that this solution might not work in your environment - you might have to modify it based on your installation.
    Enjoy! 
    Common_disableAddAndReviewButton()
       if ( Moment == 'ordering' )
            var theForm = document.forms[0];
            var buttonCt = 0;
            for( i = 0; i < theForm.elements.length; i++ )
                 if( theForm.elements[i].type == "submit" )
                    if ( buttonCt == 0 || buttonCt == 2 )
                        theForm.elements[i].disabled = true;
                         theForm.elements[i].style.visibility="hidden";                  
                     buttonCt++;              

    This is GREAT - I added a new Java Script and set it to "when form is loaded" and when I did some test reqs - no Add & Review button !!!!

  • How to disable port using push buttons in VI..

    We have a project using a hardware using dynamic mic as an input for interfacing we use labview to read data in frequency and decibel..
    But there's is conditions..
    1st. Button for disabling the port in our hardware
    2nd. If there is no input device "long beep" tone will come up.
    For now this is only what we have our VI by watching in youtube tutorials ..
    And this the 1st tym we use labview..
    plss help us..
    We only have 2 days for the project..
    Attachments:
    GUI.vi ‏21 KB

    Here is a basic UI example that shows how you can listen for user events (pushing the button) and control the flow of your program using a task engine.
    It does not match your requirements however since this is a poroject you should actually do the work. This is a framework for how you can build your application.
    If you have specific questions feel free to ask them but don't expect anyone here to do the project for you.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot
    Attachments:
    PSS Project 8-0.zip ‏82 KB

  • How to disable the  'Change - Display' Button in Cluster via SM34 ?

    Hi
    I have a View Cluster maintained with a transaction wich calls  SM34 passing it the Cluster.
    I need the dialog be only in display mode, so i'm looking for a way to disable the button Change<->Display.
    Does somebody knows how can i do this ? maybe with an event, the button does not appears or well making the button does not change the display mode (does not change the field VIEW_ACTION siwtch from 'S' to 'U')
    Thanks in advanced
    Frank

    Hi Frank,
    On SAP 4.7 Version
    1). Goto SHD0
    2). Enter the transaction code as SM34
    3). ENter the transaction Variant as say ZSM34
    4). Click on the create button --> this will take you to the sm34 screen. If you want to default some value or disable something on this screen just hit enter on this screen. You will get a popup window to select and restrict.
    5). You can further go to next screen and deactivate the menu. On the popup screen you will get a button MENU FUNCTIONS.
    Hope this helps
    Cheers
    VJ

  • How to disable the custom button on alv?

    Hi All,
                       i created a ALV Report .I created a Custom Button on ALV.Based on the input value i need to enable/disable  that Button.
    How can i achieve?And what are the methods i need to code?
    Regards
    Ravi

    Hi Ravi,
       You create the button like this:
    Data: mr_functions type ref to IF_SALV_WD_FUNCTION_SETTINGS,
             mr_button_func type ref to CL_SALV_WD_FUNCTION
      mr_functions ?=  mr_alv_model.
      CALL METHOD mr_functions->create_function
        EXPORTING
          id    = '<<Button Id>>'
        RECEIVING
          value = mr_button_func.
      CREATE OBJECT mr_button.
      mr_button->set_text( 'some text' ).
      mr_button_func->set_editor( mr_button ).
    to sent enable/disable
    mr_button->set_enabled(abap_false).
    hope this will serve your purpose.
    Regards,
    Ritwik.

  • [SOLVED] Firefox/GTK - How to disable the icons on buttons?

    I'm running GNOME 2.30 with Firefox 3.6.3.
    I have set: gtk-button-images = 0 in .gtkrc-2.0 (although I think it might be deprecated), as well as setting buttons_have_icons to false in gconf under /apps/desktop/gnome/interface.
    All other programs have icon-free buttons, but Firefox insists:
    [img]redacted[/img]
    Is there something I'm missing?
    Last edited by jasonwryan (2013-03-17 23:23:30)

    I'm not so sure ... I've tried all of the ~25 GTK themes I have installed, and they all still have icons, but only in Firefox.  All (most?) other GTK apps I've tried removed the button icons.
    I'm in Xfce now, and the situation is the same.  Look at the "Close" buttons in both sceens:
    Icons on buttons ENABLED:
    Icons on buttons DISABLED:
    So maybe this is a Firefox issue?
    Last edited by MkFly (2010-05-29 02:52:12)

  • How to disable the single radio button in radionbuttongroup????

    Hi Experts,
      I created the RadiobuttonbyKey UI element and i have set it to the SimpleType which has two values.Say Ex:
        Simple Type : 1 bus
                             2 train
    My Requirement is onActionxxxx i have to display only one raiobutton in the Group and onActionyyyy i have to show both the radiobuttons in the group.
    Can anyone please help me how to achieve this..............
    Regards,
    Mahesh

    hi Mahesh ,
    which UI element you are using ......radio button group is group by key or group by index  ?
    if it is group by key above specified code holds ,
    if is group by index , then you have bind a node of cardinaility 0...n and with one attiribute in that node.
    in onActionxxxx()
       wdcontext.nodeRadioButton().invalidate();
    IPrivateDynamicTableView.IRadioButtonElement element;
    element = wdContext.createRadioButtonElement();
    element.setValueRadioButton("Train");
    wdContext.nodeRadioButton().addElement(element);
    and in onActionyyyyy()
    wdcontext.nodeRadioButton().invalidate();
    IPrivateDynamicTableView.IRadioButtonElement element;
    element = wdContext.createRadioButtonElement();
    element.setValueRadioButton("Train");
    wdContext.nodeRadioButton().addElement(element);
    element = wdContext.createRadioButtonElement();
    element.setValueRadioButton("Bus");
    wdContext.nodeRadioButton().addElement(element);
    Regards
    Govardan Raj

  • Adding push buttons in standard ALV

    Hi ,
    Is there any possiblity to add custom push buttons to standard ALV in Webdynpro for ABAP.
    If so, please provide me the solution.
    Thanks in Advance.
    cheers,
    sravan.

    I got the answer .

  • How to disable the AET button on Web UI?

    Hi all,
    Does anyone know how to disable the AET button in the Web UI? Our customer doesnu2019t want the end users to change any configuration and the only thing left for this is hide/disable the AET functionality.
    Thank you very much in advance.
    Kind regards,
    Alvaro

    Alvaro,
    The AET should not be visible to end users, especially not in the production system.
    This should be done by authorisation.
    If you are referring to the personalization, you can disable this in the businessrole by selecting a value for the parameter PERSONALIZATION.
    If there are no values available, you can maintain them in sm30 --> PERSCV_PROFILE.
    Hope this helps.
    Regards,
    Pieter Rijlaarsdam

  • How to disable the "Reply" not "Reply All" button in Outlook 2010 with GPO

    How to disable the "Reply" not "Reply All" button in Outlook 2010 with GPO
    I need to disable to "Reply" NOT the "Reply All" button/s in Outlook 2010. If possible, then deploy it through GPO also.

    Hi,
    We can disable the "Reply" button by using Control IDs.
    Please first make sure that you have installed the
    Office 2010 Administrative Templates. To disable the "Reply" button, please follow the steps below:
    1. Press Windows key + R to open the Run command, type gpedit.msc and press Enter.
    2. In the Group Policy Object Editor console, expand User Configuration, expand
    Administrative Templates, and then expand Microsoft Outlook 2010.
    3. Expand Disable items in User Interface, click
    Custom, double-click Disable commands, and then click Enabled.
    4. Click Show. In the Show Contents dialog box, enter
    354 (the control ID for “Reply” button) in the Value field, and then click
    OK.
    5. Restart Outlook and you’ll find the “Reply” button is disabled (grayed out).
    For more information, please refer:
    http://technet.microsoft.com/en-us/library/cc179143(v=office.14).aspx
    Regards,
    Steve Fan
    TechNet Community Support

  • I have installed a trial of Adobe illustrator on my macbook pro. I want to trace an image using the custom trace button but can't. Does anyone have any ideas how I could custom trace?

    I have installed a trial of Adobe illustrator on my macbook pro. It is the 2014 release of adobe illustrator. I want to trace an image using the custom trace button.
    I start a new document. Then I place my scanned pencil/colored pencil drawing, in to the document. I have tried scanning and then placing it as a jpeg, bitmap, and tiff file. I have tried scanning and then placing it, in color and in black and white. The scan mode I use is flatbed. Adobe illustrator allows me to select the default button and one of eleven preset buttons (e.g high fidelity photo), but it does not allow me to click the custom trace button. The custom trace button is grey while all the other buttons are white.
    Does anyone have any ideas how I could custom trace?

    It seems pointless to adjust it afterwards because it is then only a couple a pencil lines rather then a full drawing. And how do I adjust it afterwards? Would I do this using the different buttons under the window button?

  • How to disable the cancel button in InputDialogBox?

    Can someone please tell me how to disable the cancel button in an input dialog box?
    thanks,

    Cross posted: [http://www.coderanch.com/t/487888/Swing-AWT-SWT-JFace/java/disable-cancel-button-input-dialog]

  • How to disable the inputfield using radio button dynamically in module pool

    How to disable the inputfield on the screen using radio button dynamically in module pool.
    Please suggest .
            Thanks.
    Edited by: Lavanya YH1504 on Jul 30, 2010 1:20 PM

    I got it thank you.
    LOOP AT SCREEN.
        if  screen-GROUP1 = 'LA1'.
           If RADIO1 = 'X'.
            SCREEN-INPUT = '0'.
            MODIFY SCREEN.
         ELSEIF RADIO2 = 'X'.
           screen-input = '1'.
          ENDIF.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    Edited by: Lavanya YH1504 on Jul 30, 2010 1:51 PM

Maybe you are looking for

  • Imminent Hard Drive Failure? Satellite C655D-S5130

    Recently performed a system recovery after boot failure on Satellite C655D-S5130. Recovery went fine, but now we're getting a windows error message after startup saying that we should run file backup because the hard drive reported errors and warning

  • I can't get my website to connect to mysql database hosted on my yahoo site

    I used David Powers tutorials to build a CMS website in Dreamweaver using a testing site set up on my computer. I installed XAMPP and got it working on my computer. (I have a Windows 7 PC with Dreamweaver CS6) Now I have installed the mysql database

  • Move a user, drag and drop

    Hi, I have created new nodes in PPOMA_BBP and will drag and drop users from other nodes to the new node. will the users take on the attributes of the new node or hold what they had? i.e. are the attributes (co code, plant) determined by the user or t

  • Answering Machine software for the Mac?  What is out there?

    I use Ovolab Philink ( http://www.ovolab.comhttp://www.ovolab.com ) as my answering machine, brilliant programme etc.  However they have gone belly up or who knows, as nobody responds anymore. Does anybody know of a programme that functions as a answ

  • Can I legally sell my CS3 Production Premium Academic?

    I recently purchased an academic version of Adobe CS3 Production Premium (full, not an upgrade). It has been nothing but a nightmare and I am extremely unhappy with every aspect of the product. I have deactivated it and was forced to reformat my hard