Double click from OOALV Display

Hi
When I use the method CL_GUI_ALV_GRID->GET_SELECTED_CELLS to get the selected cell column id and value from OOALV output, It is fetching only column name.  I need both column name and column value for drilldown purpose.
Pl suggest me.
Thanks
Hema

You can try like this,
FORM handle_double_click
     USING i_row TYPE lvc_s_row
           i_column TYPE lvc_s_col
              is_row_no TYPE lvc_s_roid.
READ TABLE gt_list INDEX is_row_no-row_id .
IF sy-subrc = 0 AND i_column-fieldname = 'SEATSOCC' .
CALL SCREEN 200 . "Details about passenger-seat matching
ENDIF .
ENDFORM .
Refer this doc
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907
Regards
Kathirvel

Similar Messages

  • Double click from OOALV Display to call relevant field transaction

    Hi,
    In program used the below code to dispaly ALV grid.
         CALL METHOD OBJ_GRID_DETAIL->SET_TABLE_FOR_FIRST_DISPLAY
            EXPORTING
              IS_LAYOUT       = X_LAYOUT
              IS_VARIANT      = X_VARIANT
              I_SAVE          = 'A'
            CHANGING
              IT_FIELDCATALOG = IT_FLDCAT_DETAILS
              IT_OUTTAB       = IT_ORDERS[]
    The display contains Sales order number, material etc.
    If double click on sales order number, should call the transaction VA03 etc.
    I am new to OOPS, please suggest me.
    Thanks
    Hema

    Please try this,
    FORM handle_double_click
         USING i_row TYPE lvc_s_row
               i_column TYPE lvc_s_col
                  is_row_no TYPE lvc_s_roid.
    READ TABLE IT_ORDERS[] INDEX is_row_no-row_id .
    IF sy-subrc = 0 AND i_column-fieldname = 'VBELN' .
    * Set the Parameter Id for the Sales Order Number
    SET PARAMETER ID 'AUN' FIELD IT_ORDERS-vbeln.
    CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
    ENDIF .
    ENDFORM .
    The below document explains all the event handling and OO ALV concepts,
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907
    Regards
    Kathirvel

  • How to handle both single click and double click from mouse

    hey,
    I looked in past threads and didn't get a proper answer for capturing both single and double click from the mouse.
    in most applications the single click action does not interfere with the double click action, for example in a text editor, single click sets the cursor in between the text, double click marks a word, triple click marks a sentence, they do not bother each other, they all can happen first the single then the double and then the triple, but what if i have a very distinct action for each of the actions, the e.getClickCount() returns every time the number of clicks and if i use
    if(e.getClickCount()==1)
        doSingleClick();
    if(e.getClickCount()==2)
        doDoubleClick();it will always do first the single click and then the double click, which works fine with the example i gave, but not with what i want to do, so i was thinking to over come this that i will use another thread to run my tasks if dt has past since the last click and by the last click counts to perform the correct action and go to sleep until the next mouse click notify it, what do you think?
    run this to get what i mean...
    package blah;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class MouseClickTest {
         static long previousTime = System.currentTimeMillis();
         public static void main(String[] args) {
              JPanel panel = new JPanel();
              JButton component = new JButton("Hit me, please");
              component.addMouseListener(new MouseAdapter(){
                   public void mouseClicked(MouseEvent me){
                        if(me.getClickCount()==1)
                             System.out.println("Now I will do single click action");
                        if(me.getClickCount()==2)
                             System.out.println("Now I will do DOUBLE click action");
    //                    System.out.println("Click count: " + me.getClickCount());
              panel.add(component);
              Launcher.launch(panel);
    package blah;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Launcher {
         public static JFrame launch (Container contents, String title, Color backgroundColor) {
              JFrame frame = new JFrame (title);
              if (backgroundColor != null) {
                   frame.setBackground (backgroundColor);
                   contents.setBackground (backgroundColor);
              } else {
                   frame.setBackground (contents.getBackground());
              frame.getContentPane().add (contents, BorderLayout.CENTER);
              frame.pack();
              frame.addWindowListener (new WindowAdapter() {
                   public void windowClosing (WindowEvent e) {
                        System.exit (0);
              frame.setVisible (true);
              return frame;
         public static JFrame launch (Container contents, String title)      {
              return launch (contents, title, null);
         public static JFrame launch (Container contents, Color backgroundColor) {
              return launch (contents, contents.getClass().getName(), backgroundColor);
         public static JFrame launch (Container contents) {
              return launch (contents, contents.getClass().getName());
    }

    Read my comments and solution in this posting; [http://forums.sun.com/thread.jspa?forumID=57&threadID=705244]
    and then choose a better design for your application.

  • Double clicking Home to display Phone Favorites

    I have my Home button set to display Phone Favorites with a double click. Is there any way to double space (double line feed) between the contact enteries? When driving around (bouncing around) in my truck and trying to select one, I have a hard time getting the right contact. Usually get the one above or below. I need more room to hit the target.

    You are being serious? You are performing something dangerous and in some areas illegal and you are asking for help? I just hope you don't kill someone with your careless behavior.

  • Repeated double clicks from lower section of G5 after shutdown

    Hi, after scanning the forum this is looking like possible power supply issue. The computer in all other respects seems to be fine once booted up but after shutdown (and before power up) while connected to a live power source I get repeated metallic sounding double clicks and faint flickering white LED. I think I used to only hear one double click after switching on the BackUPS.
    Is this sounding like a user serviceable problem or is it off to the repair shop for this? Or what if I just ignore it, will this become a bigger problem?
    Thanks,
    Dave

    Replacing the PSU will require removing at least the bottom processor to access it at the bottom of the case. Not really a job for the feint of heart. Contacting your nearest Apple Service Agent would be simpler if you have one.
    I imagine you may have seen some threads on PSU's on the forums, so you know they can die. You should make sure the G5 was not a part of the repair program. Serial numbers in these ranges…
    CK539xxxxxx - CK608xxxxxx
    G8539xxxxxx - G8608xxxxxx
    YM539xxxxxx - YM608xxxxxx
    RM539xxxxxx - RM608xxxxxx
    … qualify (or did a few years ago) for new PSU's as a part of a G5 PSU exchange program.
    The flashing LED (on the front of the case?) doesn't sound good. Check that it happens when not using the UPS.

  • Double clicking on an Icon to display a frame....

    Hi! I have an icon whereby when double clicked on should display a frame. To display the icon, I have it as an ImageIcon placed on a label, which works fine. But my problem now is what kind of listener can I add to this label, if any that will cause this frame to be displayed? OR if you have an idea of going about or around this, I'll really appreciate it!! Thanks a lot in advance!!
    Cheers,
    Bolo

    Thanks a lot again Radish! It worked fine. I got another question, which I hope you'll be willing to answer. Hope I'm not being a pain in the butt?
    After the user double clicks on an icon to display a window(step by step wizard), the panel on the frame contains "back" and "next" buttons. And of course the button on the last panel will say finish instead of next. All of this is working fine. My problem is that whenever I re-launch the wizard, it displays the last panel which contains the finish button instead of the first panel. Do you have any ideas of how I can fix this? Thanks a lot in advance!!
    Cheers,
    Bolo

  • Double click event for the I/O field in custom screen

    Hello all:
        I have development a dialog program now, and I want to show the MM03 screen when I double click the I/O field for material number ( such as the CO03 materil field ). I had set the screen display attribute to " Responds to double-cick",but I can't receipt any infor from the PAI Flow but a message "Please choose a valid function".
       some friends proposed me to set the Function Code for it , but the FctCode only support for "button" and "tab titles" and "Dropdown box" , how can I do.

    Hi,
    Check ur pf-status. in that did u give PICK to the functionkey F2 which will enable the db click facility.
    apart from setting the PF-status with PICK (F2) also set the property "respond to double click" for the tablecontrol column in screen painter.
    and u can get the values of the clicked field by GET CURSOR command.
    Also you can refer:-
    double click from table control?
    Doubleclick in Table control
    Hope this helps you.
    Regards,
    Tarun

  • Unable to double-click or drag/drop files to open.

    I'm running Photoshop CC 64 on a Windows 7 64 machine and am only able to open files in Photoshop by going to File->Open. Double-clicking from Explorer doesn't work and i can not drag/drop files into the open application window or taskbar icon. Right clicking on files and selecting "Open with" also doesn't work.
    I checked file associations and made sure to choose CC 64. If I right click on the shortcut and choose "Run As Administrator" which I have to do in order to get files to open between Lightroom and Photoshop (both need to be Run As Administrator), I'm still unable to open from Windows Explorer. However, if I check the box to "Run this program as administrator" in the shortcut's Compatibility tab, I can double-click to open from Explorer but am prompted with a UAC warning every time. Dragging/dropping into the open app still doesn't work.
    Opening between Bridge and PS works as expected so long as both programs are "Run As Administrator"
    Been searching the forums here and seen suggestions of similar but not the same issue, at least not that I've found.
    Anyone else experiencing? Suggested remedies?

    This is an OS permission problem.  Make sure you have ownership of the HD.  Do a web search on how to check.  External HD can be a problem for permission.

  • Photoshop CS2 will not open to double click in Snow Lepard

    Since loading Snow Leopard I have been unable to open Photoshop files with a double click. Double clicking .psd file opens PS with the message "Could not complete your request because Photoshop does not recognize this type of file." Right click "open with" gets the same result. I CAN open files through the file menu in PS. But, files opened via the file menu and saved as... will not open with a double click.
    The "Open with" in the file info window reads "Adobe Photoshop CS2". Even forcing it to open in Preview and then back to PS CS2, sort of like hitting it with a hammer, does not improve the situation.
    CS2 on and year old dual quad.
    Before you knee jerk a "CS2, what did you expect..." CS2 seems to work fine once open. And I have access to another brand new iMac 24" with CS2 and Snow Leopard that does not have this problem, files open with a double click.
    On my troubled machine the thousands of files in question opened yesterday, pre Snow Leopard. I have found a few PS files that are several years old that do open to a double click.
    Thoughts?

    In a partial answer to my own question...
    I have discovered that the Adobe CS2 files (as well as Illustrator CS2, Microsoft Office X, Silo, etc.) will open with a double click in some cases.
    Files on my main hard drive (Mac pro dual quad with four one terabyte hard drives, Snow Leopard 10.6.1) is a RAID made up of two of the internal terabyte hard drives will not open with a double clip. (They do open via the file menu in the given program).
    But files on non-RAID drives open with a double click as expected.
    It appears that the RAID drive (Apple software RAID) is the culprit.
    It is likely that a simple fix from Apple in the operating system to correct the opening of files with a double click from an Apple sotware RAID drive would solve the problem as the various programs all work fine otherwise with Snow Leopard 10.6.1.

  • Single click in a double click box

    Captivate 3.
    I have two click boxes; one set for a single click and the
    other for a double click. Both have failure captions. When I single
    click in the box set for a double click, nothing happens. It
    appears to be ignored. I would like the failure caption for the
    double click box to display if the user clicks only once inside the
    box. Is this possible?

    Hi jimclennon and welcome to our community
    I doubt you will be able to accomplish this easily. Failure
    captions normally appear when you define a click box area and click
    outside the area. As you are clicking
    inside a click box area, but only clicking once, Captivate
    probably isn't sensing a wrong action is occurring.
    This is something you may wish to submit as a feature request
    for a future version. To do that,
    click
    here and fill out the form.
    Cheers... Rick

  • Show field mara-MFRPN in the MP02 without double click

    Hi all,
    Anyone know how to show field mara-MFRPN in MP02?
    I know that once we enter the internal material, it will show a list of MPNs, but in order to view the vendor manufacturer part number, we need to double click on each of it. How can we view mara-mfrpn in the same screen, means on the 1st screen instead of double click?
    Thanks!

    Hi,
    Check ur pf-status. in that did u give PICK to the functionkey F2 which will enable the db click facility.
    apart from setting the PF-status with PICK (F2) also set the property "respond to double click" for the tablecontrol column in screen painter.
    and u can get the values of the clicked field by GET CURSOR command.
    Also you can refer:-
    double click from table control?
    Doubleclick in Table control
    Hope this helps you.
    Regards,
    Tarun

  • Trying to catch mouse double click

    Using come code in the API 1.3 documentation, I created a JList and am trying to catch when a user double clicks on an item in the list. I have the following snippet of code:
    public void mouseClicked(MouseEvent e) {
    if ((e.getClickCount() == 3) && (e.getSource() == list1)) {
    int index1 = list1.locationToIndex(e.getPoint());
    System.out.println("Double clicked from the left list on Item " + index1);
    When I double click on an item in list1, it prints out the output line twice as in:
    Double clicked from the left list on Item 1
    Double clicked from the left list on Item 1
    How can I get it to run the code only once. I'm not sure why it's running it twice. Any Ideas would be helpful. Thanks....
    Matt Menard

    I've used similar procedure with success in JDK1.3.1. Without seeing the rest of your code, the only thing left for you to experiment with is to call the consume() method if the count is greater than 1. I did notice that Java mouse event handler leaves much to be desired. For example, the mouseentered and mouseexited events kept getting fired even tho the mouse has entered and never leave.
    V.V.

  • JTree Double Click

    Is there any way I can remove the default double click behaviour for a node in a JTree? Currently it expands or collapses the node, but I want it to do something else. I have set a listener up so it can do the new task, but I want to remove the expand/collapse behaviour as well.

    But it isn't....
    With the TreeWillExpandListener I cannot distinguish between the two expansion methods.
    However, I have found another, extremely simple way of doing what I want, using the JTree.setToggleClickCount(int) method. This sets the number of clicks needed to expand the node (but does not affect clicking on the + box). By setting this to a high number, I can prevent double clicks from expanding nodes, thus allowing my own double click listener to do the stuff I need.

  • Desktop folders won't open on a double click

    Hi,
    New to MacBook and just can't figure out why my hard drive, alias etc won't open on a double click from the desktop.
    Thanks

    hi, rlb103 ,
    welcome to the forum.
    it might be that your finder got hung up. then indeed, restart the finder as described by kmac1036 .
    However, the finder should never quit or hang. so, if it is indeed the finder, than this is not correct, and might need more attention.
    There might be another thing: that the "double-clicking-speed" is wrongly adjusted. Got to "System Preferences" (under the apple menu), click "Trackpad", and adjust the "double-clicking-speed". Does it help?
    if it doesn't help, please post back! with more info.
    Thomas

  • Double-clicking PDF file on Mac fails to load PDF

    Using Mac, OS X Mavericks (but the problem has persisted though three versions of OS X and has continued in Mavericks: It is NOT new in Mavericks).
    If Acrobat Pro is already running, double-clicking a file displays an error: The document "xxx.pdf" could not be opened. Acrobat cannot open files in the "Adobe PDF document" format. Clearly, Acrobat CAN open these documents. If Acrobat Pro is not already running, double-click xxx.pdf opens in Acrobat just fine. This has been the cast through three operating systems, and two versions of Acrobat pro. What is up?
    This happens with all PDF files, which all open correctly if Acrobat is not currently running. THe files are not invalid, the file association in OS X is valid, everything works FINE if Acrobat is not already running with a PDF file open when I double-click a PDF file. Since there are a zillion questions about this online, I have to believe it's a continuing problem. It has been a problem for me for several years.
    Any thoughts? -- Ken

    I just double checked and I opened Acrobat XI first then  did ⌘-H to hide Acrobat. Then I located a PDF and Double Clicked.
    I've never had your issue since OSX.2.8 up to OSX.9.0 (Mavericks).  So it’s a problem with your set up or some type of Utilitity , Plugin or extension is interfering.
    I don't know how to tell you how to troubleshoot.
    Try the Following:
    Restart with shift key down
    Then open acrobat.
    Then Hide Acrobat and double click on a PDF.
    If you don't have the problem you have a a Startup Item.

Maybe you are looking for

  • SAP NF-e - GRC10.0 - Dump no Monitor Evento após SP16

    Olá, pessoal. Fizemos a atualização do GRC para o SP16 mas agora estamos tendo erros no Monitor Web do GRC (Especificamente nos monitores de Eventos). Qualquer filtro que façamos nos Monitores Evento ou Monitor Lote Evento, temos o seguinte dump: Inf

  • My iPhone was stolen then my icloud account was hacked and I have the email address it was changed to, how do I report this Gmail user?

    This morning my iPhone was stolen from me, I immediately called it and it had been turned off. So, I went right home to activate the Find My iPhone app on the website so it would call my other contact number. Then going  to my AT&T store I was told t

  • Hard drive too small to hold all my music

    I have an iBook that I got from my aunt for graduation that I am using to load music into my new iPod. Unfortunately there is only a 9 gig hard drive on the computer, so i cannot keep all my music files on it. Is there any way to avoid having all the

  • Connect to SQL Server by using ODBC

    We use ODBC to connect to a Microsoft SQL Server database. We are able to describe and select in Oracle for those tables (in MS SQL) granted to us. However, we cannot select on the views created in MS SQL. Do we miss something? Here is the SQL statem

  • Java file with xml output..

    Hi all, I am executing a java code in the command prompt. It takes input of an xml file and gives the result in the command prompt itself which contains the complete format of soap file... using data.append(line); data.append("/r/n"); Now it shows th