on 03-11-2014 4:27 AM
Hi experts
Is there a command to clear the changes trapped in modified cells, called by ON_DATA_CHECK?
This will be useful, if users have made some changes in some ALV cells, but then later on decided to cancel those changes.
Appreciate if you anyone could offer advice.
Thks
Rusyinni
Hi Rusyinni,
If you need to have details of old values and new values for whole application's context. Its a good to make use of the concept: Context Change Log
Please refer the below document
Context Change Log ( Recording User Entries) - Web Dynpro for ABAP
Here, you can use the method GET_CONTEXT_CHANGE_LOG to get the old value and new value of each attribute of a node in the application
Please refer the standaord component: DEMO_CONTEXT_CHANGES
If we have only few tables/few fields data to be reset then it is better to go ahead with Mr. Kiran's suggestion, we need to have a temporary storage of the original data in the component / view level and we can revert back to original values whenever needed.
Hope this helps you.
Regards,
Rama
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Seems there is no method to Undo the changes. Try the below work around:
Let say, you are displaying Flight data in ALV, create an attribute (say gt_flight) of table type in the View . In WDDOINIT method after binding the data to context, set the internal table to the attribute
wd_this->gt_flight = lt_flight.
Now, create a button ( say undo changes), then in on action of undo changes, bind the context node to which ALV is mapped with gt_flight( which contains original/old data ). So that your changes will be undone.
Hope this helps u,
Regards,
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.