UP AND DOWN ARROW KEY HANDLING IN MODULE POOL PROGRAM

HI GURUS,
I HAVE A STRANGE REQUIREMENT ....I AM DISPLAYING  TWO TABLE CONTROLS IN A SCREEN
WHERE IN THE 1ST TABLE CONTROL IS DISPLAYING ALL THE SALES ORDER NO'S  WHEN ENTER KEY IS PRESSED.
THE SECOND TABLE IS DISPLAYING THE ITEMS FOR THE SELECTED SALES ORDER...
THIS IS HAPPENING WHEN I DOUBLE CLICK THE SALES ORDER NO IN THE FIRST TABLE CONTROL..
NOW THE CLIENT SAYS HE WILL NOT DOUBLE CLICK IT...HE SAYS THAT THE ITEM DISPLAY IN THE SECOND TABLE SHOULD BE DONE WHEN HE USES THE ARROW KEYS..

Yes!
Create a class like this:
CLASS lcl_click_handler DEFINITION.
  PUBLIC SECTION.
    METHODS:
    handle_hotspot_click FOR EVENT hotspot_click OF cl_gui_alv_grid
                   IMPORTING e_row_id e_column_id.
ENDCLASS.             
Write the implementation for this class which meets your needs.
Declare it:
DATA: obj_click_handler TYPE REF TO lcl_click_handler.
Create and use it:
CREATE OBJECT obj_click_handler.
SET HANDLER obj_click_handler->handle_hotspot_click  FOR your_obj_grid.
Regards
Jordi

Similar Messages

  • Up and Down arrow keys handling - ALV

    Hi guys!
    Is there any possibility to handle such events in cl_gui_alv_grid?
    thanks!

    Yes!
    Create a class like this:
    CLASS lcl_click_handler DEFINITION.
      PUBLIC SECTION.
        METHODS:
        handle_hotspot_click FOR EVENT hotspot_click OF cl_gui_alv_grid
                       IMPORTING e_row_id e_column_id.
    ENDCLASS.             
    Write the implementation for this class which meets your needs.
    Declare it:
    DATA: obj_click_handler TYPE REF TO lcl_click_handler.
    Create and use it:
    CREATE OBJECT obj_click_handler.
    SET HANDLER obj_click_handler->handle_hotspot_click  FOR your_obj_grid.
    Regards
    Jordi

  • Up and Down Arrow Keys for  BasicComboPopup

    How do I get the Up / Down Arrow Keys to work with the BasicComboPopup?
    Could someone send me an example, which allows a user to use
    the up and down arrow keys to select items in a BasicComboPopup?
    Thanks: Alex

    How do I get the Up / Down Arrow Keys to work with the BasicComboPopup?With the example that I've provided you at the link shown below:
    http://forum.java.sun.com/thread.jsp?thread=454021&forum=57&message=2069966
    ...it's impossible to trap the keyevents since the combobox is trapping all events! Because the popup's parent is not visible, these events end up in the bits bucket somewhere.
    I'll tell you what you have to do (CAVEAT: it's still a bit tricky for beginner):
    1) Since a JComboBox is already set up to handle all the events that you need, use the BasicComboPopup created for the JComboBox instead of creating a new one like I showed you.
    2) Set the preferred size of the combo box to 0,0 and make it visible (nothing will be actually shown because of the size setting)
    3) set the location of the combo box to the same location of the component for which you want to display the popup to make it easier to show the popup
    Now, the trick is that by nature, an up/down arrow key will fire an ActionEvent and you'll have to somehow disable that or pull some rabbits out of the hat to determine if the actionPerformed is caused by an arrow key, an Enter key, or a mouse click.
    I'm sorta busy right now, so I'll let somebody else who is up to the challenge to tackle the problem for you.
    Cheers,
    ;o)
    V.V.

  • Up and Down Arrow Keys Not Working

    I have had the HP Pavilion g6t-1b00 CTO Notebook PC for a year or two now. I've been having a couple of problems with internet connectivity and putting my computer on "sleep".
    However, few days ago, my keyboard randomly started acting weirdly. When I would try to type certain letter/numbers, they would come out differently. 
    Ex. pressing the space bar would show up " ./M" instead
    I tried restarting my computer many times and installed a BiOS update which fixed all of my issues except for my up and down arrow keys. As of now, they have no function; I can't scroll with them and they don't seem to be taking on the role of another key. I have tried using the keys on different programs. Using the touch pad to scroll works but I still can't use the up and down keys.
    Is there anyway to get the up and down arrow keys to work again?
    This question was solved.
    View Solution.

    Hello Larasoft,
    I understand you’re up and down arrow keys are not functioning, is that accurate? I will do all I can to help you with this issue.
    I want you to access the setup menu to test the keys out, see instructions below.
    1.       Shut down the computer.
    2.       Locate the F10 key across the top.
    3.       When you turn the computer back on immediately start tapping the F10 key repeatedly.
    4.       If successful you should be on setup utility screen. What’s different about this is you can only use you arrow keys to navigate.  
    5.       Try working the arrow keys  up and down on different menus and see if they work.
    6.       Once you tested it press F9 to setup defaults and then press F10 to save and exit.
    If I have been helpful or if you’d like to say thanks you can click the white star under my name to give me Kudos.  I really appreciate it.
    Please respond at your earliest convenience with you results.
    Thanks
    Clicking the White Kudos star on the left is a way to say Thanks!
    Clicking the 'Accept as Solution' button is a way to let others know which steps helped solve the problem!

  • Why am I recently unable to use my mouse to scroll email topics or content?  I can only use the up and down arrows keys to scroll.

    Why am I recently unable to use my mouse to scroll email topics or content?  I can only use the up and down arrows keys to scroll. I am able to use my mouse to scroll through internet searches.  It only seems to have affected my email messages.

    Try a restart.
    Do a backup, using either Time Machine or a cloning program, to ensure files/data can be recovered. Two backups are better than one.
    Try setting up another admin user account to see if the same problem continues. If Back-to-My Mac is selected in System Preferences, the Guest account will not work. The intent is to see if it is specific to one account or a system wide problem. This account can be deleted later.
    Isolating an issue by using another user account
    If the problem is still there, try booting into the Safe Mode using your normal account.  Disconnect all peripherals except those needed for the test. Shut down the computer and then power it back up after waiting 10 seconds. Immediately after hearing the startup chime, hold down the shift key and continue to hold it until the gray Apple icon and a progress bar appear. The boot up is significantly slower than normal. This will reset some caches, forces a directory check, and disables all startup and login items, among other things. When you reboot normally, the initial reboot may be slower than normal. If the system operates normally, there may be 3rd party applications which are causing a problem. Try deleting/disabling the third party applications after a restart by using the application un-installer. For each disable/delete, you will need to restart if you don't do them all at once.
    Safe Mode - Mavericks
    Safe Mode - About

  • Oracle 10g and JAWS -- use of Up and Down Arrow keys

    We are in the process of converting an Oracle 6i application to 10g and applying Accessibility standards to our application so that it will work with the JAWS screen reader.
    The version of JAWS we are using is 7.10.452 Unicode, The Java Access Bridge version required is version 1.2.
    THis problem manifests itself when using the UP and Down arrow keys to move between rows in a mutli-record screen.
    The problem is that on using either the Up or Down key JAWS read the content of the current field before moving to the new record and announcing the prompt and content.
    Has any one got any solution to this.

    Hello Larasoft,
    I understand you’re up and down arrow keys are not functioning, is that accurate? I will do all I can to help you with this issue.
    I want you to access the setup menu to test the keys out, see instructions below.
    1.       Shut down the computer.
    2.       Locate the F10 key across the top.
    3.       When you turn the computer back on immediately start tapping the F10 key repeatedly.
    4.       If successful you should be on setup utility screen. What’s different about this is you can only use you arrow keys to navigate.  
    5.       Try working the arrow keys  up and down on different menus and see if they work.
    6.       Once you tested it press F9 to setup defaults and then press F10 to save and exit.
    If I have been helpful or if you’d like to say thanks you can click the white star under my name to give me Kudos.  I really appreciate it.
    Please respond at your earliest convenience with you results.
    Thanks
    Clicking the White Kudos star on the left is a way to say Thanks!
    Clicking the 'Accept as Solution' button is a way to let others know which steps helped solve the problem!

  • Spacebar,Enter,Delete,up and down Arrow keys are not working...

    Hello Everyone,
    My Hp Laptop has gone through a serious problem. Its Spacebar,Enter,Delete,up and down Arrow keys have stopped working . I am not sure how this problem caused . So i gone  through varios fixes, that were -
    1. Rstoring to an earliar date.
    2. Re-installling Keyboard driver
    3. Formating the System.
    The third fix Formating helped me and my keys started working . After some day I installed a software HP Network Manager but this after installing it again those keys stopped working and also the LED lights on Caps Lock and Wi- fi are not turning on but these two are functioning normally.
    the some of the information related my HP laptop are-
    Model: Pavilion G6
    ram 4 gb.
    OS: Windows 7 Home Basic
    can anyone please suggest me is it a hardware related problem or some software/driver  related ? And also what next i do to fix this serious issue...
    Thanks in Advance.
    This question was solved.
    View Solution.

    Hi Alien004,
    You and Advance23 have pretty much covered everything at this point and I believe that it is a hardware issue. I would advise that you contact HP regarding a possible repair. You can reach HP Total Care at 1-800-474-6836 in North America or start here outside of North America.
    Please click “Accept as Solution ” if you feel my post solved your issue.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Thank you,
    BHK6
    I work on behalf of HP

  • Disabling UP and DOWN arrow keys in JComboBox

    I noticed that JComboBox by default toggles the popup menu up or down when it has focus and the user presses UP and DOWN arrow keys (I am working with JRE 1.3.1). I think this is not consistent with the documented key assignments for JComboBox. But -apart of this- I am trying without success to write a JComboBox extension that ignores UP and DOWN keys.
    Does anyone have any idea? Thanks in advance!

    Hi,
    something like this?:public class MyCombo extends JComboBox {
         public MyCombo() {
              super();
              addKeyListener(new KeyAdapter() {
                   public void keyPressed(KeyEvent e) {
                        if (e.getKeyCode() == KeyEvent.VK_UP || e.getKeyCode() == KeyEvent.VK_DOWN) {
                             e.consume();
    }

  • Up and down arrow keys are not working properly when using SQL CLI on Linux

    Every time I hit up, down, left, and right arrow keys to return to a previous sql command I got ^[[D, please any hints to fix this issue?
    The backspace works fine with me. I tried to use stty to fix this issue with no luck.
    Thanks
    Mohamed                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Which SQL client and Linux version are we talking about?
    Assuming you are using the Oracle sqlplus client... it does not support command line editing and history using the arrow keys. For this to work you will have to install a product called Readline Wrapper. See my answer at the General Database forum:
    sqlplus command line editing

  • Up and Down Arrow Keys Not Functioning in CS2 for Windows

    A little over 6 months ago I purchased Adobe Photoshop CS2 for Windows XP and installed it on my work PC and my home PC. Everything works fine and dandy on my work PC, however when I try to do some editting on my home PC there are some quirks that I can't figure out. The main thing is that my Up/Down Arrow Keys do absolutely nothing. Whether I am trying to edit text and scroll through my fonts or if I'm trying to nudge a part of a picture, the Arrow keys do nothing.
    Does anybody have any suggestions for me?
    Any help would be greatly appreciated.
    Thanks.

    >but that's beside the point.
    it's not. what you describe is typical behavior of a high quality cracked version that's been floating around. a great copy with shrink wrap, nice manuals, etc. but you've been burned. usually the discs are stamped "made in singapore".
    try to get your money back.

  • How to stop record scrolling using up and down arrow key in forms

    Hi ,
    how we can restrict the record navigation using up & down arrow key...
    Thanks & Regards.
    vvm

    write key-up & key-down triggers at form level.
    inside that write the code
    BEGIN
      NULL;
    END;

  • Error handling in module pool program

    hi,
    in module pool program after enabling a field if the user enters an invalid value iam giving a error message.
    message 'something' type 's' display like 'E'.
    then again it should go to the previous screen where the user enters the value for that enabled filed.
    can u guys share some ideas.

    Hi ,
    if it is a ascreen field use the below syntax
    Field <fieldname> module <module_validate>.
    in the module validate write the validation and throw error message ,the screen will be in error position
    if the field is in Table control
    Loop at <table control>.
       chain.
          field <fieldnamemodule <module_validate>.
                                                    "in the module validate write the validation and throw error message ,the screen will be in error position
      endchain.
    Endloop.
    Prabhudas

  • Up and down arrow keys do not work

    Hi Guys...I need your help...
    Since my arrow keys (only up and down) do not work anymore on my iMac (Mac OS X 10.4.11)...No matter in which application...
    I have reset the PRAM since I thought that this may solve the problem without any success...does anyone have an idea how to resolve this problem?
    Have I maybe pressed any shortcut by mistake, which can lock these keys?? It is a pain to work without these 2 keys
    Thanks in advance for the help

    You may have switched on [http://kb.mozillazine.org/accessibility.browsewithcaret caret browsing].
    You can press press F7 (on Mac: fn + F7) to toggle caret browsing on/off.
    See http://kb.mozillazine.org/Scrolling_with_arrow_keys_no_longer_works
    * Tools > Options > Advanced : General: Accessibility: [ ] "Always use the cursor keys to navigate within pages"

  • Why is there no support for up and down arrow keys when scrolling through presets in adobe raw

    seems like it would be common sense to support such a basic function, especially when having to scroll through about 100+ different presets(VSCO Film). We need support for arrow keys so that it may be easier to compare colors much more quickly. Also the support for comparing 2 of the same images would be even more awesome, RAW image on left, and Presets on the right, or compare different presets to one another.

    You can submit it as a feature rquest, then forget about and go back to your life.

  • Doubt in Radiobutton handling in Module-pool program

    Hi Experts,
    I have requirement in where in a module pool screen I am creating two Radio-buttons say R1 and R2 under one group.
    When I do this the first radio button R1 is by default gettimg checked. What is that I need to do for making secand radiobutton R2 by default getting cheked.....?
    Please note that it is in Module-pool not a Report.
    Kindly help me out in this aspect.
    Regards,
    Rama Murthy.P

    Hi,
    You can set check/uncheck value of radio buttons in PBO.
    But that check box button should be declared in main program(se38) also.
    for e.g
    data: R1 type c,
            R2 type c.
    declare above in your main program.
    now go to se51. In layout go to Dictionary/Program fields or press F6.
    Now click on Get from program button and drag R1,R2 to your layout.
    Now right click on it and under convert option you will get radio button.
    In main program under PBO make that radio button check.
    Loop at screen.
    if screen-name = 'R2'.
        R2 = 'X'.
    endloop.
    Modify Screen.
    Regards,
    SUDHIR MANJAREKAR

Maybe you are looking for

  • Mail will not open/stay open

       Every time it try to open my mail it opens briefly then closes and a windon opens that says:  "This application. "Mail" unexpectedly quiit whil trying to restore its wondows.  Do you want to try to restore its windows again"  with option buttons o

  • Fragents and Change Orders

    I'm new to P3. I need to manage a large 2 year public works building construction schedule in downtown Los Angeles, with numerous and frequent changes to the schedule due to change orders, RFI's etc. Of course, these changes result in increases/decre

  • Toshiba Webcam Side by Side Error

    I've got me a side by side error with my Toshiba Web Camera Application. Other forum posts on this issue start out with a request to run sxstrace. Note, I have tried uninstalling and installing the C++ redistributables. Here is the output from my run

  • Displaying name from sub account

    I have set up a subaccount successfully. When I send a new message the From box displays my email, plus my own name.  I do not want my name to show since a number of people will be using the subaccount.  I cannot find a way to edit it out. Thanks Sol

  • Photo book using iphoto

    i have begun to download photos for a new book. however, i need to delete two pages. how to delete these?