Hi,
What code you have done in custom OVP ON_BEFORE_WA_CONTENT_CHANGE method.Are you checking changes are done before raising data loss popup?
Before raising popup using data_loss_handler->trigger_data_loss_handling( ) check changes are done or not and in IF_BSP_WD_EVENT_HANDLER~HANDLE_EVENT. method on save and cancel case clear the data loss attributes. CLEAR me->data_loss_trigger_view.CLEAR me->data_loss_trigger_event .and set returning parameter rv_success = abap_true.
In DO_CLEANUP_CONTEXT put this code
SET HANDLER on_before_wa_content_change ACTIVATION abap_false.
Regards,
Deepika.