cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Creating file in DMS

AntonPierhagen
Active Participant
0 Likes
682

hi all

I have an question. At our company we made a flex application for the SAP module EHS.

The goal of this application is to create a notification in SAP with flex.

One of the parts of such a notification are files which belongs to a notification.

We would like to build that part also in flex. We created a screen in flex which upload the data to SAP, and also we have some logic which contains the binairy data of the file within the ABAP program.

This binairy data should be saved as a file within the DMS, but the question is how? I have looked at several function modules and all function modules which i could find, where function modules which needed a filename plus filepath. There was no function module which i could find who could make a file in the DMS with only binairy data.

Does anyone know such function module? of other solution?

And besides this, does anyone know another method to save a file in the DMS if you only have the binairy data in ABAP

kind regards,

Anton Pierhagen

Accepted Solutions (0)

Answers (1)

Answers (1)

christoph_bergemann
Active Contributor
0 Likes

Hello Anton

interesting request really. Ok. This could be worth to go on in "thinking of solutions"

SAP EHS does manage documents to handle compliance issues. to do so you need to perform some DMS customizing. Form "Scratch" in most cases ".rtf" and "pdf" files are supported.. The first file type is related to document type "SBR" and the second on to "IBD". Regarding the "IBD" type there is a standard transaction/process available to do an upload.

The process e.g. described here:

Transaciotn available is here:

Especialy the first proces uses in "BIN" transfer to creat a document in DMS. But in DMS there are(this is my assumption) a number of Function Module available doing the job your are asking for.

A found by "chance" theses "similar" threads:

With best regards

C.B.

PS Please check the DMS Forum of SDN. Could make sense

Edited by: Christoph Bergemann on Dec 9, 2010 9:28 PM

AntonPierhagen
Active Participant
0 Likes

Hi

I have the solution. I can set the data via binary data. But you must be careful what you send with the FM.

Also in the DMS the application type you use for creating a document must be customize in a good manner.

I also had set a document with a path and that is not correct. When i only set the filename. the fm works fine

so this question is solved