Can I execute a code on pressing Enter key?

Hi
I want to execute a piece of code on pressing Enter key, while in a datablock in Query mode
I tried KEY-ENTER trigger but nothing happens.
Is that possible?
Am I asking a nonsense thing?
Thanks in advance
Oscar

no meaning to press enter in query mode. u can use buttons for directly running some other codes instead
Thanks & Best Regards
HuaMin
Please remember to always mark the reply if it's helpful or related to your issue!

Similar Messages

  • Can I execute a Button when pressing "Enter" in an InputField?

    Hi All,
    I have an InputField and next to the InputField, there is a Button.
    Ii would like to have my application executing the Button when the User presses the "Enter/ Return" Button on his keyboard.
    Is that possible? If yes, how??
    Thanks, Johannes

    Hi,
    You can try using OnEnter property of the Input field for your requirement. Assign a method to the onEnter property of the input field and now when the user fills data in the field and press enter the method assigned will be executed.
    Thanks,
    Abhishek

  • How can i select the next column instead of next row when press enter key

    I need to know how can i select the next column instead of next row when i press the enter key.By default ,when i press enter key the next row is selected and the column remain unchanged but I wants opposite that is the row should remain unchanged but column index will changed.
    Thanks to all.

    Well, the right arrow key will already move you to the next column, so the easiest way to do this is to modify the InputMap to have the Enter key invoke the same Action as the right arrow key.
    You can search the forum for my "Table Actions" (without the space) example that will show you how to do this.

  • I need an app or software that records the date/time each time a write something and press enter. This needs to be quick so I can continue writing right after I press enter, and the date/time is inserted for each word. Does this sort of software exist?

    I need an app or software that records the date/time each time a write something and press enter. This needs to be quick so I can continue writing right after I press enter, and the date/time is inserted for each word. Imagine a spreadsheet - each time a write something in a cell and press enter to go into the next cell, I need the app/software to automatically insert the corresponding dat and time. Does this sort of software exist?

    No one here is going to do anything about it. Send feedback to Apple.
    http://www.apple.com/feedback/ipad.html
    Basic troubleshooting steps. 
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 

  • Trigger PAI after pressing enter key

    Hi all,
    How to trigger the PAI event after pressing the enter key on the keyboard. i have a input field and a button on the screen. after entering the value into the field and pressing buttot will take to next screen. But if I press enter key the value is getting cleared. How to trigger the PAI event after pressing the enter key?
    Thanks in advance,
    Dev.

    Hi,
    The keyboard event 'Enter' does not have a default sy-ucomm or a Function code associated with it.
    So, whenever you press Enter, it triggers the PAI (sy-ucomm would be blank) and somewhere in your code the value is being refreshed. You can debug thoroughly to find where the problem is.
    You can assign a Function code for Enter. Go to the GUI Status of the Screen -> Function Keys -> You will find a icon Enter (the one with the tick mark in a green circular background) -> Assign Function code like 'ENTER'.
    Now in your PAI, restrict your code saying
    if sy-ucomm = 'ENTER'.
    "Logic
    endif.

  • Upon Pressing Enter Key in an InputField

    Hi,
    I have an InputField where i have to enter AirlineId and followed by search button
    But my requirement here is <b>
    We have to press Enter key in INputField.Then all the AirLineIds which are there in the database has to be popuped and in that the one which selects has to be placed in the InputField</b>
    Regards
    Padma

    Hi Padma,
                      Create a onEnter event for the input field & inside that create a modal window. For that window u have to create a view also.
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/wd%20java/wd%20tutorials/dialog%20boxes%20in%20web%20dynpro%20applications.pdf">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/wd%20java/wd%20tutorials/dialog%20boxes%20in%20web%20dynpro%20applications.pdf</a>
    In this tutorial check the code for AddressBook(not for external window) .U can use this code
    IWDWindowInfo myWinInfo = wdComponentAPI.getComponentInfo().findInWindows("<window name>");
    myPopupWindow = wdComponentAPI.getWindowManager().createWindow(myWinInfo,true);
    myPopupWindow.setWindowPosition(300,150);
    myPopupWindow.open();
    regards
    Sumit

  • Nokia 5610 new phone hang when press enter key; it...

    Anyone facing this problem? I just brought couple of days only, I found the phone hang when i switch ON it and press Enter key after the PIN code. It looks no response and keep displaying on that screen.
    Solved!
    Go to Solution.

    15-Sep-2008 09:25 AM
    merceleong wrote:
    I sent it to reinstalled the software and it looks ok now but, anyone know for new phone, how long the battery will last? My unit found only two days without playing music all the time.
    Just an advise
    On it's first time fully charge and discharge - vice versa for three times. After that don’t drain your battery every day to 10-20% of its charge. You can actually expect battery problems by draining the battery frequently.
    Roughly every 30 charges, deliberately discharge your battery to 10-15%, and fully charge to 100% afterwards.
    This will help maintain the accuracy of the “fuel gauge” on the device (your battery meter or scale). It has nothing to do with the battery memory but helps maintain the accuracy of the device’s percentage of battery charge left.
    Good luck

  • How to get input values till pressing enter key

    hi!!!
    i need to enter values thru keyboard using bufer reader etc etc
    but i need to stop entering when i press enter key
    how to do this??

    First off I would take a look at this link because it gives quite a few good examples if you've never used scanner.
    You can find all this on the link.-> http://java.sun.com/j2se/1.5.0/docs/api/java/util/Scanner.html
    in order to use scanner you have to import it.
    import java.util.Scanner;then inside your main method you need to create a scanner wrapped around the keyboard inputstream.
    Scanner userIn = new Scanner(System.in);take a look at the api to decide which method you want. For this I would suggest nextLine().
    also I would specify that you want the numbers separated by spaces or comma's or something so you can use the String.split(" "); method which returns an array of Strings;
    then traverse through the array of strings and convert them to ints
    http://www.rgagnon.com/javadetails/java-0004.html

  • How to submit a form by pressing enter key

    Hi,
    I'm having a problem..............i have a form having text field and a button created using struts html tags..........when user enters the value and presses the button then the value is being taken...........
    but if the user enters the data and just presses enter key the form refreshaes but value is not submitted.............
    the button is created using <html:submit >tag.............can any one pls help me out with this???????????

    <script language="JavaScript">
    <!--
    var isNav, isIE
    if (parseInt(navigator.appVersion) >= 4) {
    if (navigator.appName == "Netscape")
    isNav = true
    else
    isIE = true
    function showKeyValue(evt) {
    var keyValue
    if (isNav)
    keyValue = evt.which
    else
    keyValue = window.event.keyCode
    /*status = keyValue*/
    if (keyValue == 13) {
    javascript:validateForm();
    return false
    </script>
    in the field call this method
    onKeyPress="showKeyValue(event)"

  • MODULE POOL WHEN WE PRESS ENTER KEY IN A TBL CONTROL THEN CURSOR GO TO FIRS

    DEAR ALL,
                    IN MODULE POOL WHEN WE PRESS ENTER KEY IN A TBL CONTROL THEN CURSOR GO TO FIRST INPUT/OUTPUT BOX  I WANT THE CURSOR WILL STAY ON THAT TBL CONTROL COLUMN.
      PLZ TELL ME HOW I CAN DO THIS.
    THANKS
    SHASHI
    Moderator message: no upper case please, search for available information before posting.
    Edited by: Thomas Zloch on Mar 11, 2011 11:50 AM

    Hi,
    This is possible only for check boxes and radio buttons.
    for others you atleast need to double click.
    please note double click is possible.
    regards
    Ramchander Rao.Krishnamraju

  • In the address bar where type the address of the web site at the top. after entering the address i press enter key from the keyboard but it does'nt work there . Means the page is not navigating towards the address. Kindly solve the problem

    In the address bar where type the address of the web site at the top. after entering the address i press enter key from the keyboard but it doesn't work there . Means the page is not navigating towards the address. Kindly solve the problem

    This issue can be caused by an extension that isn't working properly.
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * [[Troubleshooting extensions and themes]]
    In Firefox 4 you can use one of these to start in <u>[[Safe mode]]</u>:
    * Help > Restart with Add-ons Disabled
    * Hold down the Shift key while double clicking the Firefox desktop shortcut (Windows)

  • RE: PRESSING ENTER KEY TO MOVE TO A NEW LINE INSTEAD OF SENDING TEXT MESSAGE ON Q5

    I'd rather use the enter key to move to a new line than to send message. I previously used this on curve 9300 and I'm frustrated right now I'm unable to figure how to move to the next line on this Q5. I thought the Q5 will be an improvement on the curve. I'll will be disappointed if there is no way about this. Can somebody help please?
    Solved!
    Go to Solution.

    Hi curio
    From Blackberry Hub, tap three dots at bottom right > Setting > Text Messages > Use enter key to send > OFF. It will make a new line if you press enter key.
    • Click Likes to appreciate those who helps you
    • If your issue solved, mark the best post in your thread as Solution

  • Document addition on pressing Enter Key

    Dear all,
    I want to know whether it is possible to restrict document addition by pressing Enter Key at first time.
    What i want is if user press enter key for first time to add document the system should generate message as generated in Invoice  so that document is added after message.
    This is because many users are use to legacy system where they regularly press enter which creats error in new system.
    Is it possible ..??
    swap

    There is an add-on called B1UP.
    It has so many cool features.
    When you press enter it takes you to the line level and does not add the document.
    Thanks,
    Joel

  • Pressing Enter key twice should submit the form

    I am trying to enter the chinese characters in the text box, chinese chracters will become a whole word only when we press the Enter key. But after entering a chinese character , if I press the enter key then the form got submitted. Instead the form should get submitted only when we press Enter key for the second time.
    Is it possible with Javascript?

    karthi23 wrote:
    I am trying to enter the chinese characters in the text box ...Where? An Java application? Your browser?
    Is it possible with Javascript?This is a Java forum. JavaScript and Java are two completely different things. You better find a JavaScript forum to ask this question.

  • Clearing the TextArea texts when I press Enter key

    How to clear the texts that I have typed into the TextArea when I press Enter Key?
    I have now added a TextArea instance called input_txt to the stage and added an component event listener to detect when I press enter key. Then an event fires up which first reads the input to a string variable.
    But next I need to automatically clear the texts in the TextArea.
    How to do that?
    function readInput(event:Event):void
        input = input_txt.text;
        trace(input);
        // removing texts in the text input area-------- how?
    input_txt.addEventListener(ComponentEvent.ENTER, readInput);
    Please help.
    Thank You

    ComponentEvent.ENTER occurs before the line feed is added to the text, and is not cancelable, so you'll probably need to set a flag and do the clearing in an Event.CHANGE handler. Something like this:
    import fl.events.ComponentEvent;
    input_text.addEventListener(ComponentEvent.ENTER, readInput);
    input_text.addEventListener(Event.CHANGE, changeHandler);
    var clearing:Boolean=false;
    function readInput(event:Event):void
        input = input_txt.text;
        trace(input);
        clearing=true;
    function changeHandler(event:Event)
    if(clearing)
      input_text.text="";
      clearing=false;

Maybe you are looking for

  • How to get top 11 values per date range

    I want to get the top 11 values by date range. Sample Data CREATE TABLE SAMPLE_DATA     DOMAIN_NAME VARCHAR2(100),     QTD         NUMBER,     LOAD_DATE   DATE -- Insert BEGIN   FOR lc IN 1..20   LOOP     FOR ld IN 1..30     LOOP       INSERT       I

  • Payment Block at the time of FB60

    Hi I want to have payment block flowing directly in FB60. I shud not enter manually So what i did: I went to OBA3. There i defined tolerance group and i gave payment terms as 0002 In that payment terms, i have given payment block key A But when i did

  • Can you change the search engine in iPad Safari?

    iPad Safari is set to use Google in the upper right search field. Can you change to another search engine other than Google like you can in regular Safari on or Macs?

  • Customer Interest indicator

    hi, we are taking FD from customer..we are having different interest plans..how to manage the different interest indicator for same customer..can we map this process through different special GL indicator..??

  • Transparency flattening & Acrobat 5 compatibility

    I'm guessing the answer is no, but I'll ask anyway: Is there any way to flatten the transparency in a file and still export it with Acrobat 5 compatibility?  I'd like to flatten the file to reduce the PDF size, but I need the interactive elements tha