<?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: Attachment Document  Not opening in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/attachment-document-not-opening/m-p/12128839#M1974986</link>
    <description>&lt;P&gt;SAP is already looking into it since a week. Just thought of discussing on this forum so that if anybody has faced similar issue and found a solution then it will help us to get rid of our issue.&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jun 2020 07:32:34 GMT</pubDate>
    <dc:creator>former_member213851</dc:creator>
    <dc:date>2020-06-19T07:32:34Z</dc:date>
    <item>
      <title>Attachment Document  Not opening</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attachment-document-not-opening/m-p/12128826#M1974973</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
  &lt;P&gt;I have checked multiple SCN threads and tried few solutions but couldn't get excepted outcome. &lt;/P&gt;
  &lt;P&gt;I am trying to get GOS Document data using FM &lt;B&gt;SO_DOCUMENT_READ_API1. &lt;/B&gt; Data outputted by parameter &lt;B&gt;object_content &lt;/B&gt;is being used for further processing and attaching document data to VA01 using 'SO_OBJECT_INSERT'. &lt;/P&gt;
  &lt;P&gt;But attached document file is corrupt and not opening. Can anybody suggest what is missing.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 16:14:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attachment-document-not-opening/m-p/12128826#M1974973</guid>
      <dc:creator>former_member213851</dc:creator>
      <dc:date>2020-06-12T16:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Attachment Document  Not opening</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attachment-document-not-opening/m-p/12128827#M1974974</link>
      <description>&lt;P&gt;Hi  &lt;SPAN class="mention-scrubbed"&gt;sachin.adak&lt;/SPAN&gt;,&lt;BR /&gt;Are you having problems with downloading or uploading the file as after reading your explanation I am not certain? &lt;BR /&gt;If the problem is with downloading the file then are you having the same problem when downloading the file in GUI (VA03)? &lt;BR /&gt;Regards,&lt;BR /&gt;Bartosz&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 16:44:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attachment-document-not-opening/m-p/12128827#M1974974</guid>
      <dc:creator>ziolkowskib</dc:creator>
      <dc:date>2020-06-12T16:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Attachment Document  Not opening</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attachment-document-not-opening/m-p/12128828#M1974975</link>
      <description>&lt;P&gt;It's just a bug in your [unknown] code.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 18:56:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attachment-document-not-opening/m-p/12128828#M1974975</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-06-12T18:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Attachment Document  Not opening</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attachment-document-not-opening/m-p/12128829#M1974976</link>
      <description>&lt;P&gt;Yeap, please share your code used for uploading and attaching the file.&lt;/P&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;Mateusz</description>
      <pubDate>Fri, 12 Jun 2020 19:03:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attachment-document-not-opening/m-p/12128829#M1974976</guid>
      <dc:creator>MateuszAdamus</dc:creator>
      <dc:date>2020-06-12T19:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Attachment Document  Not opening</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attachment-document-not-opening/m-p/12128830#M1974977</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;My requirement is to load GOS attachment through custom program. I am fetching attachment details using FM &lt;STRONG&gt;SO_DOCUMENT_READ_API1 . &lt;/STRONG&gt;This FM has OBJECT_CONTENT parameter which gives us attachment data. &lt;/P&gt;&lt;P&gt;I am using FM SCMS_BINARY_TO_XSTRING to get XSTRING value and then again passing to 'SCMS_XSTRING_TO_BINARY' to get final table which will be passed to&lt;B&gt; &lt;/B&gt;&lt;STRONG&gt;'SO_DOCUMENT_INSERT'  &lt;/STRONG&gt;FM parameter OBJCONT_BIN.&lt;/P&gt;&lt;P&gt;Resultant Attachment gets linked to documents but PDF fails to open. I tried passing various sizes in BINLENGTH parameter as per attachment size still it fails.  &lt;/P&gt;&lt;P&gt;Please suggest. &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jun 2020 11:23:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attachment-document-not-opening/m-p/12128830#M1974977</guid>
      <dc:creator>former_member213851</dc:creator>
      <dc:date>2020-06-13T11:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Attachment Document  Not opening</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attachment-document-not-opening/m-p/12128831#M1974978</link>
      <description>&lt;P&gt;Hello  &lt;SPAN class="mention-scrubbed"&gt;sachin.adak&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;The devil is in the details. If you don't provide your detailed code then there is no chance for anyone to guess what the issue is.&lt;/P&gt;Kind regards,&lt;BR /&gt;Mateusz</description>
      <pubDate>Sat, 13 Jun 2020 14:17:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attachment-document-not-opening/m-p/12128831#M1974978</guid>
      <dc:creator>MateuszAdamus</dc:creator>
      <dc:date>2020-06-13T14:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Attachment Document  Not opening</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attachment-document-not-opening/m-p/12128832#M1974979</link>
      <description>&lt;P&gt;It seems that you are doing a copy of GOS attachment. If you currently use SO_DOCUMENT_READ_API1 + SO_DOCUMENT_INSERT, why don't you avoid converting the types of parameters by using &lt;STRONG&gt;SO_DOCUMENT_INSERT_API1&lt;/STRONG&gt; instead of SO_DOCUMENT_INSERT?&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jun 2020 15:08:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attachment-document-not-opening/m-p/12128832#M1974979</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-06-13T15:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Attachment Document  Not opening</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attachment-document-not-opening/m-p/12128833#M1974980</link>
      <description>&lt;P&gt;Hi Sandra,&lt;/P&gt;&lt;P&gt;I tried using &lt;STRONG&gt;SO_DOCUMENT_INSERT_API1 &lt;/STRONG&gt; but still PDF file is not opening. &lt;/P&gt;&lt;P&gt;Now I am not doing any conversions for Data returned by &lt;STRONG&gt;SO_DOCUMENT_READ_API1. &lt;/STRONG&gt;Directly &lt;B&gt;SO_DOCUMENT_READ_API1&lt;/B&gt; gives table&lt;B&gt; &lt;/B&gt;&lt;STRONG&gt;OBJECT_CONTENT  &lt;/STRONG&gt;and same &lt;STRONG&gt;is&lt;/STRONG&gt; mapped to &lt;B&gt;OBJECT_CONTENT &lt;/B&gt;table &lt;B&gt; of FM &lt;/B&gt;&lt;STRONG&gt;SO_DOCUMENT_INSERT_API1.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But still PDF fails to open. &lt;/P&gt;&lt;P&gt;Below standard program is doing the same:&lt;/P&gt;&lt;P&gt;RSSOOT01 - Program for object type SOFM: Office document.&lt;/P&gt;&lt;P&gt;Please suggest. &lt;/P&gt;</description>
      <pubDate>Sat, 13 Jun 2020 17:29:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attachment-document-not-opening/m-p/12128833#M1974980</guid>
      <dc:creator>former_member213851</dc:creator>
      <dc:date>2020-06-13T17:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Attachment Document  Not opening</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attachment-document-not-opening/m-p/12128834#M1974981</link>
      <description>&lt;P&gt;I don't know what you're doing, but you do it wrong. See &lt;STRONG&gt;Mateusz &lt;/STRONG&gt;request.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jun 2020 18:51:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attachment-document-not-opening/m-p/12128834#M1974981</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-06-13T18:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Attachment Document  Not opening</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attachment-document-not-opening/m-p/12128835#M1974982</link>
      <description>&lt;P&gt;Hi Sandra, &lt;/P&gt;&lt;P&gt;Actually we are migrating GOS attachments data from ECC to S4 system using RFC. &lt;/P&gt;&lt;P&gt;But attachments except TXT are not opening.
Here are my findings: &lt;/P&gt;&lt;P&gt;1. We linked 1 PDF file on ECC side manually to Sales Doc.
FM SO_DOCUMENT_READ_API1  is used to read the data for that PDF on ECC&lt;/P&gt;&lt;P&gt;
-------------------------------------------------------------------------------------------------------------------- &lt;/P&gt;&lt;P&gt;2. Now we linked same PDF on S4 side manually to Sales Doc.. FM SO_DOCUMENT_READ_API1 is used to read the data for that PDF on S4 side. &lt;/P&gt;&lt;P&gt;Upon comparing data for the same PDF file attached manually on 2 different system in debug mode, we see there is significant difference. That's the reason attachments data fetched from ECC and uploaded via FM SO_DOCUMENT_INSERT_API1 in S4 corrupts the file. &lt;/P&gt;&lt;P&gt;Could you suggest how can we migrate attachments From ECC to S4 in such cases where data itself is stored in different format by 2 different systems foe same PDF file .&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 15:43:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attachment-document-not-opening/m-p/12128835#M1974982</guid>
      <dc:creator>former_member213851</dc:creator>
      <dc:date>2020-06-17T15:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: Attachment Document  Not opening</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attachment-document-not-opening/m-p/12128836#M1974983</link>
      <description>&lt;P&gt;By debug you see a difference, it's just due to your buggy program or to an incorrect analysis. The storage technology of GOS attachments is identical between ECC and S4.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 16:48:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attachment-document-not-opening/m-p/12128836#M1974983</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-06-17T16:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Attachment Document  Not opening</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attachment-document-not-opening/m-p/12128837#M1974984</link>
      <description>&lt;P&gt;Sandra,&lt;/P&gt;&lt;P&gt;I am using stanadrd FM RKC_OFFICE_DOCUMENT_COPY&lt;STRONG&gt; &lt;/STRONG&gt;to get PDF data.&lt;/P&gt;&lt;P&gt;Line 32 of this FM has &lt;STRONG&gt;SO_DOCUMENT_READ_API1 &lt;/STRONG&gt;that fetches PDF data .&lt;/P&gt;&lt;P&gt;So there is no question of bug in custom program as data is directly being fetched by passing parameters to &lt;STRONG&gt;RKC_OFFICE_DOCUMENT_COPY in SE37.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;There is no Custom Code involved at all.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 17:00:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attachment-document-not-opening/m-p/12128837#M1974984</guid>
      <dc:creator>former_member213851</dc:creator>
      <dc:date>2020-06-17T17:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Attachment Document  Not opening</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attachment-document-not-opening/m-p/12128838#M1974985</link>
      <description>&lt;P&gt;If you don't have custom code, then contact SAP support.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 17:13:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attachment-document-not-opening/m-p/12128838#M1974985</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-06-17T17:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Attachment Document  Not opening</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attachment-document-not-opening/m-p/12128839#M1974986</link>
      <description>&lt;P&gt;SAP is already looking into it since a week. Just thought of discussing on this forum so that if anybody has faced similar issue and found a solution then it will help us to get rid of our issue.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 07:32:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attachment-document-not-opening/m-p/12128839#M1974986</guid>
      <dc:creator>former_member213851</dc:creator>
      <dc:date>2020-06-19T07:32:34Z</dc:date>
    </item>
  </channel>
</rss>

