<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Loading external documents ( .DOC; .PDF... ) into SAP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-external-documents-doc-pdf-into-sap/m-p/1071990#M95088</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are looking for loading data from Application server, record size should be less that 1096 characters. You can try this - get your attachment on application server and then load it to SAP by reading this file and see if this satisfies your requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 04 Dec 2005 14:35:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-12-04T14:35:52Z</dc:date>
    <item>
      <title>Loading external documents ( .DOC; .PDF... ) into SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-external-documents-doc-pdf-into-sap/m-p/1071985#M95083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I should load into SAP external documents &lt;/P&gt;&lt;P&gt;(curricula) attached to applicant data. Via web interface,&lt;/P&gt;&lt;P&gt;applicants can only attach files created with Word, Adobe&lt;/P&gt;&lt;P&gt;Acrobat, Notepad. The web server will send the applicant&lt;/P&gt;&lt;P&gt;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&lt;/P&gt;&lt;P&gt;from the XML envelope and send it to the SAP server. Is &lt;/P&gt;&lt;P&gt;there anyone that can tell me how can I load these files into SAP (without corrupting their contents)? Once loaded&lt;/P&gt;&lt;P&gt;the attachment, the SAP system has to be able to invoke&lt;/P&gt;&lt;P&gt;(via OLE automation) the exact application used to create&lt;/P&gt;&lt;P&gt;it (transaction: PB20). A function exists that can import &lt;/P&gt;&lt;P&gt;whatever type of attachment: SO_OBJECT_INSERT; this &lt;/P&gt;&lt;P&gt;function, however, needs to be filled with the file &lt;/P&gt;&lt;P&gt;contents (TABLE parameter); this implies that the ABAP &lt;/P&gt;&lt;P&gt;program has to read the file contents in such a way that &lt;/P&gt;&lt;P&gt;guarantees its integrity (binary mode, I presume). Is &lt;/P&gt;&lt;P&gt;there a function that loads the attachment by reading&lt;/P&gt;&lt;P&gt;its local path? This way the read operation would be &lt;/P&gt;&lt;P&gt;transparent. Or maybe there exist an RFC function module &lt;/P&gt;&lt;P&gt;that can be invoked directly from TIBCO.. (I don't know). &lt;/P&gt;&lt;P&gt;   Thanks in advance.&lt;/P&gt;&lt;P&gt;   Adriano.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Dec 2005 11:37:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-external-documents-doc-pdf-into-sap/m-p/1071985#M95083</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-03T11:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Loading external documents ( .DOC; .PDF... ) into SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-external-documents-doc-pdf-into-sap/m-p/1071986#M95084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Also pls check once using ABAP program if it reads contents of acrobat file correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Dec 2005 13:02:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-external-documents-doc-pdf-into-sap/m-p/1071986#M95084</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-03T13:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Loading external documents ( .DOC; .PDF... ) into SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-external-documents-doc-pdf-into-sap/m-p/1071987#M95085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashish, thank you very much for your reply. Yes, the&lt;/P&gt;&lt;P&gt;quicker solution to my problem will be reading the external documents by: OPEN/READ DATASET ... IN BINARY &lt;/P&gt;&lt;P&gt;MODE, then passing the records to the function: &lt;/P&gt;&lt;P&gt;SO_OBJECT_INSERT. Do you think the target structure has to&lt;/P&gt;&lt;P&gt;respect a specific length? &lt;/P&gt;&lt;P&gt;   Your last consideration forces me to do another &lt;/P&gt;&lt;P&gt;question: have you ever had difficulty in handling a &lt;/P&gt;&lt;P&gt;document in .PDF format within SAP environment? I've no &lt;/P&gt;&lt;P&gt;experience about it. I presume (but I'm not sure) that &lt;/P&gt;&lt;P&gt;loading the file as it is (using binary mode) should be &lt;/P&gt;&lt;P&gt;sufficient to guarantee that Acrobat will open the &lt;/P&gt;&lt;P&gt;document correctly. I know there are functions specialized&lt;/P&gt;&lt;P&gt;in handling .PDF format, but I don't know whether they may&lt;/P&gt;&lt;P&gt;be useful in this context. &lt;/P&gt;&lt;P&gt;   With regard to this topic (.PDF handling) I noticed &lt;/P&gt;&lt;P&gt;that table: TSOPE (external formats accepted) doesn't &lt;/P&gt;&lt;P&gt;include .PDF on my system. I presume this table has to be &lt;/P&gt;&lt;P&gt;updated for SAP to be able to invoke Acrobat front-end &lt;/P&gt;&lt;P&gt;side. Do you know if there is a special transaction to do &lt;/P&gt;&lt;P&gt;it, and if other steps are required in order to make &lt;/P&gt;&lt;P&gt;possible that invocation? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Adriano.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Dec 2005 10:10:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-external-documents-doc-pdf-into-sap/m-p/1071987#M95085</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-04T10:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Loading external documents ( .DOC; .PDF... ) into SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-external-documents-doc-pdf-into-sap/m-p/1071988#M95086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adriano,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps. If it does, please award points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Dec 2005 10:47:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-external-documents-doc-pdf-into-sap/m-p/1071988#M95086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-04T10:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Loading external documents ( .DOC; .PDF... ) into SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-external-documents-doc-pdf-into-sap/m-p/1071989#M95087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Sharad said, you can upload acrobat documents in SAP. Regarding the structure length as per function SO_OBJECT_INSERT, it limits to 255 characters per line. I have not used Methods for this but surely there should be ABAP classes / methods available. You can explore that area too. I will also check and let you know if i come across anything.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Dec 2005 14:19:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-external-documents-doc-pdf-into-sap/m-p/1071989#M95087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-04T14:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Loading external documents ( .DOC; .PDF... ) into SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-external-documents-doc-pdf-into-sap/m-p/1071990#M95088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are looking for loading data from Application server, record size should be less that 1096 characters. You can try this - get your attachment on application server and then load it to SAP by reading this file and see if this satisfies your requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Dec 2005 14:35:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-external-documents-doc-pdf-into-sap/m-p/1071990#M95088</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-04T14:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Loading external documents ( .DOC; .PDF... ) into SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-external-documents-doc-pdf-into-sap/m-p/1071991#M95089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sharad, first of all I want to thank you for your &lt;/P&gt;&lt;P&gt;help. BDS is a very interesting option. I've no experience &lt;/P&gt;&lt;P&gt;with it but I'm studying the relevant documentation and &lt;/P&gt;&lt;P&gt;I'd like to use it to implement my solution. I've read the&lt;/P&gt;&lt;P&gt;BDS is part of the SAP System, so there should be no &lt;/P&gt;&lt;P&gt;problem in using it. The ABAP OO class: &lt;/P&gt;&lt;P&gt;cl_bds_document_set provides, as you told me, a method &lt;/P&gt;&lt;P&gt;named: CREATE_WITH_FILES, through which it's possible to &lt;/P&gt;&lt;P&gt;load a certain file from a certain directory. The question &lt;/P&gt;&lt;P&gt;is: do you know where this method stores the file contents? The module involved by the development is: &lt;/P&gt;&lt;P&gt;HR-Selection; debugging the standard code during the &lt;/P&gt;&lt;P&gt;storing/retrieval phase, I found out the standard (see&lt;/P&gt;&lt;P&gt;function: SO_OBJECT_INSERT) stores the file contents in &lt;/P&gt;&lt;P&gt;SOC3 table (cluster table of type: INDX). Transactions:&lt;/P&gt;&lt;P&gt;PB20/PB30 access that table to retrieve the attachment. &lt;/P&gt;&lt;P&gt;   Regarding DMS, can you recommend some URL where I can &lt;/P&gt;&lt;P&gt;find complete documentation? &lt;/P&gt;&lt;P&gt;   Thanks again. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Adriano.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Dec 2005 17:35:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-external-documents-doc-pdf-into-sap/m-p/1071991#M95089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-04T17:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Loading external documents ( .DOC; .PDF... ) into SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-external-documents-doc-pdf-into-sap/m-p/1071992#M95090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashish, first I'll try using the BDS class, as &lt;/P&gt;&lt;P&gt;suggested by Sharad. As an alternative, I'll try using the&lt;/P&gt;&lt;P&gt;'traditional' approach (OPEN/READ DATASET in custom  &lt;/P&gt;&lt;P&gt;program). It's true: the table parameter of &lt;/P&gt;&lt;P&gt;SO_OBJECT_INSERT has a length limited to 255 characters. &lt;/P&gt;&lt;P&gt;I think there should be no problem in reading the file &lt;/P&gt;&lt;P&gt;contents (in binary mode) 255 characters each time. The &lt;/P&gt;&lt;P&gt;problem is that I'm making analysis and I've no &lt;/P&gt;&lt;P&gt;authorization for creating programs.. So I must be sure &lt;/P&gt;&lt;P&gt;that the solution will function before passing the &lt;/P&gt;&lt;P&gt;document to the developers. &lt;/P&gt;&lt;P&gt;   Thanks again. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Adriano.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Dec 2005 17:55:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-external-documents-doc-pdf-into-sap/m-p/1071992#M95090</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-04T17:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Loading external documents ( .DOC; .PDF... ) into SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-external-documents-doc-pdf-into-sap/m-p/1071993#M95091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can read the online help at&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/dd/f5253715dfb808e10000009b38f889/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/dd/f5253715dfb808e10000009b38f889/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use generic object services to attach documents to objects (master data, transactions, etc).&lt;/P&gt;&lt;P&gt;(transaction OAOR)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/be/3fe63659241157e10000009b38f889/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/be/3fe63659241157e10000009b38f889/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;alternate approach - SAP Easy Document Management  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2004/helpdata/en/db/003353fca05c47bfc8f391cf296fc8/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2004/helpdata/en/db/003353fca05c47bfc8f391cf296fc8/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2005 05:23:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-external-documents-doc-pdf-into-sap/m-p/1071993#M95091</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-12-05T05:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Loading external documents ( .DOC; .PDF... ) into SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-external-documents-doc-pdf-into-sap/m-p/1071994#M95092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     What is the difference between direct input and BDC.&lt;/P&gt;&lt;P&gt;What is the main advantage of using direct input method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;p.kp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2005 08:09:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-external-documents-doc-pdf-into-sap/m-p/1071994#M95092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-05T08:09:59Z</dc:date>
    </item>
  </channel>
</rss>

