Event should trigger when enter is pressed on select option for validation

Hi,
I want to trigger a event when enter is pressed on a select option field for validation.
I have created a select option through coding. I am not able to find out any method or class for that.
please advice.

Hi Sachin ,
     If you want ot use the methods in the class CL_WDR_SELECT_OPTIONS.
You can find here:-
[WDR_SELECT_IPTIONS|https://cw.sdn.sap.com/cw/docs/DOC-20864.pdf]
Check these if can find ur required one.
If you are using any ui element then you can use ON_ENTER event as a action as stated by Baskaran.
Check also if these threads can help you:-
[WebDynpro ABAP select options method SET_VALUE_OF_PARAMETER_FIELD;
[http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60474842-91ca-2b10-3390-d2fd30f335fd]
Thanks & Regards,
Monishankar Chatterjee

Similar Messages

  • Event should trigger when press enter on select option in web dynpro.

    I want to trigger a event for validation when enter is pressed in select option in web dynpro.
    as the select option is created by the coding and there is no method to trigger the event.
    please advice.

    Pls post it ABAP Forum
    Rgds
    Sumanth.Gururaj
    Consultant/Systems Analyst- SAP SD/MM

  • Auto submit when ENTER is pressed?

    Although maybe not a 100% JSF question / answer, I thought this still fitted in this forum...
    What is the best way to get a form to submit when the user presses "enter". I guess it can be done with a javascript, or some code on the backing bean, but I am not sure how to connect the event to the code.
    any help / comments are greatly appreciated!!!
    /caj

    I get the source a i've changed what was said in the page.
    The final result is
    * Created on 09.08.2004
    package org.j4j.components;
    import java.io.IOException;
    import javax.faces.component.UIOutput;
    import javax.faces.component.UIForm;
    import javax.faces.context.FacesContext;
    import javax.faces.context.ResponseWriter;
    import javax.faces.component.UIComponent;
    * @author sim
    public class UIDefaultAction extends UIOutput {
         public void encodeBegin(FacesContext context) throws IOException {
              return;
         public void decode(FacesContext context) {
              return;
         public void encodeEnd(FacesContext context) throws IOException {
              ResponseWriter writer = context.getResponseWriter();
              UIComponent actionComponent=super.getParent();
              String acId = actionComponent.getClientId(context);
              UIForm form= getForm(actionComponent);
              if (form != null) {
                   String formId = form.getClientId(context);
                   writer.startElement("script", null);
                   String functionBody = "var keycode; if (evt){ ;} else if (window.event){evt = window.event; } else if (event){ evt = event; } " +
    "else{ return true; } if (evt.charCode){ keycode = evt.charCode; } else if (evt.keyCode){ keycode = evt.keyCode; } " +
    "else if (evt.which){ keycode = evt.which; } else{ keycode = 0; } " +
    "if (keycode == 13){document.getElementById('"+acId+"').click(); return false; } else{return true; }";
                   String functionCode =
                        "document.forms['"+formId+"'].onkeypress ="+
                        "new Function(\"evt\", \""+ functionBody+"\");";
                   writer.write(functionCode);
                   writer.endElement("script");
    private UIForm getForm(UIComponent component) {
    while (component != null) {
    if (component instanceof UIForm) {
    break;
    component = component.getParent();
    return (UIForm) component;
    compile it a put the generated class on the jar (replace it).

  • Taking a long time when enter in mdse cat hierarchy tab for promotion

    Hi all,
    Need your help again in promotion issue. I have a problem when entered data in discount tab & mdse.cat hierarchy, it takes couple minutes before returns the description. But when entered in discount tab & mdse.catgries, it come instant.
    Any idea what is the cause? How to resolve it?
    Many thank you in advance, really appreciate your sharing.
    Rgds,
    2tea

    Hi Linc,
    No joy.
    I also just upgraded both to Yosemite and am still getting the same issue.
    I user the same username for both macs and when I click on one from the other in the shared section the windows states "connecting" for over a minute before it connects.

  • Home page stays loaded and a bookmarked site comes on side by side on left of screen about 1/3 as wide as home page . first site should disapper when a new bookmark is selecte it is not good.

    home page never disappears when a new bookmark is selected 2 are displayed with home being wider

    The site loading on the left is marked to "Load in a sidebar". If you click on a web page to add a bookmark for that page, it is often so marked. To change that option:
    #Open the Library window (Firefox button > Bookmarks > Show All Bookmarks '''''OR''''' Bookmarks > Show All Bookmarks if using the Menu Bar)
    #*You can optionally open the Bookmarks Sidebar (CTRL+B opens or closes the Bookmarks Sidebar)
    #Locate the bookmark and right-click on it
    #choose "Properties"
    #in the Properties window, un-check "Load this bookmark in the sidebar" at the bottom left
    #click "Save" at the bottom of the Properties window
    #See image at the bottom of this reply
    Also see --> https://support.mozilla.com/en-US/questions/882307?s=bookmark+in+sidebar&r=2&as=s<br />
    Also see --> https://support.mozilla.com/en-US/questions/871800?s=bookmark+in+sidebar&r=9&as=s
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check --> http://www.mozilla.org/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • Issue when reading values of Select-options for Dynamic F4

    Hi All,
    I have provided dynamic F4 help on class name (ESTCAT) and characteristic name (ATNAM). Both are select options with no intervals. The class name should be entered to get the F4 help for characteristic name, else an message would appear to select a class name first. My message is coming when i press F4 on characteristic name without giving any class name. This is correct but if i enter the class name after this message and do an F4 for characteristic name, it still shows the same message which is not correct. The reason is the class name entered is not captured in the FM RS_REFRESH_FROM_SELECTOPTIONS output table and it is captured only if i hit enter after entering the class name.
    Is it possible to get the class name in the FM output without hitting enter or any other way to resolve this issue?
    Thanks in advance,
    Srilakshmi.

    In Flow Logic
    PROCESS ON VALUE-REQUEST.
      FIELD itab-connid MODULE f4_get.
    In Program
    MODULE f4_get INPUT.
      DATA : fnam TYPE string,
             fval TYPE string.
    *         lin TYPE i.
      DATA : BEGIN OF f4_tab OCCURS 0,
             carrid TYPE sflight-carrid,
             connid TYPE sflight-connid,
        END OF f4_tab.
       CLEAR lin.
      GET CURSOR FIELD fnam VALUE fval LINE lin. " This gives the Current Line in Table Control
      DATA : dynpread TYPE TABLE OF dynpread WITH HEADER LINE.
      REFRESH dynpread.
      CLEAR dynpread.
      dynpread-fieldname = 'ITAB-CARRID'.
      dynpread-stepl = lin.  " You need to pass this line Value here
      APPEND dynpread.
      CLEAR dynpread.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname                               = sy-repid
          dynumb                               = sy-dynnr
        TABLES
          dynpfields                           = dynpread
       EXCEPTIONS
         invalid_abapworkarea                 = 1
         invalid_dynprofield                  = 2
         invalid_dynproname                   = 3
         invalid_dynpronummer                 = 4
         invalid_request                      = 5
         no_fielddescription                  = 6
         invalid_parameter                    = 7
         undefind_error                       = 8
         double_conversion                    = 9
         stepl_not_found                      = 10
         OTHERS                               = 11
      IF sy-subrc IS INITIAL.
        READ TABLE dynpread WITH KEY fieldname = 'ITAB-CARRID'.
        IF sy-subrc IS INITIAL.
          SELECT carrid connid FROM sflight
                INTO TABLE f4_tab
                 WHERE carrid = dynpread-fieldvalue.
          CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
            EXPORTING
              retfield               = 'CONNID'
             dynpprog               = sy-repid
             dynpnr                 = sy-dynnr
             dynprofield            = 'ITAB-CONNID'
             value_org              = 'S'
            TABLES
              value_tab              = f4_tab
        ENDIF.
      ENDIF.
    ENDMODULE.                 " f4_get  INPUT
    Regards
    Surendra P

  • Bought an Airport Express in Slovenia, planning to use it in Moscow. When configuring, Moscow is not an option for location. I ticked Ljubljana for set up; got green light, but network not working. Is choice of city the problem?

    While on vacation, I bought an Airport Express in Slovenia, planning to use it in my Moscow apartment. I plugged everything in, seem to have followed the directions properly for configuration - except for one thing.  Moscow does not come up as an option for location. So I tried ticking Ljubljana (Slovenia) as location (since that's where I bought it). The cycle seemed to have worked, I got a green light on the Airport Express, but the network didn't work.  I tried going in to change the location, and chose something called Universal, but the network still didn't work.
    Is the fact that Moscow doesn't come up among the options going to be a problem?  Or is it possible I am doing something else wrong?
    Anyone have any insights? 

    AirPort Utility for the iPhone, iPad, etc does not support the older version of the AirPort Express that you have.
    Try installing AirPort Utility on the Lenovo laptop to see if you can configure the AirPort Express that way.
    If the laptop runs XP SP3 or Vista SP2.....use AirPort Utility 5.5.3 for Windows - Support - Apple
    Windows 7....use AirPort Utility 5.6.1 for Windows 7 - Support - Apple
    Remember that the SB5101 modem must be fully reset before it will associate correctly with the AirPort Express. That means pressing the reset button on the back of the modem (if present) and powering off the modem for at least 30 minutes, then connecting it to the AirPort.

  • How do I make a button activate when enter is pressed?

    Can anyone help me? I'm trying to activate the JButton "BUTconv" below work when someone presses "enter" on the keyboard. I'm using the code below, but every time I try to compile it, my compiler says that "BUTconv" is an unknown symbol, it 'cannot find the symbol BUTconv.' I'm getting extremely frustrated because I define the symbol right before I try to set the accelerator. I've also tried defining the button is below in the comment line and in the class as both a private and public JButton... none of these ways seem to work, they all generate the same error. Please help! Thanks.
    JPanel buttonPanel = new JPanel();
    buttonPanel.setLayout(new FlowLayout(FlowLayout.CENTER));
    buttonPanel.setBackground(new Color(255,230,159));
    //JButton BUTconv = new JButton("Convert");          
    JButton BUTconv;
    BUTconv = new JButton("Convert");
    BUTquit = new JButton("Quit");
    BUTquit.setMnemonic('Q');
    BUTconv.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0));
    BUTconv.addActionListener(this);
    BUTquit.addActionListener(this);

    BUTquit was already defined in the beginning of the code, and the compiler specifically highlights the line:
    BUTconv.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0));
    as the culprit. I tried removing the comments, but it still didn't compile. Maybe I should just try a different compiler...

  • When "Enter" is pressed, all buttons loose highlight

    I have a simple menu with two buttons. Each button is set for the Shape of "SimpleButton". There is a normal, select, and press color state for each button. Each button has it's own asset. When a button is "pressed", ie Enter is hit on the remote, the button goes into press state for a moment, but then both buttons revert to normal state before my track starts. This does not show up when I preview the menu on my computer, only on a set top DVD player (I've tried 3 different ones). I cannot find any info related to this, help would be much appreciated.

    Thanks for the reply. I believe that a yes in correct for your question. The button goes from selected to active, and then for a split second before the track plays, ALL of the buttons go from normal to selected, basically flashing on the screen. Is this normal behavior, it looks very odd?
    Also, this may play a role in this problem, all of the buttons react to the same normal state color setting, whether I've chosen highlight set 1, 2, or 3.
    Is there a problem with me relying on the "SimpleButton" state for all of my buttons?
    The final DVD plays just fine on my computer, just like the preview looks just fine within DVDSP. Put it on a set top and the highlights are bad. Thanks again for any input.

  • JTable, how to read Data from it when enter is pressed

    How to read Data from JTable on Return or lost focus from cell.
    Also please tell me which listener I should should.
    thx for help

    You should read the tutorial about tables, cell editors and models.
    Also you should not [url http://forum.java.sun.com/thread.jsp?thread=472677&forum=57&message=2186815]crosspost
    Mike

  • No POs found when entering with vendor role/contact person for vendor

    Dear colleagues,
    I wanted to post either a GR or an invoice as a vendor, that is, entering the system as the contact person of the vendor, with the vendor role, and searching for the POs created for me as vendor, then selecting one of them.
    However, when searching for POs to post the documents with reference to POs, the report says there are no POs available, when in fact I have created several POs for that vendor in the systems.
    What might I be missing? What are the conditions, rules, configuration steps needed so that the vendor can see the POs created for him and post subsequent documents with the role SAP_BBP_STAL_VENDOR and entering the system as a contact person for that vendor?
    Will award points for helpful answers. Thanks in advance
    David

    Hi David,
    This scenario which you require for receiving P.Os,sending P.O response, posting confirmation and invoice is called
    SUS (Supplier self service) scenario.
    You have to configure this scenario to avail all these services and the vendor should be SUS vendor. A mere vendor role will not allow the vendor to perform all these functions.
    XI (Exchange infrastructure) is required in configuring the SUS scenario.
    Hope this resolves your query.
    Award points for helpful answers.
    Rgds,
    Teja

  • I have 1920x1080 files to edit in iMovie to show on large movie screen for charity event what is best frame rate and best save option for quality versus file size?

    I shoot a lot of HD video of my kid, and at first I struggled to find a good balance between maintaining the full-resolution original footage and having something a little more reasonable and lightweight to work with. For example, even on my one-year-old iMac, I can't smoothly scrub the full HD video clips in the editor -- but if the clips have been 'optimized' to 960 x 540, they're smooth as butter (and still look good enough for almost every output scenario).
    If, when you're importing the original footage, you enable the "Optimize video" checkbox, you'll get the lightweight version in your event library, but you won't get a copy of the orignal footage as well. It'll still be on your camera (or wherever else you put it before heading to iMovie), but that's not very helpful.
    If you're using iMovie '09 (v.8) or '11 (v.9), there's a decent way to do this that isn't terribly obvious.
    So here's what I do:
    When importing the original footage, disable the 'Optimize video' checkbox, and select the 'Move files' radio button. This will move the full HD clip into /[selected volume]/iMovie Events/[event title]. (Or you can use 'Copy files' and get the same end result.)
    Select the new event in the Event Library in iMovie, and go to File » Optimize Video » Large -- 960x540 (or 'Full,' which is still going to be more compressed than the original HD, but at the same resolution; I find 'Large' to be just fine for my needs, though).
    That second step takes the original HD clip that was in /[selected volume]/iMovie Events/[event title] and moves it into /[selected volume]/iMovie Original Movies/[event title], and then puts the optimized version into /[selected volume]/iMovie Events/[event title].
    Now you've got a fully organized directory structure containing all of your original HD footage, sorted by event, plus an Event Library full of nice lightweight versions for quick editing and exporting.

    Thanks for that info! Even in my time answering questions on iMovie Discussion Group, I never had a good understanding of when and how Optimize Movie came into play. I always would import as Optimized and Large Size and figured that was good enough. But knowing you got much, much more flexibility doing it the way you describe gives me a much better understanding of the different routes you can take into the Event Library.

  • How do I get my photos from old 3G or Mac to 4S?  When I go to iTunes no option for photos.

    How do I transfer my photos from my old 3g to my new 4S?  When I sync 4S to iTunes, no option shown to sync photos.  Photos sync to my iPad but not my iPhone. 

    Use shared Photo Stream:
    http://support.apple.com/kb/TS4379

  • Value help for a custom field, ENTER press after selection wanted

    Hi all gurus,
    my requirement is quite simple; in an SRM 7 system, a value help (control table Z_V_EKORG) is associated to a custom (input) field, ZZ_EKORG.
    By pressing the search button on it, some fixed values appears in a list but then, after the selection of a value, no refresh/badi is triggered.
    To trigger a refresh (and passage thru CHANGE and CHECK BADIs) the user is forced to press the ENTER key on the inputfield.
    I'm wondering if there's a way to automatically set an action/event (e.g. ENTER key pressed after input) to the selection from the list; I guess it should be a property of the selection for that value help, but I cannot find explicit information on how to do that.
    Waiting for your suggestions and support, thanks

    Hi Matteo,
    Would recommend you to handle this refresh in the post exit of the WDMODIFY method.
    Regards,
    Murthy

  • Configuring what element gets enter key press in JDialog?

    Hi all,
    In windows applications, some dialogs or windows, have a specific button that gets activated when enter is pressed. E.g. in a JDialog, the OK button would normally be activated when no button had focus. How do you set this to be? Is there some API call to do this? And is there some way to do the same with the escape key, so that cancel will always get triggered when its pressed?
    I just don't want to have to manually add a key listener to each component in the dialog that listens for the escape and enter buttons to be pressed.
    thanks,
    J

    As for the Esc key, there is nothing "out of the box" to do this. I created a JDialog sub-class to handle it, which I use in place of JDialog throughout my app. In the JDialog sub-class, over-ride the createRootPane() method as follows:
        * Overriding this method to register an action so the 'Esc' key will dismiss
        * the dialog.
        * @return a <code>JRootPane</code> with the appropiate action registered
       protected JRootPane createRootPane()
          JRootPane pane = super.createRootPane();
          pane.getInputMap( JComponent.WHEN_IN_FOCUSED_WINDOW ).
             put( KeyStroke.getKeyStroke( KeyEvent.VK_ESCAPE, 0 ), "escPressed" );
          pane.getActionMap().put( "escPressed",
             new AbstractAction( "escPressed" )
                public void actionPerformed( ActionEvent actionEvent )
                   onDialogClose();
          return pane;
       }then, create an abstract onDialogClose() method like the following:
        * This method gets called when the user attemps to close the JDialog via the
        * 'Esc' key.  It is up to the sub-class to implement this method and handle
        * the situation appropriately.
       protected abstract void onDialogClose();Alternatively, you could create a default implemenation of onDialogClose() instead of making it abstract; sub-classes could still over-ride it if they needed custom behavior.
    HTH,
    Jamie

Maybe you are looking for