cancel
Showing results for 
Search instead for 
Did you mean: 

Webdynpro ABAP: Pop up on exit from a view without saving

Former Member
0 Kudos

Hello All,

we have a requirement to check if there is any unsaved data in my view and upon exit from the view without saving, we should give a pop up to confirm navigation.

How to check if there is any unsaved data in a view and to give a pop up to confirm navigation if there is any unsaved data?

We tried the option of calling popup in WDDOEXIT method of the view. However this was not successful.

Regards,

Aslam

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member184578
Active Contributor
0 Kudos

Hi,

You can achieve this using Context Change Log. SAP Help - Context Change Log (Recording User Entries) - Developing Web Dynpro ABAP Applications - SAP Library

In the WDDOINT method enable the context change log using enable_context_change_log ( ) method. In the onAction of Navigating to next view/exiting call get_context_change_log( ) method which returns internal table with changed data, If the returned entries are not initial (changed) display a popup to confirm.

You can check this document for reference: http://scn.sap.com/docs/DOC-58382

hope this helps,

Regards,

Kiran