<?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: append file on application server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-file-on-application-server/m-p/5735569#M1300688</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at it_filedir.&lt;/P&gt;&lt;P&gt;zfile_name = filedir-name.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET zfile_name FOR APPENDING MODE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;zfile_name is the file path on application server. Once the file is opened loop at it_filedir and transfer it_filedir to zfile_name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Jun 2009 17:05:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-01T17:05:10Z</dc:date>
    <item>
      <title>append file on application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-file-on-application-server/m-p/5735568#M1300687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having a file on the server. I have to append the contents to this file. I am using 'OPEN DATA SET......' and 'TRANSFER....' but the contents are not saving to the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what my code looks like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: fpath type pfeflnamel.&lt;/P&gt;&lt;P&gt;data: begin of filedir occurs 10.&lt;/P&gt;&lt;P&gt;        include structure salfldir.&lt;/P&gt;&lt;P&gt;data: end of filedir.&lt;/P&gt;&lt;P&gt;data: filedata(265) type c 'ABCDEFC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RZL_READ_DIR_LOCAL'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;    NAME                 = fpath&lt;/P&gt;&lt;P&gt; TABLES&lt;/P&gt;&lt;P&gt;    FILE_TBL             = filedir .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_filedir.&lt;/P&gt;&lt;P&gt;   zfile_name = filedir-name.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET zfile_name FOR APPENDING IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;      TRANSFER filedata TO zFILE_name.&lt;/P&gt;&lt;P&gt;       CLOSE DATASET zFILE_name.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this code is not appending the data to the file. Can anyone please let me know where ia m doing wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Karuna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2009 15:05:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-file-on-application-server/m-p/5735568#M1300687</guid>
      <dc:creator>karuna_gangireddy</dc:creator>
      <dc:date>2009-06-01T15:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: append file on application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-file-on-application-server/m-p/5735569#M1300688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at it_filedir.&lt;/P&gt;&lt;P&gt;zfile_name = filedir-name.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET zfile_name FOR APPENDING MODE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;zfile_name is the file path on application server. Once the file is opened loop at it_filedir and transfer it_filedir to zfile_name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2009 17:05:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-file-on-application-server/m-p/5735569#M1300688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-01T17:05:10Z</dc:date>
    </item>
  </channel>
</rss>

