Skip to Content
author's profile photo Former Member
Former Member

Not able to close Data lose popup through framework back button

Hi,


I am navigating from Opportunity to another custom OVP using more buttons and this is in custom component. In custom OVP implemented data lose pop up. created method ON_BEFORE_WA_CONTENT_CHANGE and redefine method DO_VIEW_INIT_ON_ACTIVATION. Implemented method IF_BSP_WD_EVENT_HANDLER~HANDLE_EVENT.

When we click on frame work button its navigating to previous Opportunity OVP. From here if I click on frame work back button once again I am getting data lose popup. If I select No its not navigating to Home page. But still data lose popup is showing every time when ever i click on back button. Even if I click on work center also data lose popup is coming if I click yes or No its not navigating to Home page.


Kindly guide how to navigate to Home page when we click on back button in Opportunity OVP from custom OVP.


If i navigate to Opprt and after change if i click on frame work button its navigating to Home page and there is no issue but if come from custom OVP only issue we are getting. here both Opport OVP and custom OVP are dependent transactions process.



Regards

Divya

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Jan 08, 2014 at 04:35 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 08, 2014 at 08:15 AM

    Hello Divya,

    To use breadcrumb "Back" , in DO_DESTROY method of your view set you need

    raise below event.

    RAISE EVENT history_trigger.

    super-> do_destroy.


    You can also check below threads



    http://scn.sap.com/thread/1633999


    http://scn.sap.com/thread/3211345


    Regards,

    Ashik

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2014 at 02:40 PM

    Hi,

    In Cancel there is no code but when i click on Cancel button its navigating to Opport OVP. how to restrict not to navigate? could you guide me please...

    Divya

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.