Skip to Content
0
Jan 18, 2023 at 10:37 PM

How do I upload a document to BTP DMS from UI5 FileUploader, maybe via BTP ABAP environment?

392 Views

I am trying to piece together a way to upload documents from a UI5 app to the BTP DMS, and then pull them back from DMS to view/download. I have the DMS Service Integration Option set up in my BTP subaccount and have set up a repository via Postman.

I am also using the ABAP environment and the application is actually a Fiori Elements app based on ABAP RAP. I am not a big fan of the RAP annotations based file upload for several reasons (document storage in DB, questionable antivirus support, doesn't appear to use a valid UI5 element?, etc.), so am looking for an alternative. I currently have a FileUploader field that works great for selecting the file, but I am missing the connection to get from the file selection in the UI layer to a DMS upload to a document key that I can then send back to my RAP object.

Note that I also have the integration between DMS and ABAP environment via communication scenario SAP_COM_0668, but I've so far found little to help direct how the scenario can be used from ABAP.

Does anyone have any thoughts on how to accomplish such an integration?