<?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 write the long string data into application server file in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-the-long-string-data-into-application-server-file/m-p/5715974#M1297323</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;Refer following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Local Variables&lt;/P&gt;&lt;P&gt;  DATA : lv_file TYPE string.         "File name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Clear file&lt;/P&gt;&lt;P&gt;  CLEAR : lv_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Concatanate filename and path fort application server&lt;/P&gt;&lt;P&gt;  CONCATENATE p_path gc_slash p_file gc_txt INTO lv_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Open dataset for output mode to transfer the data&lt;/P&gt;&lt;P&gt;  OPEN DATASET lv_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF NOT gt_file[] IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      LOOP AT gt_file INTO gs_file.&lt;/P&gt;&lt;P&gt;*--Transfer data into file to downlaod&lt;/P&gt;&lt;P&gt;        TRANSFER gs_file TO lv_file.&lt;/P&gt;&lt;P&gt;*--Clear work area&lt;/P&gt;&lt;P&gt;        CLEAR : gs_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;*--File is downloaded successfully to Application Server&lt;/P&gt;&lt;P&gt;      MESSAGE s081.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Jun 2009 09:41:49 GMT</pubDate>
    <dc:creator>former_member386202</dc:creator>
    <dc:date>2009-06-01T09:41:49Z</dc:date>
    <item>
      <title>How to write the long string data into application server file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-the-long-string-data-into-application-server-file/m-p/5715973#M1297322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have data in a string ( very large volume ) i need to write this data into file in application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you suggest me a FM ..??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2009 09:39:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-the-long-string-data-into-application-server-file/m-p/5715973#M1297322</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-01T09:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to write the long string data into application server file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-the-long-string-data-into-application-server-file/m-p/5715974#M1297323</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;Refer following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Local Variables&lt;/P&gt;&lt;P&gt;  DATA : lv_file TYPE string.         "File name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Clear file&lt;/P&gt;&lt;P&gt;  CLEAR : lv_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Concatanate filename and path fort application server&lt;/P&gt;&lt;P&gt;  CONCATENATE p_path gc_slash p_file gc_txt INTO lv_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Open dataset for output mode to transfer the data&lt;/P&gt;&lt;P&gt;  OPEN DATASET lv_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF NOT gt_file[] IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      LOOP AT gt_file INTO gs_file.&lt;/P&gt;&lt;P&gt;*--Transfer data into file to downlaod&lt;/P&gt;&lt;P&gt;        TRANSFER gs_file TO lv_file.&lt;/P&gt;&lt;P&gt;*--Clear work area&lt;/P&gt;&lt;P&gt;        CLEAR : gs_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;*--File is downloaded successfully to Application Server&lt;/P&gt;&lt;P&gt;      MESSAGE s081.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2009 09:41:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-the-long-string-data-into-application-server-file/m-p/5715974#M1297323</guid>
      <dc:creator>former_member386202</dc:creator>
      <dc:date>2009-06-01T09:41:49Z</dc:date>
    </item>
  </channel>
</rss>

