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: 

How to upload document and connect it to a debitor?

Former Member
0 Kudos

Hi all,

I would like to upload documents (e.g. PDF-documents) from a java application to SAP and connect the uploaded document with a debitor.

Is there an function module for this purpose?

I already searched for a FM or some hints but found nothing concrete yet. I know that there is SAP ArchiveLink, but I have never worked with this technology before.

Hope someone could give me a starting point.

Best Regards

Markus

6 REPLIES 6

Former Member
0 Kudos

Hi Markus

Check out the CL_BCS Class and it's associated methods.

Regards

Arden

roberto_vacca2
Active Contributor
0 Kudos

Hi.

If you only need to save PDF data in a SAP custom table, you'll have to use "raw data string" type.

Hope to help

jrg_wulf
Active Contributor
0 Kudos

Hi Marcus,

basically, your solution consists of two steps:

  1. create an Archive object, using FM 'SCMS_HTTP_CREATE_FILES'
  2. link the Archive-object to Debitor, using FM 'ARCHIV_CONNECTION_INSERT'

That should do the trick (did it for me)

Best regards - Jörg

Former Member
0 Kudos

This looks very promising.

But it seems that the file I want to upload has to be already on the SAP-Server, is this right?

jrg_wulf
Active Contributor
0 Kudos

Hi Markus,

Applikation Server or presentation Server (PC), both works fine. You just have to set Parameter FRONTEND accordingly.

Former Member
0 Kudos

Hi all,

wow, you are really fast. Thanks a lot. I will figure your solutions out and let you know when I am done.

Best regards

Markus