cancel
Showing results for 
Search instead for 
Did you mean: 

Equivalent for SY-DATAR

Former Member
0 Kudos

Hi There,

SY-DATAR in ABAP/DYNPRO tells me that a user has typed in something so i can warn the user if the cancel-button is used. SAP rules this SY-DATAR so i don't have to bother about that.

Is there an equivalent in Web Dynpro for the SY-DATAR in ABAP?

Regards

Bertil Rebergen

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can check if the node which is bound to the table has been changed or not,

using wdContext.node<name>.isChangedByClient()

wdContext.node<name>.isChanged().

Regards

Bharathwaj

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

Just Check whether this link is useful

U can Use work Protect Mode

http://help.sap.com/saphelp_nw04/helpdata/en/21/82a9058fa8de46b1ba7522289345b2/frameset.htm

Regards

Krishna kanth

Former Member
0 Kudos

Hi,

I can not understand the purpose of SY-DATAR. Can you please explain?

If you are expecting something like capturing the event when the user changes an inputField or something of that sort then I believe it is not possible.

Former Member
0 Kudos

Hi Noufal,

I have a view X which holds a grid. This grid contains rows of a table. If I select a specific row to be changed I come up with another view (say Y) and in this view I can change the data of the row I just selected. The view hat for example two buttons a SAVE-button and a CANCEL-button. If I enter some data and use the CANCEL-button I want to warn the user his/her data will be lost!

Therefor I need to know if the user entered data or not, because if he did not enter any data than i don't have to worn him.

In ABAP I have a system field called SY-DATAR which holds a boolean that is set to true if the user has entered data.

Hopefully this clarifies it a little bit.

Former Member
0 Kudos

Hi,

If your webdynpro application is going to run in the portal environment then you can use the work protect mode mentioned by Krishna Kanth.

The following link might be useful for you

http://help.sap.com/saphelp_nw04/helpdata/en/17/76d93f130f9115e10000000a155106/frameset.htm

Regards,

Santhosh.C