Skip to Content

Badi/Exit after closing original in DMS

Hello All,

I came across a requirement that need to display a popup when closing the original after doing changes.

SAP standard behavior: If we click on change original button,original( For eg: Word document) will open to edit ,but CV02N will jump back to the search results.If we open the document again in CV02n,document info record will be unlocked as below

To Avoid this , i need to display a popup ('Document is changed,do you want to Check-in')as soon as original is closed.

To identify BADI in se24 i put a break point and executed the CV02N .

But after closing the original ,break point is not getting triggered.

If some one came across the same requirement earlier,please help me out.


Naresh Bammidi

pastedImage_1.png (41.9 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Mar 13, 2014 at 01:49 PM

    Hello All,

    Below is my requirement,

    My requirement is when i change original and closing the original( eg: Word doc ) then this popup should display.

    We found one standard include in sap system LCV150TOP which is having the code to display the popup.

    We have put the break point and closed the document.But it is not triggering.

    Above requirement is impemented in other country.Below is the functionality.

    DIR screen :

    After click on change original ,Word document is opening

    Edited the document and closed it,one popup is coming as below

    Above popup is coming because of the include lcv150top.

    To achieve this above functionality do we need to implement any SAP Note?

    Please suggest me .



    pastedImage_0.png (43.0 kB)
    pastedImage_1.png (71.3 kB)
    pastedImage_3.png (45.2 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 11, 2014 at 04:22 PM

    Hi Naresh,

    Once you press the 'Change Original' button, SAP opens the document in the corresponding application and exits the transaction CV02N. So after that, when you are making changes to the document or saving it, there is no interaction with the SAP system. That means there no ABAP code running in background. So there won't be any BAdI/Exits available while closing the document or saving it.

    I think its better to have a discussion with the customer and try to find out some other work around.


    Rahul MB

    Add a comment
    10|10000 characters needed characters exceeded

    • Yes Rahul , I tried to find out BADIs by keeping break point in se24.When i close the original no break point is triggering.

      Am using BADI DOCUMENT_MAIN02 to call the to display popup.

      But it is displaying popup when i click on change original button,Not on closing the document.Is there any other alternative?


  • Posted on Mar 11, 2014 at 06:09 PM

    Hi Naresh,

    You could look for some implicit enhancement.



    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Krishana,

      When i debug the code i could find that it is calling one include lcv150top(Standard include).This include is having a local class and method.What i understood is we need to call the above code from some where else or it requires any configuration.

      Please let me know if you get any idea.

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.