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

documets remain in temp folder after viewing localy in SAP DMS


The wheever user view any docs using cv02n/cv03n the documetns are temporaly stored in user local temp folder.

as the documetns are still there after log off from SAP.

this way imp files are visible to other user.

is there any way to delete the file when we logoff from sap


Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Nov 16, 2007 at 10:03 AM

    Hi Shiv,

    if you are using ECL Viewer or Office Integration for displaying originals in CV02N/CV03N you can use the OLE2 flag which is mentioned in SAP note 741388.

    If you are using an external Viewer (%AUTO%) the OLE2 flag is not working.

    As possible solution I can only offer you the following possibility.

    Some time ago we developed a special solution for another customer

    with the help of an implementation of BADI DOCUMENT_FILES01.

    There exists the BAdI method DOCUMENT_FILES01~AFTER_START_APPL .

    You can have an implementation like this, which might help to solve

    your problem. This deletes the file even when the user is viewing

    the file. So no copy will be left on the PC of the user.


    DATA :

    l_str_file TYPE string,

    l_i_retval TYPE i.

    l_str_file = TARGET_FILE-FILENAME.

    CALL METHOD cl_gui_frontend_services=>file_delete


    filename = l_str_file


    rc = l_i_retval


    file_delete_failed = 1

    cntl_error = 2

    error_no_gui = 3

    file_not_found = 4

    access_denied = 5

    unknown_error = 6

    not_supported_by_gui = 7

    wrong_parameter = 8.


    I hope this solution may help to solve this issue.

    Best regards,


    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 02, 2007 at 12:41 PM


    the easiest way is to delete the content from temp-folder by Windows customizing - clear temp folder when you log-off.

    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.