Skip to Content
avatar image
Former Member

Loading external documents ( .DOC; .PDF... ) into SAP

Hi, I should load into SAP external documents

(curricula) attached to applicant data. Via web interface,

applicants can only attach files created with Word, Adobe

Acrobat, Notepad. The web server will send the applicant

data + the attachment (via an XML message) to an integration server (TIBCO), which in turn will send the data to SAP HR. I presume TIBCO can extract the attachment

from the XML envelope and send it to the SAP server. Is

there anyone that can tell me how can I load these files into SAP (without corrupting their contents)? Once loaded

the attachment, the SAP system has to be able to invoke

(via OLE automation) the exact application used to create

it (transaction: PB20). A function exists that can import

whatever type of attachment: SO_OBJECT_INSERT; this

function, however, needs to be filled with the file

contents (TABLE parameter); this implies that the ABAP

program has to read the file contents in such a way that

guarantees its integrity (binary mode, I presume). Is

there a function that loads the attachment by reading

its local path? This way the read operation would be

transparent. Or maybe there exist an RFC function module

that can be invoked directly from TIBCO.. (I don't know).

Thanks in advance.


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Dec 04, 2005 at 10:47 AM

    Hi Adriano,

    I am not logged on to SAP right now. I loaded the different kinds of documents9 PDF, JPEG, DOC) to SAP CRM recently. I had found one method for BDS (business document services) object. It was 'Create_with_file' method.

    I am not sure that if BDS is available at R3 side but DMS(document management services)is. You can create an documentin DMS and assign it to one or more business object. Then that document becomes available through General Object Sevices. Check the methods of DMS. The tables are DRAW and DRED.

    I hope it helps. If it does, please award points.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 03, 2005 at 01:02 PM

    When TIBCO loads this files to SAP server, i believe there will be a separate directory created for your application which will contain all these attachments. You can upload these files using OPEN DATASET / READ DATASET. This should help you to get the details correctly. You can see contents of application server file using transaction AL11.

    To answer your second question, you can use GUI_DOWNLOAD, provided you have saved attachment on a presentation server. If you use this function, you will not be ableto run your program in background.

    Also pls check once using ABAP program if it reads contents of acrobat file correctly.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Ashish, thank you very much for your reply. Yes, the

      quicker solution to my problem will be reading the external documents by: OPEN/READ DATASET ... IN BINARY

      MODE, then passing the records to the function:

      SO_OBJECT_INSERT. Do you think the target structure has to

      respect a specific length?

      Your last consideration forces me to do another

      question: have you ever had difficulty in handling a

      document in .PDF format within SAP environment? I've no

      experience about it. I presume (but I'm not sure) that

      loading the file as it is (using binary mode) should be

      sufficient to guarantee that Acrobat will open the

      document correctly. I know there are functions specialized

      in handling .PDF format, but I don't know whether they may

      be useful in this context.

      With regard to this topic (.PDF handling) I noticed

      that table: TSOPE (external formats accepted) doesn't

      include .PDF on my system. I presume this table has to be

      updated for SAP to be able to invoke Acrobat front-end

      side. Do you know if there is a special transaction to do

      it, and if other steps are required in order to make

      possible that invocation?

      Thanks again.


  • avatar image
    Former Member
    Dec 05, 2005 at 08:09 AM


    What is the difference between direct input and BDC.

    What is the main advantage of using direct input method.


    Add comment
    10|10000 characters needed characters exceeded