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

Event on close Browser to unlock Data

Hi experts,

I have an OVP Floorplan and the problem is, that by closing the Browser, all Data Locks remain in SM12.

Is there an Event or Method called before closing the browser or how can I Unlock the Data?

I've red, that the Method WDDOINIT of the Application Component Controller is called, but how can I access this Method.

I have Feeder-Klasses for the UIBBs and an Assistance Class for the Application Component Contoller, but there is no Method WDDOINIT in this Assistance Class!

Thanks and regards,


Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 11, 2014 at 06:37 AM

    Hi Katrice,

    thanks for you reply.

    We have already a custom close button but the application is embeded in Browser so many user close the application by pressing the close browser button because for them this is intuitiv. If there is no handling for this situation, we collect Data Locks in SM12.

    Any ideas to solve the problem?



    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 11, 2014 at 05:20 AM

    Hi Sebastian,

    WDDOINIT( ) method will be present in webdynpro component but not assistance class.And on click of CLOSE browser button we dont have event/control that trigger's because it is browser button.

    The other work around will be "Give one custom CLOSE button on your screen and you can have control/event raised on click of that custon CLOSE button".

    And in corresponding event of custom CLOSE button, you can unlock the data using this below FM.

    DEQUEUE_E_TABLEE(Release lock on object E_TABLEE).

    Hope this might give you an idea,else revert back.



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 29, 2015 at 09:43 AM

    Hello Sebastian,

    I solved the browser close problem enhancing the class CL_FPM, to release locks/resources (since the exit event is not propagated from WD to FPM). To do this our own methods have to be called somehow before framework is releasing resources in method DELETE of class CL_FPM.

    The steps required to reach this:

    • Create an enhancement of class CL_FPM
    • Add a new member table attribute f.e. mt_zzcallbacks table to class CL_FPM
    • Add a new public instance method f.e. zzregister_callback to class CL_FPM, to put any class instance and method to the table above, from your own classes.(Methods added should not contain any obligatory parameter and has to be of type instance public also)
    • Create a pre-exit of method delete of class CL_FPM and loop over the callback table calling the methods dynamically (catch the following exceptions: ABAP Keyword Documentation).
    • Put your code to release the locks/resources into the registered callback methods (it will be called exiting the application )

    This works when user closes the browser/tab improperly.

    Of course you can provide a possibility to close the application using a button, where you can do additional checks etc, data loss notification etc.

    So if you use a Close button with event FPM_CLOSE (doing checks etc. ) and releasing your locks also handling the event FPM_CLOSE, then you can create a new method in class CL_FPM to deregister the method from the callback table, since you did free already and not necessary to do it again using the callback.

    Kind regards


    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.