10-29-2007 7:24 AM
Currently i have a screen to edit the data of my database value.
The data will only change when i press the save icon.
But user normally have the habit of pressing enter whenever they finish typing instead of pressing the save icon.
What should i do so that when user press enter the page will not refresh?
What should i add in the enter function key so that the page will not refresh?
10-29-2007 7:31 AM
Give the same function code to ENTER than to the SAVE icon in your status..
Regards
10-29-2007 7:33 AM
Hi,
there will be a function code attached to the save ikon...
when ever user presses that button then only the changes will be done
check out is there any function code triggering for enter button by doing /H
and immediatley check sy-ucomm
if it is having any fcode then do not make any changes it page
regards,
Venkatesh
10-29-2007 7:37 AM
May be when you know the function code related to Enter command,
you can use that command to check whenever sy-ucomm is equal to that, Raise an Error message and ask the user to press the Save Icon Instead
10-29-2007 7:52 AM
The situation is that i have a list of data to change.
I have type all the data that is to change and i forgotten i press enter button instead of save icon, all the data i have type will gone.
And I need to retype everything again.
So in order not to let that situation happen, i do not want the screen to refresh when i press enter key.
10-29-2007 7:58 AM
Does anyone know is there any syntax to make the page not refresh?
10-30-2007 1:51 AM
Hi all my question is solved!
I found out that whenever i press enter, it will go to PBO again. So the select statement where i retrieve the value from the database in PBO will overwrite the value i change before i press the save icon.
😃