01-28-2009 7:21 AM
hi !!!!
all,
i have an requirement that when press ENTER certain processing is to be done ,
for that i require sy-ucomm for enter
01-28-2009 7:25 AM
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
01-28-2009 7:25 AM
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 .
01-28-2009 7:25 AM
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
01-28-2009 7:25 AM
01-28-2009 7:39 AM
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
01-28-2009 7:53 AM
IF sy-ucomm = ' '.
sy-ucomm = 'ENTER'.
ENDIF.
CASE sy-ucomm.
WHEN 'ENTER'.
your logic.
ENDCASE.
Regards,
Ajay
01-28-2009 8:01 AM
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