<?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: PDF upload question in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-upload-question/m-p/3848670#M925267</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi check the tcode CG3Z and CG3Y for uploading and downloading the files(any) ..and check this example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZMN_PDF_UPLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;field(256),&lt;/P&gt;&lt;P&gt;end of itab.&lt;/P&gt;&lt;P&gt;data: dsn(100) value '\usr\sap\DEV\DVEBMGS00\work\testpdf',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;length like sy-tabix,&lt;/P&gt;&lt;P&gt;lengthn like sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;filename = 'c:\temp\test.pdf'&lt;/P&gt;&lt;P&gt;filetype = 'BIN'&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;filelength = length&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;data_tab = itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open dataset dsn for output in binary mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;transfer itab-field to dsn.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;close dataset dsn.&lt;/P&gt;&lt;P&gt;clear itab.&lt;/P&gt;&lt;P&gt;refresh itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*To crosscheck if it went well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open dataset dsn for input in binary mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do.&lt;/P&gt;&lt;P&gt;read dataset dsn into itab-field.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;filename = 'c:\temp\testn.pdf'&lt;/P&gt;&lt;P&gt;filetype = 'BIN'&lt;/P&gt;&lt;P&gt;bin_filesize = length&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;filelength = lengthn&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;data_tab = itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkat .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 May 2008 18:04:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-14T18:04:26Z</dc:date>
    <item>
      <title>PDF upload question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-upload-question/m-p/3848668#M925265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The users want a generic way to upload PDF files into SAP and retrieve them. Does anyone have any suggestions or code to do this? I wasn't sure if we could use our IXOS system for this or just upload the files to the SAP server and make a ref table for retrieval of those documents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 17:23:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-upload-question/m-p/3848668#M925265</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T17:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: PDF upload question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-upload-question/m-p/3848669#M925266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check this. may this will helpful to you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0e6b0d95-0a01-0010-4696-ca0a48de5fb3" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0e6b0d95-0a01-0010-4696-ca0a48de5fb3&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find ref table SRGBTBREL if you are using GOS&lt;/P&gt;&lt;P&gt; a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 17:53:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-upload-question/m-p/3848669#M925266</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-05-14T17:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: PDF upload question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-upload-question/m-p/3848670#M925267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi check the tcode CG3Z and CG3Y for uploading and downloading the files(any) ..and check this example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZMN_PDF_UPLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;field(256),&lt;/P&gt;&lt;P&gt;end of itab.&lt;/P&gt;&lt;P&gt;data: dsn(100) value '\usr\sap\DEV\DVEBMGS00\work\testpdf',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;length like sy-tabix,&lt;/P&gt;&lt;P&gt;lengthn like sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;filename = 'c:\temp\test.pdf'&lt;/P&gt;&lt;P&gt;filetype = 'BIN'&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;filelength = length&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;data_tab = itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open dataset dsn for output in binary mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;transfer itab-field to dsn.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;close dataset dsn.&lt;/P&gt;&lt;P&gt;clear itab.&lt;/P&gt;&lt;P&gt;refresh itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*To crosscheck if it went well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open dataset dsn for input in binary mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do.&lt;/P&gt;&lt;P&gt;read dataset dsn into itab-field.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;filename = 'c:\temp\testn.pdf'&lt;/P&gt;&lt;P&gt;filetype = 'BIN'&lt;/P&gt;&lt;P&gt;bin_filesize = length&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;filelength = lengthn&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;data_tab = itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkat .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 18:04:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-upload-question/m-p/3848670#M925267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T18:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: PDF upload question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-upload-question/m-p/3848671#M925268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may opt for the solution provided in the standard to handle Business Documents. Users can attach PDFs (and certain other file formats) directly from the front-end and then even retrieve them back whenever they need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The criteria being that users have to attach the business documents (PDFs in your case) to the instance of Business Object. For example, VBRK is a definition for BO and 1520123456 is an instance of BO VBRK. In this scenario, PDFs for a Sales Invoice can be attached in the Business Document Navigator (OAOR) and user can browse through the PDFs whenever he/she needs to view the Sales Invoice Data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Besides the look-and-feel factor, please donot ignore the fact that the Business Documents are stored in SAP DB itself adding to the DB growth. Look out for the options to optimise the growth and also think about archiving solutions (Ex: IXOS)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please contact me for further info on this. Also, pls reward points, if the response is useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards&lt;/P&gt;&lt;P&gt;Vijay Gajavalli&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2008 13:42:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-upload-question/m-p/3848671#M925268</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-16T13:42:14Z</dc:date>
    </item>
  </channel>
</rss>

