cancel
Showing results for 
Search instead for 
Did you mean: 

Deleting documents

Former Member
0 Kudos

Hi Guru's

Kindly let me know step by step how to delete documents in DMS by using TCode:SARA.

Which Archiving Object is to be selected for deleting the documents??

Regards,

Bhanu

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Find the steps for deleting the DIR permanently form Database:

1) Open a DIR in CHANGE mode (whichever document info record you want to delete)

2) Go to Document-> Change Deletion Indicator or Double Click on Deletion Flag and save

3) Now the Document is marked for deletion (green marked on deletion flag will appear)

4) Call transaction SE38 u2013 ABAP Editor

a) Give MCDOKDEL in Program Name

b) Execute (F8)

c) Give Corresponding Doc Type

d) Put X for Test Mode

e) Execute (F8)

f) See which all document are going to get deleted

g) Come back and delete X and execute again

h) All Documents marked for deletion would be deleted.

Regards,

Seema P.

Former Member
0 Kudos

Thank u seema..

Regards,

Bhanu

Answers (1)

Answers (1)

MangeshP
Active Contributor
0 Kudos

Hi Bhanuprakash

Deleting a DIR and Archiving DIR is different thing.

If you want to delete the DIR from SAP Database use this Program in SE38 MCDOKDEL.

Short text

Program for Deleting Documents with Deletion Indicator

Description

With this report (program), you delete all the flagged documents of a selected document type from the data bank. The documents are not archived before they are deleted.

The report allows you to execute a test run. You should start this test run first of all and check the list of documents if necessary.

Requirements

Only those documents that have a deletion flag are deleted.

Documents are not deleted if they fit into the following categories:

Quality assurance agreement or technical terms of delivery

Production resource/tool in work order or routing

Document item in BOM

Output

As a result you receive a list that is divided into two parts:

Part 1: Undeleted documents

This is a list of those documents that cannot be deleted due to their usage.

Part 2: Deleted documents

This is a list of the documents that have been deleted.

These documents have been deleted from the data bank without having been archived.

Note:

If you set the indicator for test mode on the entry screen of the report, then both of these parts of the list will have the heading Test Mode.

If documents are used somewhere or Linked to an object are not deleted.

Also if you want to archive documents which are in SAP DMS then I think CV_DVS.But please confirm.

With Regards

Mangesh Pande

Edited by: MANGESH PANDE on May 12, 2009 9:51 AM