Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to use Enterkey button Event in Screen dialog Program

Former Member
0 Kudos

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

3 REPLIES 3

Former Member
0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

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.