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: 

Upload a PDF from a Frontend to the DMS system and view it

Eyvind
Newcomer
0 Kudos

Hello, I was wondering if anyone could help me with a task. 

I am supposed to upload a PDF file from my local computer through a frontend solution, Neptune DXP in this case. The PDF should be stored in SAPs Document Management System, and be able to be viewed from any computer.

What is the best way to go about this?

I have tried encoding the PDF in base64 format from my frontend, then storing it in a local table.
From there decoding it to binary and using the output in "BAPI_DOCUMENT_CREATE2".

I would greatly appreciate it anyone could give me a rundown of the best way to do this.
I am able to create the Document in DMS, but unable to open the file.

Thank you, Eyvind

1 REPLY 1

Sandra_Rossi
Active Contributor
0 Kudos

Difficult to tell you how your code is wrong, without code. Where is it? Also, what means "unable to open the file". Do you see its name in the screen, or do you see nothing? Is there an error message when you open the file? NB: the forum is full of ABAP code snippets with "call function 'bapi_document_create2'".