What Custom button in ALV has been clicked?

Hi Experts,
I have written one WDC where in i have created an ALV with two custom buttons in it. One is to Search the company code with Function code as 'SEARCH', and the other is to export the result in to an excel file, this button function code is 'EXPORT'.
I have created these two buttons in the WDDOINIT method of the view, say MAIN.
I have created a method, say 'function_button' in the MAIN for the event ON_FUNCTION, to handle any events that happens on these custom buttons.
The problem is whatever the customized button i click in the ALV the entire code of the method 'FUNCTION_BUTTON' is being executed.
Now, I want to get the function code of the button clicked in my ALV, so that i can only execute the portion of the code that needs to be executed.
Please let me know the ways to tackle this problem.
Thanks in advance.
Good day!

Hi Shashi,
Check the following blog to handle ALV custom function.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/101df93f-4b5c-2910-14aa-9eb0338c2110
Regards,
Karthick S

Similar Messages

  • FB70: User exit when the save button (for posting) has been click

    Hi ABAP Gurus,
    With regard to FB70, can anyone provide me the name of the user exit that will be triggered when the save button (for posting) has been clicked?
    Thanks!
    <b>
    Best Regards.
    Brando</b>

    Hello Brando,
    With FB70 I recommend you implement the user-exit via the Business Add-In (BADI) way and avoid SMOD exits if possible.
    The list below are the BADIs that are called by the <b>ECC6.0</b> system after you click the <b>Save</b> button to post a document. <u>They are listed in the order which they are called before the actual post</u>. You'll have to find the right one as per your requirement - you can view their definition via transaction SE18 then after you find the right one you need to use that definition to create an implementation via SE19. Here again, you'll have to choose the right method that suits your requirement. You'll find the method and class documentation in some cases with examples on how to implement, you need to write the code between the Method..EndMethod statement using the parameters provided by the Method.
    1. PPA_CUST_BADI
    2. FI_RES_ITEM_CURRENCY
    3. AC_QUANTITY_GET
    4. BADI_PRKNG_NO_UPDATE
    5. FM_POP_CORE
    6. FMRI
    7. FMRE_BUS_PROCESS
    8. FAGL_SET_SEGMENT
    9. EXIT_XFMPR1_001
    10. BUAVC_CHECK_RESTRICT
    11. UKM_R3_ACTIVATE
    12. CO_DOCUMENT_INFO
    I spent a bit of time debugging FB70 to find this info for you, please appreciate by rewarding points (or else
    Good luck.
    Cheers,
    Sougata.

  • How to disable a button once it has been clicked

    Hi!
    I need to disable a button once the user has clicked it! I also need the colour of the button to change once it has been clicked as well (I need it to just grey out - not sure if this can be solved using actionscript??)
    The only method I could think of of accomplishing this is to put each button in their own UILoader, but I'm hoping there is a simpler method!?

    Here's what you do:
    1. Open the Components panel and drag a button on the Stage (do NOT create button symbol).
    2. For now, give it an instance name of "aButton" - that's what the code below uses. However, you probably want to use a different name. Also, you can open up the Components Inspector panel (CS4) to change the label on the button - use the Component Parameters section on the Properties panel if you have CS5.
    3. In the Actions panel use this code:
    aButton.addEventListener(MouseEvent.CLICK, disableButtonHandler);
    function disableButtonHandler(event:MouseEvent):void
         //do whatever (gotoAndStop, fscommand...)
         aButton.enabled = false;
    4. Test it. If it was done correctly (I tested it on my computer), the button should deactivate and go greyish when clicked.
    Make sure you use a Button Component. I don't know it this code would work with a Button or a MovieClip symbol.

  • Finding which menu item has been clicked

    Does oracle forms have anyway of knowing which menu item has been clicked.
    I have a security structure set up where menu items are made visible depending on their name, which in turn is based on the individual forms that a particular user can access.
    I would like to write a generic method for all menu items where it uses the name of the clicked menu item to perform a query, the result could be used to open a new form.
    So is there a build in or some 'secret source' which tells me the name or gives me the id of a clicked menu item?
    Message was edited by:
    gazbarber

    Not entirely sure what you mean, are you sugesting i have a generic method with a switch statment and uses the input paramter to decide what to do?
    It's not really what i'm after, rather I already have the name of the menu item in the database, the same table also contains the module filename that clicking the button should go to.
    So the idea would be somthing like
    declare
    begin
    select module name into new form from secutity table where menu item = :system.current menu item;
    open_form(new form);
    end;
    :sysem.current menu item is the missing ingreadiant.
    My menu has many items in the hundreds i think so even the generic switch staement would be pretty tedious and i want changes in the database to be felt system wide as they are else where in my system.
    Thanks for you help and i hope this explains my question better.
    Regards,
    Gareth
    Message was edited by:
    gazbarber

  • HT4623 What if your software updates has been deleted

    What if my software updates has been deleted

    The Settings > General > Software Update option only appears when you have iOS 5+ installed, if you have iOS 4 on your iPad then you can only update via your computer's iTunes, as described half-way down the page that you posted from.
    To update via a computer, connect the iPad to your computer's iTunes and copy any purchases off the iPad to your computer via File > Devices > Transfer Purchases. You may also want to copy photos and any important documents off the iPad as well e.g. via the file sharing section at the bottom of the device's apps tab when connected to iTunes, via wifi, email, dropbox etc - they should be included in the backup, but it's best to have a copy of them outside of the backup just in case. You can then force a backup of the iPad by right-clicking the iPad 'Device' on the left-hand sidebar of iTunes and selecting 'Backup' (on iTunes 11 you can enable the left-hand sidebar via option-command-S on a Mac, control-S on a PC)
    Then start the update by selecting the iPad on the left-hand sidebar, and on the Summary tab on the right-hand side clicking the Check For Updates button
    Updating to iOS 5+ : http://support.apple.com/kb/HT4972
    Your iPad will be updated to the highest iOS version that it supports, which for a first gen iPad is 5.1.1, and for other iPad is iOS 6.1.3

  • Add on custom button to ALV toolbar in std tcode ME51N, ME52N and ME53N.

    Hi All,
    I have the requirement to add on the custom button to ALV toolbar in ITEM OVERVIEW for standard transaction ME51N, ME52N and ME53N. Does anyone know what enhancement point or user exit i should apply and how i can add on the custom button?
    Thanks.

    There are no user exits or badi's for COOIS. You may have to make copy of the PPIO_ENTRY to ZPPIO_ENTRY including all the varians without changing their names like copy SAP&COOIS to SAP&COOIS. Create a T-Code ZCOOIS and replace COOIS in variant SAP&COOIS to ZCOOIS not in the name of the variant but in the field "Check Authorization for".
    The PF-Status is found in the include LCOISOUTPUTF16 which is located in the function group COISOUTPUT you may have to copy that too. Finally you need to copy SAPLCOISOUTPUT with its GUI status GENERAL and add your custom button there.

  • From: Apple-ID [mailto:Apple.International@Apple.id]  Sent: Wednesday, December 11, 2013 7:36 PM To: Deborah McKay Subject: Final step To verify your Apple      Dear Apple Customer,  Your Apple ID has been used to open a session iCloud from an unauthori

    From: Apple-ID [mailto:[email protected]]
    Sent: Wednesday, December 11, 2013 7:36 PM
    To: Deborah McKay
    Subject: Final step To verify your Apple
    Dear Apple Customer,
    Your Apple ID has been used to open a session iCloud from an unauthorized device..
    It's easy: Click the link Your iTunes account is now locked, please enter your account to verify your information. .
    Update Now >
    After you finished your account is confirmed, let us know immediately. Report, it is important because it helps us prevent fraudsters from stealing your information. Sincerely, apple.
    copyright 2013 Apple Inc. Please do not reply to this email because we are not monitoring this inbox. To get in touch with us, log in to your account and click "Contact Us" at the bottom of any page. Copyright © 2013 apple. All rights reserved. apple (Europe) S.à r.l. et Cie, S.C.A. Société en Commandite par Actions Registered office: 22-24 Boulev ard Royal, L-2449 Luxemburg RCS Luxemburg B 118 349 apple Email ID PP315.
    I just got this message and sent it to [email protected] per instructions on another post. the link leads to a page asking for Apple id and credit card information.

    I got a similar email. It's obviously Spam. The double period afetr the first sentence and the otherwise poor grammar are dead giveaways even before I checked out the link embedded. -- I didn't click on it, just hovered over it to get the url. And the return address was [email protected] Very bogus.

  • 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.

  • Is there any way to find out "Where am I" after a Field has been clicked?

    My question refers to the "Mouse Up" JS which are so frequently associated with a Field.
    I tried this code:
    console.println(this.rect);
    and the output was: "undefined".
    I then tried this:
    console.println(this);
    and the output was: [object Doc]
    so, I guess I am making progress, but I am too high on the object hierachy.
    What I need is the rect or the name, or some way to determine which of the many fields with identical code has been clicked.
    That kind of generalization (same code in many fields) sure saves a lot of time and coding.
    TIA,
    -Ramon

    As noted you can use the 'event' object's 'rect' property to get the quads, corner' points of the field that you clicked on. You can also access other event properites in the same way like 'event.target.name', 'event.targetName', or 'event.type' for example. Using the 'join()' method can provide a clearer listing of the quads for for the event, console.println(event.target.rect.join(", "));'

  • Displaying a caption when multiple click boxes has been clicked in a slide.

    I have 9 click boxes in my slide which when clicked opens a different page except 1 click box.1 click box takes the user to the previous page . I want to display a text caption when the user has clicked other 8 click boxes just to make sure they go through all the pages. Is there a way in captivate to do this? If yes, how do I do it?

    Since you are not yet familiar with advanced actions (and variables?), will try to explain in detail and provide some links to articles/blog posts as well.
    Create 8 user variables, one for each click box (Project, Variables); I will label them v_one, v_two.....v_eight It is not necessary to give a default value
    Create another user variable v_counter that will be incremented whenever a click box has been clicked for the first time
    Create a first click box (set to visible), label it CB_One (find that easier) and in the Properties panel, Action accordion, On Success change the action to 'Execute Advanced actions'. Then open the actions dialog box with the Folder icon that appears.
    You have to create a conditional action, so select that type, and label it CB_One (is possible, an exception because normally you cannot have same labels); this action will need two decisions (have a look at my video tutorial: http://kb2.adobe.com/community/publishing/858/cpsid_85847.html):
    First decision 'Visited' checks if the click box has already been clicked, visible when the value of v_one = 1; if this is not the case (first click) v_one gets the value=1 and the counter v_counter is incremented
    Second decision 'Check' checks the value of the counter, and shows an initially invisible button (I choose a button, BtNext but you can also have a click box) if the counter reaches 8, bummer the forum doesn't allow me to insert an image, have to type:
    IF section                       v_counter is equal to 8
    Actions section             Show BtNext
    Duplicate the click box 7 times, label them CB_Two,  ..... CB_Eight  (beware: case sensitivity). To each copy the same advanced action is attached, but you'll have to create duplicate actions for each one CB_Two....  In the duplicates you have to replace the variable v_one by the proper variable (v_two...) in the first decision; the second decision remains the same
    Test.
    Lilybiri

  • JRadioButtons - how do i know which one has been clicked?!

    hey all,
    im working on a simple gui to implement a ticket office system. im a bit of a newbie to using GUIs and im fed up of trawling through the api's in search of answers and im on the home run... so here's my q...
    i have a gui class for doing a search for tickets. i have a controller in a seperate actionListener class for this gui. i have three radio buttons for searching for three different things and then there's a search jbutton to start the search.
    how do i know what radio button the user has selected when they click search? i need to be able to know this from the controller, not in the gui itself.
    thanks a mil!

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class TicketOffice_Demo extends JFrame {
        public TicketOffice_Demo() {
            initComponents();
        private void initComponents() {
            ticketsGroup = new ButtonGroup();
            toolbar = new JToolBar();
            startSearch = new JButton();
            typeA = new JRadioButton();
            typeB = new JRadioButton();
            typeC = new JRadioButton();
            scrollpane = new JScrollPane();
            textarea = new JTextArea();
            setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
            setTitle("Ticket Office Demo");
            toolbar.setFloatable(false);
            startSearch.setText("Start Search");
            startSearch.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent evt) {
                    startSearchActionPerformed(evt);
            toolbar.add(startSearch);
            ticketsGroup.add(typeA);
            typeA.setSelected(true);
            typeA.setText("\"A\" Tickets");
            typeA.addItemListener(new ItemListener() {
                public void itemStateChanged(ItemEvent evt) {
                    typeAItemStateChanged(evt);
            toolbar.add(typeA);
            ticketsGroup.add(typeB);
            typeB.setText("\"B\" Tickets");
            typeB.addItemListener(new ItemListener() {
                public void itemStateChanged(ItemEvent evt) {
                    typeAItemStateChanged(evt);
            toolbar.add(typeB);
            ticketsGroup.add(typeC);
            typeC.setText("\"C\" Tickets");
            typeC.addItemListener(new ItemListener() {
                public void itemStateChanged(ItemEvent evt) {
                    typeAItemStateChanged(evt);
            toolbar.add(typeC);
            getContentPane().add(toolbar, BorderLayout.NORTH);
            textarea.setBackground(new Color(255, 255, 204));
            textarea.setEditable(false);
            scrollpane.setViewportView(textarea);
            getContentPane().add(scrollpane, BorderLayout.CENTER);
            Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
            setBounds((screenSize.width-400)/2, (screenSize.height-300)/2, 400, 300);
        private void startSearchActionPerformed(ActionEvent evt) {
            Controller cont = new Controller(ticketType);
            textarea.append("Controller searches for ticket type '"+cont.getTicketType()+"'\n");
        private void typeAItemStateChanged(ItemEvent evt) {
            if(typeA.isSelected()){
                ticketType = "A";
            }else if(typeB.isSelected()){
                ticketType = "B";
            }else if(typeC.isSelected()){
                ticketType = "C";
        public static void main(String args[]) {
            new TicketOffice_Demo().setVisible(true);
        private JButton startSearch;
        private JRadioButton typeA;
        private JRadioButton typeB;
        private JRadioButton typeC;
        private JScrollPane scrollpane;
        private JTextArea textarea;
        private JToolBar toolbar;
        private ButtonGroup ticketsGroup;
        private String ticketType ="A";
    class Controller {
        Controller(String ticketType){
            this.ticketType = ticketType;
        public String getTicketType(){
            return ticketType;
        private String ticketType;
    }

  • How to keep track of how many times a link has been clicked?

    How to keep track of how many times a link has been clicked or accessed? Do I need to use database for this?

    Hi
    Proably something like this can work,
    1> Have a servlet/bean invoked when the link is linked
    2> have a static variable in that servlet/bean wich gets incremented before the control is passed to another desired page..
    The problem with this approach is that care has to be taken that the servlet/bean is not re-instalised, in case of which the static variable will also be instalised and the data would be lost.
    The best thing is to store the count in the database.
    Regards
    Arathi.

  • HT2397 How can I check what region my Macbook pro has been set at.

    How can I check what region my Macbook pro has been set at?

    It will have been set for the region in which it was purchased.
    http://support.apple.com/kb/HT2397
    Once you have set the region in DVD Player five times it cannot be changed. However see tis also:
    http://support.apple.com/kb/TA25416?viewlocale=en_US&locale=en_US
    Instead, use VLC to view videos from different regions:
    http://www.videolan.org/vlc/download-macosx.html

  • How  can i determin which tab has been clicked??

    hi there
    how do i determine which one of the tabs in a tabbedPane has been clicked? do i add ActionListener to the tabbedPane or its sub JPanel?

    I import them all, it finallly compiled, but I am not sure if they are ok. here is the codes
    import javax.swing.event.ChangeEvent;
    import javax.swing.event.ChangeListener;
    TabbedPane = new JTabbedPane();
    TabbedPane.addTab("Easy", easyTab);
    TabbedPane.addChangeListener(new ChangeListener()
    public void stateChanged( ChangeEvent ce )
    Object source = ce.getSource();
    if (source == "Easy")
    currentTab = "easy";
    does it look all right to you?

  • I am now unable to print pdf documents. The message on screen says I have not selected any pages to print, even though the bullet point saying 'All' pages  has been clicked. I have recently upgraded to adobe reader XI, could that be the problem? I also ca

    I am now unable to print pdf documents. The message on screen says I have not selected any pages to print, even though the bullet point saying 'All' pages  has been clicked. I have recently upgraded to adobe reader XI, could that be the problem? I also cannot sign in to Adobe Export pdf now either. It says 'error occured while signing in'!

    Open Adobe Reader | Edit | Preferences | Documents: change View Documents in PDF/A Mode to Never.
    Regarding the ExportPDF problem, please start a new topic in the ExportPDF forum.

Maybe you are looking for

  • HT1918 How do I remove my card information from my iPhone 5

    I'm trying to remove a credit card from my iTunes but don't know how to do it from my phone

  • Need info on adobe pdf generator

    Hi, We are evaluvating a tool to convert word document to pdf for our prestegious client. Below are requirements, Requirement 1: Source- MS Word document Target- PDF 1) Conversion of MS Word document to PDF through online. Here Word document content

  • Previously unsecured documents now (SECURED), require a password to edit ... and I did not do this.

    Documents I have been opening and editing for about a year just opened today as (SECURED). File-Properties-Security says editing is Password Protected (I did not do this). Installed a trial of Kaspersky recently so uninstalled that, rebooted, still n

  • Nano 3rd Gen. - Not working

    Was working fine but after turning off and turning back on 15 minutes later it won't play anything anymore. All of the music and videos are there but the ipod freezes for a few minutes when I press the play button. The games are also not working and

  • BDC  screen fields differ from one to another

    Hi, I want to do a recording for tcode KE21. When we run KE21 it has nearly 21 fields on the first screen. But when i do the recording for KE21 using SHDB, the number of fields are just 12 on the first screen. So after the recording, I am getting the