cancel
Showing results for 
Search instead for 
Did you mean: 

SAP easy DMS

pillay_gavin
Explorer
0 Kudos

Hi SAP Gurus.

I've got a requirement to copy documents stored in Easy DMS to a file system for a 3rd party application.

I understand that the documents are stored in tables DRAW and on the content server, but how, via ABAP, can I move\copy these documents to a mapped filesystem or AL11 directory?

In moving these documents can I also rename them depending on the requirement?

Can WwebDav be used? If so, how?

Thanks,

Gavin

Accepted Solutions (1)

Accepted Solutions (1)

christoph_hopf
Advisor
Advisor
0 Kudos

Hi Gavin,

when I got your requirement right, then you are looking for a way to extract the files from a document info record to a mapped network drive (filesystem).

For this action maybe the "Export Folder" function in EasyDMS could be used or you can Sync the EasyDMS folders to make them offline available.

Another ABAP possibility would be to use BAPI_DOCUMENT_CHECKOUTVIEW. With this BAPI you should be able to create a local copy of the originals in your PC or another directory.

Best regards,

Christoph

pillay_gavin
Explorer
0 Kudos

Hi Christoph.

I'm trying to implement this FM using the application server for the original path, but i get an error message E 26 300 in the return: "The Knowledge Provider is using document type S03 as a storage system".

The S03 refers to the original SAP document type.

I did also try the export folder function from Easy DMS itself but it does not work. I tried to copy and paste from Easy DMS to Windows file explorer and it only seems to transfer the documents in the folder and not any of the hierarchy folders.

Do you know how to resolve?

Thanks,

Gavin

christoph_hopf
Advisor
Advisor
0 Kudos

Hi Gavin,

based on this error message it seems that you have set the flag "use KPRO" for document type S03 in transaction DC10.

In this case it is important that the file data is filled correctly to BAPI table DOCUMENTFILES. For further information please see the documentation of DMS BAPIs which is attached to note 766277.

Best regards,

Christoph

pillay_gavin
Explorer
0 Kudos

Hi Christoph.

It now seems to be working, when using BAPI_DOCUMENT_CHECKOUTVIEW2.

Is it possible to run this in the background, checking out multiple documents at the same time, while somehow maintaining the directory structure? Can this BAPI be used to write to the App server filesysem in AL11 instead of the windows frontend?

Thanks,

Gavin

Answers (0)