2008 Jan 28 12:27 PM
Hi anybody,
I am developing Screen dialog program.
I want to know how to use enterkey event in Screen Dialog program.
Ex: I enter order number in Textbox I Press Enter Key button it will be show Total Confirmed Qty and Received Qty. in another text box.
How i do?, if anybody know please tell me?
Thanks
S.Muthu
Hi anybody,
I am developing Screen dialog program.
I want to know how to use enterkey event in Screen Dialog program.
Ex: I enter order number in Textbox I Press Enter Key button it will be show Total Confirmed Qty and Received Qty. in another text box.
How i do?, if anybody know please tell me?
Thanks
S.Muthu
2008 Jan 28 12:39 PM
You need to explain your problem more fully.
If you are using an ALV grid then you need to create event handlers
for example
set handler z_object->on_user_command for grid1.
call method grid1->register_edit_event
exporting
i_event_id = cl_gui_alv_grid=>mc_evt_enter.
Then your ON USER COMMAND method will check any toolbar
via a statement case e_ucomm.
If you are using standard SAP just create a status with SE41 and check the function code (sy-ucomm) in the PAI module.
Not difficult --- Bog standard basic abap 101. Plenty of examples in sap help or elsewhere.
Cheers
jimbo
2008 Jan 28 1:09 PM
Hi Jimbo,
I am not using ALV Grid , I am creating new Screen I Put Textbox control.
I key in Order number and press the enter button it will show confirmation and yield qty.
Thanks
S.Muthu
2008 Jan 28 1:20 PM
Hi,
' ' (space) is the default function code for ENTER KEY.
catch it in PAI like:
case sy-ucomm.
when ' ' .
<your logic>
endcase.
Pls reward points if useful.
Regards,
Renjith Michael.