<?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 Appending Flat File in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-flat-file/m-p/2982578#M704169</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having a requirement of appending new records in a flat file every time when i am executing a transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having a flat file ( DAT type ). When I am executing a transaction code some new records will be generated and these records should be appended to the existing flat file with out deleting the existing data in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What function module I have to use and how to use that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Helpful answers will be rewarded.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Nov 2007 11:10:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-14T11:10:04Z</dc:date>
    <item>
      <title>Appending Flat File</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-flat-file/m-p/2982578#M704169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having a requirement of appending new records in a flat file every time when i am executing a transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having a flat file ( DAT type ). When I am executing a transaction code some new records will be generated and these records should be appended to the existing flat file with out deleting the existing data in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What function module I have to use and how to use that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Helpful answers will be rewarded.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2007 11:10:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-flat-file/m-p/2982578#M704169</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-14T11:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Appending Flat File</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-flat-file/m-p/2982579#M704170</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 do this with GUI_Download FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the sample code...&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;      bin_filesize            = lv_len&lt;/P&gt;&lt;P&gt;      filename                = lv_filename&lt;/P&gt;&lt;P&gt;      filetype                =  'ASC'&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;      APPEND             = 'X'&amp;lt;/b&amp;gt;  "To append the records to existing file&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab                = lt_itab .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward if Helpful.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2007 11:15:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-flat-file/m-p/2982579#M704170</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-11-14T11:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Appending Flat File</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-flat-file/m-p/2982580#M704171</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;Is this a flat file on the application server or on the presentation server?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gareth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2007 11:21:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-flat-file/m-p/2982580#M704171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-14T11:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Appending Flat File</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-flat-file/m-p/2982581#M704172</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;    If ur flate file is on presentation server then use fm GUI_DOWNLOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Call function to download the error file&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         = file&lt;/P&gt;&lt;P&gt;      filetype         = 'ASC'&lt;/P&gt;&lt;P&gt;      APPEND     = 'X'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab         = pr_eord_error&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      file_write_error = 1&lt;/P&gt;&lt;P&gt;      no_authority     = 5&lt;/P&gt;&lt;P&gt;      unknown_error    = 6&lt;/P&gt;&lt;P&gt;      access_denied    = 15&lt;/P&gt;&lt;P&gt;      file_not_found   = 19.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if its on application server then use open dataset&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex.  *-- Open Dataset&lt;/P&gt;&lt;P&gt;  OPEN DATASET lv_dsn FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&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;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2007 11:25:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-flat-file/m-p/2982581#M704172</guid>
      <dc:creator>former_member386202</dc:creator>
      <dc:date>2007-11-14T11:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Appending Flat File</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-flat-file/m-p/2982582#M704173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; if its on application server then use open dataset&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; ex.  *-- Open Dataset&lt;/P&gt;&lt;P&gt;&amp;gt; OPEN DATASET lv_dsn FOR OUTPUT IN TEXT MODE&lt;/P&gt;&lt;P&gt;&amp;gt;  ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Regards,&lt;/P&gt;&lt;P&gt;&amp;gt; Prashant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you mean &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;open dataset lv_path for appending
                    in text mode encoding default.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All of this is explained quite clearly in the on line help if you press F1 on the OPEN DATASET command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gareth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2007 11:30:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-flat-file/m-p/2982582#M704173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-14T11:30:28Z</dc:date>
    </item>
  </channel>
</rss>

