‎2010 May 07 5:58 AM
what is the function code for 'enter'. i used 'space' but its working both for scrolling and enter so need function code only for enter. please give me answer.
‎2010 May 07 6:15 AM
Hi,
Please search the forum. This question has been answered many times.
->
The keyboard event 'Enter' does not have a default sy-ucomm or a Function code associated with it.
So, whenever you press Enter, it triggers the PAI (sy-ucomm would be blank).
You can assign a Function code for Enter. Go to the GUI Status of the Screen -> Function Keys -> You will find a icon Enter (the one with the tick mark in a green circular background) -> Assign Function code like 'ENTER'.
Now in your PAI, restrict your code saying
if sy-ucomm = 'ENTER'.
"Logic
endif.
‎2010 May 07 6:15 AM
Hi,
Please search the forum. This question has been answered many times.
->
The keyboard event 'Enter' does not have a default sy-ucomm or a Function code associated with it.
So, whenever you press Enter, it triggers the PAI (sy-ucomm would be blank).
You can assign a Function code for Enter. Go to the GUI Status of the Screen -> Function Keys -> You will find a icon Enter (the one with the tick mark in a green circular background) -> Assign Function code like 'ENTER'.
Now in your PAI, restrict your code saying
if sy-ucomm = 'ENTER'.
"Logic
endif.