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: 

sy-ucomm for enter

Former Member
0 Kudos

hi !!!!

all,

i have an requirement that when press ENTER certain processing is to be done ,

for that i require sy-ucomm for enter

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

try below


if sy-ucomm = space
  do your logic
endif.

it will happen for some scenarios...

and also i aggree with the Amit's post...

Regards!

Edited by: M Prasanth on Jan 28, 2009 8:28 AM

6 REPLIES 6

former_member181995
Active Contributor
0 Kudos

Sy-ucomm for enter is not always fixed.

Just type /H in command bar and press enter than in debug check the value of Sy-ucomm. Than do code accordingly .

Former Member
0 Kudos

Hi,

try below


if sy-ucomm = space
  do your logic
endif.

it will happen for some scenarios...

and also i aggree with the Amit's post...

Regards!

Edited by: M Prasanth on Jan 28, 2009 8:28 AM

Former Member
0 Kudos

its &IC1

Former Member
0 Kudos

Hi,

like what they said you can trace it using debug mode or if it was a custom screen then you can check its GUI status and look for the code for enter in the green check icon.

Regards,

Leonard chomi

Former Member
0 Kudos

IF sy-ucomm = ' '.

sy-ucomm = 'ENTER'.

ENDIF.

CASE sy-ucomm.

WHEN 'ENTER'.

your logic.

ENDCASE.

Regards,

Ajay

Former Member
0 Kudos

Hi,

create one gui status.

Expand function keys.

in standard toolbar options give the function code as 'ENTER' in the first option.

Double click on it. It will ask you for static text or dynamic text.

If you want to keep 'ENTER' function code for any input field then choose DYNAMIC TEXT and give the field

name there.

Choose the option according to your requirement. If you did not get it then do let me know.

Thanks,

Ibrahim