Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Store documents in DMS server via ABAP in background

Former Member
0 Kudos

Hello Team,

We are trying to create a document in DMS via ABAP.

We are getting the contents in binary and using GUI_DOWNLOAD to create the document at the required path in the DMS content server.

After that we use the BAPI_DOCUMENT_CREATE2 with the file path to see the document in CV03N.

This works fine when executed via Sproxy but when the actual file is sent via mail , we get a dump for using GUI_DOWNLOAD in the background.

Is there any other way to create the document in DMS content server alone using program, we don't want to store the files in AL11 using open data set.

Thanks,

Vihari

1 REPLY 1

Former Member
0 Kudos

Hello All,

Just did a work around for this.

Create the document in AL11 using open/close data set and used the the BAPI with the AL11 path to create the document in DMS and immediately delete the document in AL11 using delete data set. The documents are visible using in CV03N DMS.

Thanks,