Application Development and Automation 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: 
Read only

Checking Screen Field Data Change

Former Member
0 Likes
3,532

Good Morning,

I need to check if a Screen-Field Data as changed. Well, i can do this by storing the field data Before Output and checking if the value is the same After Input.

Is there any other way? For example... Any system variable, or screen variable which stores some flag (or similar) which is activated when the screen field data is changed?

Best Regards,

Pedro Gaspar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,398

check the variabe <b>SY-DATAR</b>

5 REPLIES 5
Read only

Former Member
0 Likes
1,399

check the variabe <b>SY-DATAR</b>

Read only

0 Likes
1,398

Thank you for your answers.

Ok, sy-datar gives me the info that one field screen as changed, it doesn't tell me which.

That's fine by me, since i can store the previous value, and check the next.

In order to know which field as changed this is the only way, correct?

Best Regards,

Pedro Gaspar

Read only

0 Likes
1,398

Yes thats the only way.

Ple reward and close thread if solved

Message was edited by:

Chandrasekhar Jagarlamudi

Read only

Former Member
0 Likes
1,398

hi Pedro,,

use the system field <b>SY_DATAR</b>

If SY_DATAR is initial, there is no screen field change, else there is

a change done on the screen.

Hope this helps,

Sajan Joseph.

Read only

Former Member
0 Likes
1,398

Hi,

Use the system field SY-DATAR, to know whether data in screen has been changed.

Regards

Bhupal Reddy