<?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: How to download files from content server using abap code. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-download-files-from-content-server-using-abap-code/m-p/6656990#M1445719</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can download file from application server as per the below menthod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. First get the file name (cg_file) using FM 'FILE_GET_NAME'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Collect all the records into an internal table using below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  OPEN DATASET cg_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    WHILE f_fin = '0'.&lt;/P&gt;&lt;P&gt;      READ DATASET cg_file INTO str.&lt;/P&gt;&lt;P&gt;      IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;        f_fin = '1'.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        IF NOT str IS INITIAL.&lt;/P&gt;&lt;P&gt;          lt_str = str.&lt;/P&gt;&lt;P&gt;          APPEND lt_str.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDWHILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ni3&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Mar 2010 12:25:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-22T12:25:37Z</dc:date>
    <item>
      <title>How to download files from content server using abap code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-download-files-from-content-server-using-abap-code/m-p/6656989#M1445718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to develop a program which downloads and decompress files from  content server to our local desktop. Is there any FM or BAPIs  to do this as my program should be generic and i can download files related all modules in SAP.&lt;/P&gt;&lt;P&gt;Please help me. &lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Mar 2010 12:42:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-download-files-from-content-server-using-abap-code/m-p/6656989#M1445718</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-19T12:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to download files from content server using abap code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-download-files-from-content-server-using-abap-code/m-p/6656990#M1445719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can download file from application server as per the below menthod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. First get the file name (cg_file) using FM 'FILE_GET_NAME'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Collect all the records into an internal table using below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  OPEN DATASET cg_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    WHILE f_fin = '0'.&lt;/P&gt;&lt;P&gt;      READ DATASET cg_file INTO str.&lt;/P&gt;&lt;P&gt;      IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;        f_fin = '1'.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        IF NOT str IS INITIAL.&lt;/P&gt;&lt;P&gt;          lt_str = str.&lt;/P&gt;&lt;P&gt;          APPEND lt_str.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDWHILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ni3&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Mar 2010 12:25:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-download-files-from-content-server-using-abap-code/m-p/6656990#M1445719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-22T12:25:37Z</dc:date>
    </item>
  </channel>
</rss>

