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: 

Do not refresh the page when press enter

Former Member
0 Kudos

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?

6 REPLIES 6

raymond_giuseppi
Active Contributor
0 Kudos

Give the same function code to ENTER than to the SAVE icon in your status..

Regards

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

Does anyone know is there any syntax to make the page not refresh?

Former Member
0 Kudos

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.

😃