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

5 REPLIES 5

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.

0 Kudos

Hi Renjith,

I am using screen dialog more than one Textbox control. For Example I press One Textbox control

it will show Confirmed Qty. and Press another Texbox control it will show workcenter.

But I Put blank always working first text box control.

How do I apply seperate textbox enter key event?

please tell me.

Thanks

S.Muthu

0 Kudos

Hi,

For that you can do If comparisons inside the when.

like:

case sy-ucomm.

when ' ' .

if text1 eq something

do something.

endif...

like that.

Regards,

Renjith Michael.

0 Kudos

You may also check like:

if text1 is not initial.

<logic>

endif.

like that

0 Kudos

Hi Ranjth,

Thanks a lot .. I changed follow ur's way its working now.

ths

s.muthu