Application Development and Automation 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: 
Read only

Handle Enter/Ok Button

Former Member
0 Likes
542

Hi,

In Module pool how to handle the keyboard <u><b>Enter</b></u><b> button</b> Because when i press enter and debug then i get the sy-ucomm value is blank but I have to handle this <b>Enter</b> button. So please send me your reply if u have faced this problem earlier....

Thanks

Prince

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
457

Hi Prince,

In SY-UCOMM take one more case as

when others. It means Your blank value or Enter.

Reward if useful!

3 REPLIES 3
Read only

Former Member
0 Likes
458

Hi Prince,

In SY-UCOMM take one more case as

when others. It means Your blank value or Enter.

Reward if useful!

Read only

Former Member
0 Likes
457

Hi Prince,

Try this,

Case Sy-ucomm.

When ' '. -


> space represents the Enter.

Write ' you pressed Enter'.

Endcase.

Thanks.

Read only

Former Member
0 Likes
457

Hi,

I have Faced this Situation Earlier.

<b>The OKCODE for Enter Button is 'CRET'</b>

U write the code for handling the Ok Button,

CASE SY-UCOMM.

WHEN 'CRET'.

...

...

ENDCASE.

Regards,

Padmam.