cancel
Showing results for 
Search instead for 
Did you mean: 

How to delete old archived documents from SAP Permanently

Former Member
0 Kudos

Hello Everyone,

We need to delete old SAP Archived documents permanently from the Open Text Archive Server. We can run Purge expired Job from Open Text server to delete documents which are older than set retention period, however as per Open Text team before doing that we need to delete the documents from leading application( i:e SAP in our case).

Please let me know how to delete old archived documents from SAP which are no longer required, our permanent storage space is filling up on the Archive server and we need to free space by deleting unwanted archived data.

Regards

Abhilash

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos

Hi Abhilash & Prithviraj,

I'm facing a similar problem. we have many old archive files in Opentext, we want to delete some historical files, but when I try to use SCMS_AO_DELETE to delete the file, it raised error “HTTP error: 403 Forbidden 3060: Document '02F1CD3199E21EEDB2A534C5122D2EB2' is under retention or hold and can not be deleted”

Do you know how to do next ?

best regards,

Alex

pieterhartgerink
Discoverer
0 Kudos

Hi Cheng Jin,

did you ever get an answer to this? I am getting a similar error, even though in OAC3 I did not set a retention period for that document type.

HTTP error: 403 Forbidden 3060: Document retention not yet expired: '000D3AA9B9CF1EDE85CCD04C68F89493' has a retention period

Former Member
0 Kudos

Hi Prithviraj,

Thank you for the above response, i was out of office and hence replying a bit late here.

Archived documents are regularly getting deleted from SAP Database and transferred to Permanent Storage on Open Text Server.

In our present scenario we want to delete old Archived files from Open Text Server which are

no longer required by the client.

Just for example if i check in SARA for Archiving Object ISU_EEIN the files which are deleted from SAP and Stored on Archived Server are in format = "000889-003ISU" . However on Open Text Server the file format are on totally different.

I am looking for a feasibility where we can go to Open Text server and delete corresponding old Archived files which are already deleted from SAP Database and no longer required in permanent Storage. 


Also please be informed that above SCN Post that you have shared suggests to use functional Module SCMS_AO_DELETE. When we execute functional Module it asks to provide the following:-

ARC_ID, DOC_ID & COMP_ID

Can you confirm from where i can get above details in order to try and delete a document.

Regards

Abhilash

Former Member
0 Kudos

Hi Abhilash,

ARC_ID: Is the content repository from which you would like to delete.

DOC_ID: It can be obtained from Table ADMI_FILES for that particular archiving session.

COMP_ID: is optional.

Regards

Prithviraj.

Former Member
0 Kudos

Hi Prithviraj,

I am able to delete Archived file using functional module SCMS_AO_DELETE by providing ARC_ID and DOC_ID values, however when i go to SARI i am still able to find individual document names under the deleted Key for Archive File "000127-001ISU_AMIO(in our case)" for which i ran deletion for program.



When i try to open individual documents on above screen it gives below message that document does not exist which makes sense as we have deleted them using functional module.

Our concern right now is why its still showing all the Parked documents in main screen (Second Screenshot) when we have already deleted document ID associated with Key for Archive file (000127-001ISU_AMIO). Is there any re-indexing\synchronization Job or step we need run or perform in order to refresh the Data at SAP end for Archived records so that it not reading any records for Key for Archive file (000127-001ISU_AMIO) and we can get below desired screen:-

Appreciate your inputs till now, please advise.

Regards

Abhilash

Former Member
0 Kudos

Hi Abhilash,

I guess this how it is...

The same is the situation with SARA.

My last write session was cancelled and due to which one stored file was corrupted can could not be read  further could not be deleted by delete job.

I re-run the write job and everything was OK. But I could still see the incomplete session for that object than I read that you can avoid this. And if required deleted the entire archiving session using BC_ARCHIVE object in SARA. But this will delete all the statistics for that session.

And I guess this should be similar in your case. 

Regards

Prithviraj.

Former Member
0 Kudos

Hi Abhilash,

When you say old archived documents what does this exactly mean?

Archived documents would have been deleted from SAP database before or after storing them on Open Text server, isn't it?

Or you did not delete them while archiving?

Anyway take a look at the thread below if this is what you mean

How to delete archived files by using ABAP? | SCN

Regards

Prithviraj