How to get "double click" as an event in Module Pool

Dear Experts,
Being new to ABAp, I am struck in a problem.
I want to get double click as an event in my module pool program.
On the screen I have two input/output fields. The attributes of them are as below:
1) 1st I/O field Attributes:
Name: WA_AUFN-A
Dropdown: List box
Display: Resp. to DblClk = Checked
1) 2nd  I/O field Attributes:
Name: IT_AUF-A
Dropdown: No drop down box
Display: Resp. to DblClk = UN- Checked
I get some data populated in 1st I/O field in list display.
My Requirement:
As I select one of the data from the 1st I/O field and double click on it, then what I want is that the same selected data
should appear in the 2nd I/O field.
So I want to know how can I capture "Double click as an event".
Can any1 help me out.
Regards
Chandan

Hi Chandan,
below is the explanation.
for example if u have 2 screen fields VBAK-VBELN & VBAK-VKORG.
VBAK-VBELN has some value say 1000. based on this one u have to fill VBAK_VKORG.
Data: l_f_field like HELP_INFO-DYNPROFLD,
        l_f_value like vbak-vbeln.
case pick.
GET CURSOR FIELD l_f_field.
with this u will get to know on which field user is double clicked. so, in this case l_f_filed will have a value of VBAK-VBELN
if l_f_field = ''VABK-VBELN' and
  l_f_value = '1000'. "this is optional, based on ur requirement
VBAK-VKORG = '0780'. "fill here
endif.
endcase.
Let me know if it is not clear.
Regards,
Prasad

Similar Messages

  • How to get "Double-click to edit" behavior in fields added to Master slides

    Hi! I edited a master slide to add a box of Placeholder Text. Now the word "Text" appears whenever I make a new slide (child of the master), which is fine. But if I don't change the text on a particular slide, the word "Text" shows up there when I run the slideshow. This is different from the behavior of the Apple-defined placeholder text, where the phrase "Double-click to edit" does NOT appear when you run the slideshow.
    I've searched the help files and tried various Inspector settings, but cannot seem to get this wonderful timesaving feature working for my own Master Slide fields. Is it possible?

    I was just looking for a solution to this... how timely! The closest I found to being able to have an "apple-defined placeholder" is by following all your steps (editing master, making new text box), but then doing the following:
    1) select the text box
    2) go to the "Format">"Advanced" menu and select "Define as Text Placeholder."
    This isn't the same, since the text will always show up on the slides (as opposed to only showing up if YOU wrote something in the box... you can delete it if you want, but its not the same as apple's default), but it does have the functionality you want. I hope this helps you!
    EDITED TO ADD:
    ...aaaand the age-old trick of reading the manual works again. Go to page 188 of the linked document and you'll see that there's a different way to do it. In short:
    1) Make a text box in a master slide, keep it selected.
    2) In the Inspector, go to "slide inspector" (second from right), and select the "appearance" tab.
    3) Check the checkbox next to "Define as Text Placeholder." Assign it a tag.
    For me, I found that once I did this, I could delete the text inside the textbox and it wouldn't automatically be deleted. I assume that assigning it a tag has something to do with that. I still don't know how to get text to automatically show up in the textbox... that seems to be a special functionality reserved for the apple-defined boxes. Again, I hope this helps!
    Message was edited by: Eliezer Kanal

  • How to get the cursor position from screen in module pool program

    Hi,
    I am doing the module pool program, I have one table control in one screen.
    I have to give functionality to the user that when the user enters first record in the table control and after filling the last field
    when he presses enter the cursor will have to come in the starting field of the second record.
    I know the logic , but i m bit confused.
    Can any body help me to solve this....
    thanks

    Hi,
    Check this code,
    Write it in the PBO
    MODULE SET_CURSOR_WERTKONTRAKT.
    MODULE SET_CURSOR_WERTKONTRAKT OUTPUT.
      PERFORM SET_CURSOR USING 'VBAP-ZWERT'.
    ENDMODULE.                 " SET_CURSOR_WERTKONTRAKT  OUTPUT
    FORM SET_CURSOR USING US_FELDNAME.
      DATA: DA_TFILL LIKE SY-TFILL.
      DESCRIBE TABLE IVBAP LINES DA_TFILL.
    FCODE 'Create Position':
    ==> Cursor to the first free line set to make the new position
    Can be created directly
        IF DA_TFILL EQ 0.
          SET CURSOR FIELD US_FELDNAME LINE 1.   -> set cursor position
        ELSE.
          SET CURSOR FIELD US_FELDNAME LINE 2.
        ENDIF.
    Product proposal actively
    Set ==> cursor in the first row
      IF DPP_ACTIVE   EQ CHARX AND
         XVBAP_UMFANG_OPV IS INITIAL.
    in the 'target volume' if available
        IF KOPGR_MIT_ZMENG CS TVAK-KOPGR.
            SET CURSOR FIELD 'VBAP-ZMENG' LINE 1.
            EXIT.
        ELSE.
    Else in the field 'Order quantity'
          SET CURSOR FIELD 'RV45A-KWMENG' LINE 1.
          EXIT.
        ENDIF.
      ENDIF.
    Hope it helps you,
    Regards,
    Abhijit G. Borkar

  • When I open up iphoto and click on the events tab then double click on an event, it used to show minis of all the photos in that event.  Now it shows only one photo at a time.  How do I get it back? Can you help?

    When I open up iphoto and click on the events tab then double click on an event, it used to show minis of all the photos in that event.  Now it shows only one photo at a time.  How do I get it back? Can you help?

    On the bottom bar of the window (on the left iPhoto 11, on the right in other versions) note the slider. Drag it left.
    Regards
    TD

  • How to handle double click event in a text control

    Hi,
       Will u please send me information on handling double click events inside text control and also about locking and unlocking of DB tables for updation.
    Regards,
    Praba.

    Hi Prabhavathi,
    Here is how you handle double click events in Textedit control.
    1)Create a custom control in screen (say TEXT_CONTROL)
    2)In main program,
    a) Declarations:
    data: obj type ref to cl_gui_custiom_control.
          text type ref to cl_gui_textedit.
    b) Create the instance of custom container
    c) Create the instance of textedit control.
    3)Now to handle double click events , create a local class as follows.
    class shail_event definition.
    public section.
    methods:
    handle_doubleclick for event dblclick of cl_gui_textedit .
    endclass.
    class shail_event implementation.
    method handle_doubleclick .
    here do the coding for handling the double click.
    endmethod.
    endclass.
    4) Create an instance of the handler class(ie.ZSHAIL_EVENT).Let it be named hand.
    5) Define varibles for event.
    DATA: i_events TYPE cntl_simple_events,
          wa_events TYPE cntl_simple_event.
    SET HANDLER hand->handle_doubleclick for text.
    wa_events-eventid = cl_gui_textedit=>event_double_click.
    wa_events-appl_event = 'X'. "This is an application event
    APPEND wa_events TO i_events.
    6)
        CALL METHOD texte->set_registered_events
          EXPORTING
            events                    = i_events
          EXCEPTIONS
            cntl_error                = 1
            cntl_system_error         = 2
            illegal_event_combination = 3
            OTHERS                    = 4.
        IF sy-subrc <> 0.
         MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    These are the basic steps needed for handling events in Textedit control.You can go to SE24 and type CL_GUI_TEXTEDIT to find the associated events of the class.
    If you want the program, kindly send your mail-id so that I can mail it to you.
    Regards,
    Sylendra.

  • How to handle double click in a table control?

    Hi,
    Can any one let me how to handle double click event in a table control in dialog programming?
    here i need to navigate to another screen when user double click on the table contols (emp number column).
    thanks in advance,
    PrasadBabu.

    to define double click in your table controlwhich is similar to 'PICK' function. Enable F2 in PF-status for this
    Table Control Question
    Check the above thread which was posted recently on SDN, please award points if found helpful

  • When I double click on an event, shows large photo rather than All photos

    I don't know what I did to cause this, but somehow, when I double click on an event, it magnifies the particular photo my mouse is on, rather than opening up all of the photos in the event. How can I change this so when I click on an event, all the photos in the event appear?
    thanks very much.
    collintowne

    Quite iPhoto
    in the finder under your user account ==> library ==> preferences and delete com.apple.iphoto.plist
    launch iPhoto - your preferences will be reset to the iPhoto defaults
    LN

  • How to have double click on trackpad in Lion?

    I am not sure how to enable double click on trackpad in apple as i am used to?

    In the Trackpad option of System Preferences, just select Secondary click in the Point & Click panel, then you have choice between different options.

  • How to avoid double-click to click-box

    Hello,
    until now I did not find a solution for this problem:
    I have created a training course for a specific application, and in this coure are some click boxes on which the user should click. On many click boxes should the user click only once but if he double-click the click box, in real application nothing happens. There is only one way to succes the action - one click. But in captivate when the user double-click the click box instead of one click it evaluate as success action (the click box is set only to one click, double-click checkbox is not checked).
    So my question is, is there any way how to avoid double-click in cases where the user should click only once? Or in case he double-click the click box to show failure caption?
    Many thanks.
    Lukas

    Hi all
    Interesting thread. Unfortunately, what would be needed here is some sort of a widget that would run some internal timer. Sure, you can try multiple Click Boxes and configure one with a Single Click and one with a Double Click. But the problem with that (as I see it) is regardless of what you might try, the Single Click will win out every time. Thus you would need a widget of some sort that would "listen" for a Double Click and respond appropriately.
    Tough call... Rick
    Click here for Adobe Authorized Captivate and RoboHelp HTML   Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

  • I'm using imovie 10.0.3 with OS x Version 10.9.2.  or some reason I can't double click on iphoto events to siadplay the pictures within that event. I've rebuilt my iphoto library, but nothing seems to work.  Any help would be appreciated.

    I'm using imovie 10.0.3 with OS x Version 10.9.2.  or some reason I can't double click on iphoto events to siadplay the pictures within that event. I've rebuilt my iphoto library, but nothing seems to work.  Any help would be appreciated.

    Hello All,
    Also no answer but am having the same problem.  All my catalogueing via folders is up in smoke and no external HDs (where I would normally directly store raw footage when importing) showing up on the iMovie interface.  It is a pain the arse to go back to the earlier version - why APPLE, pray tell, do you continue to lower expectations user-friendly functions. Shall try the option+open for a library but this too is extremely inconvenient if it works like iPhoto because you have to log out to log in to a new library whereas I just want to be able to see my multiple HDs directly from the iMovie menu and then the folders within folders I have layered in there - to make it easy to FIND STUFF. Wake up Apple, you are NOT meeting your customer's needs or desires.
    Thanks to the posters who are helping the rest of us lost in the dark with possible solutions - free fix-its for Apple which they don't deserve.

  • How do I double-click with a track-pad?

    I'm new to Mac, and I just bought a beautiful new Apple MacBook laptop. I'm trying to install academic version of Adobe Photoshop 6 (this disk of software was originally made for PCs but I hear it's possible to make it work on a MacBook as well. My question is, how do I double-click with a track-pad, like in order to install new software from actual disks? I'm a multi-media artist and student, among other things. Thanks!
    Apple MacBook   Mac OS X (10.4.4)  

    Hi -
    Double clicking is done by going to System Preferences/Keyboar and Mouse/Trackpad and then selecting the action you'd like.
    However, PS 6 will be more of a task!
    If it's a Windows disc then you'll need to install a Windows XP on your Macbook either through Parallels or Bootcamp.
    Perhaps another 'Mac Friendly' graphics program might be more suiting if you'd like to stick in with the Mac OS X enviornment. Check out these apps....
    http://pure-mac.com/graph.html
    btw, Bootcamp is free!
    Macbook 1.8-)   Mac OS X (10.4.8)   Week 38 base model w/1G Ram

  • I am having trouble with my iphoto. I can't print from there or do much of anything. When i double click on an event it doesnt open. Any suggestions?

    I am having trouble with my iphoto. I can't print from there or do much of anything. When i double click on an event it doesnt open. Any suggestions?

    ~/Library/Preferences/com.apple.iPhoto.plist
    ~ = your home folder
    Here's a picture
    Chris

  • How to capture previously clicked button(previous event)?

    Hi guyz,
    I have frame in which i have different panels. I would like to capture the last clicked button. My objective is to bring a pop-up box(dialog) when anything other than a specific button is clicked in one of the panels. So, i would like to know if i can see what button was clicked previously. Does anyone know?

    How to capture previously clicked button(previous event)?Store it somewhere and then you can use it later:
    ActionListener previousActionEvent;
    JButton b = new JButton();
    b.addActionListener(new ActionListener(){
       public void actionPerformed(ActionEvent evt){
          previousActionEvent = evt;
    });

  • How to get Driver and url names from a connection pool

    Hi,
    How to get the DriverName and URL from an existing pool, If I know the name of
    connection pool ? Is it possible to know the name of related pool , if I know
    the name of datasource?
    Thx
    Manish

    hi
    there are 2 ways:
    url must be: jdbc:weblogic:pool[:connectionPoolID]
    or
    jdbc:weblogic:jts[:connectionPoolID] (if you want to use jts with your JDBC connection.)
    see http://e-docs.bea.com/wls/docs60//javadocs/weblogic/jdbc/pool/Driver.html
    However, I think it is safer to configure and use DataSource to get connection.
    Nicolas
    "kumar" <[email protected]> wrote:
    >
    Hi,
    How to get the DriverName and URL from an existing pool, If I know the name
    of
    connection pool ? Is it possible to know the name of related pool , if I
    know
    the name of datasource?
    Thx
    Manish

  • Can we use Initilization event in module pool program?

    Hi All,
    Can we use Initialization event in module pool program? If not why?
    Thanks In Advance!!!!!!!!!

    The runtime environment creates the INITIALIZATION event and calls the corresponding event block (if it has been defined in the ABAP program).
    http://help.sap.com/saphelp_nw70/helpdata/EN/fc/eb2d67358411d1829f0000e829fbfe/content.htm
    SEE THE ABOVE LINK...THINK IT WILL SOLVE ALL YOUR DOUBTS
    REGARDS
    RACHEL

Maybe you are looking for