cancel
Showing results for 
Search instead for 
Did you mean: 

documets remain in temp folder after viewing localy in SAP DMS

former_member845166
Active Participant
0 Kudos

hi,

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

Shiv

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello,

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

kind regards,

carl

former_member845166
Active Participant
0 Kudos

hi Carl,,

will you please provide brief info abt how to delete at windows logoff

shiv

christoph_hopf
Advisor
Advisor
0 Kudos

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.

method IF_EX_DOCUMENT_FILES01~AFTER_START_APPL .

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

EXPORTING

filename = l_str_file

CHANGING

rc = l_i_retval

EXCEPTIONS

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.

endmethod.

I hope this solution may help to solve this issue.

Best regards,

Christoph