Follow upto 19 steps provided in the link- Data Loss POP UP – FPM OVP Application
Go back to the feeder class & add the new interface- IF_FPM_GUIBB_FORM_EXT
Create two attributes as shown.
Go to the flush method.
FLUSH method provides parameters which says if some field data are changed or not. IT_CHANGE_LOG stores the fields changed value. Put the below code.
So if any field is changed GV_CHANGED is set to true.
Go to the NEEDS_CONFIRMATION method.
put the below code.
Put break points .
Test the application.
Changes some field value and [lets the user forgets to save the data & did some other operation ] click Other button.
IT_CHANGE_LOG carries the change log information.
Here we have a customized data loss popup screen.