<?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: Problem with OPEN DATASET in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-open-dataset/m-p/1609272#M273319</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thx a lot for fast answer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my problem is, that in no cases it should be possible to change an existing datafile. Or if a user opens the same datafile, he should be able to choose, if he want to overwrite the existing file or to chooose an other filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any chance to solve that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;marcel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Sep 2006 14:48:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-19T14:48:49Z</dc:date>
    <item>
      <title>Problem with OPEN DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-open-dataset/m-p/1609266#M273313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi abapers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the "open dataset"-command opens a datafile within the given directory. if this file already exists, the system clears all content of this file. Is there any chance to avoid this situation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx a lot for help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;marcel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 14:16:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-open-dataset/m-p/1609266#M273313</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T14:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with OPEN DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-open-dataset/m-p/1609267#M273314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use APPENDING MODE instead of just &amp;lt;b&amp;gt;FOR OUTPUT&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example :&lt;/P&gt;&lt;P&gt;Opening a File for Appending Data &lt;/P&gt;&lt;P&gt;To open a file so that you can append data to the end of it, use the FOR APPENDING addition in the OPEN DATASET statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;OPEN DATASET &amp;lt;dsn&amp;gt; FOR APPENDING.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;srikanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srikanth Kidambi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 14:18:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-open-dataset/m-p/1609267#M273314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T14:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with OPEN DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-open-dataset/m-p/1609268#M273315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN the file in APPEND mode if you want to continue writing in the same file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN XXXXXX FOR APPENDING .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regs,&lt;/P&gt;&lt;P&gt;Venkat Ramanan N&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 14:19:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-open-dataset/m-p/1609268#M273315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T14:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with OPEN DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-open-dataset/m-p/1609269#M273316</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; Open dataset datasetname for &amp;lt;b&amp;gt;appending&amp;lt;/b&amp;gt; .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Use appending, instead of output, then the contents of the file will not be erased when the file exists. If the file is not exisitng, it creates a new file again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sailaja.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 14:20:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-open-dataset/m-p/1609269#M273316</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T14:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with OPEN DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-open-dataset/m-p/1609270#M273317</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;Did you try the option &amp;lt;b&amp;gt;APPPEDNING&amp;lt;/b&amp;gt; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET dsn. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additions: &lt;/P&gt;&lt;P&gt;1. ... FOR INPUT &lt;/P&gt;&lt;P&gt;2. ... FOR OUTPUT &lt;/P&gt;&lt;P&gt;3. ... FOR APPENDING &lt;/P&gt;&lt;P&gt;4. ... IN BINARY MODE &lt;/P&gt;&lt;P&gt;5. ... IN TEXT MODE &lt;/P&gt;&lt;P&gt;6. ... AT POSITION p &lt;/P&gt;&lt;P&gt;7. ... TYPE ctrl &lt;/P&gt;&lt;P&gt;8. ... MESSAGE mess &lt;/P&gt;&lt;P&gt;9. ... FILTER f &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;Varun .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 14:20:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-open-dataset/m-p/1609270#M273317</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T14:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with OPEN DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-open-dataset/m-p/1609271#M273318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use OPEN DATASET dsn FOR APPENDING&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 14:22:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-open-dataset/m-p/1609271#M273318</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T14:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with OPEN DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-open-dataset/m-p/1609272#M273319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thx a lot for fast answer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my problem is, that in no cases it should be possible to change an existing datafile. Or if a user opens the same datafile, he should be able to choose, if he want to overwrite the existing file or to chooose an other filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any chance to solve that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;marcel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 14:48:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-open-dataset/m-p/1609272#M273319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T14:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with OPEN DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-open-dataset/m-p/1609273#M273320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you are taking the file name from the selection screen,then you can do like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P_FILENAME Is your Selection-screen parameter to hold the file name on application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;*--Validate application server file.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt; OPEN DATASET P_FILENAME &amp;lt;b&amp;gt;for INPUT&amp;lt;/b&amp;gt; in TEXT MODE &lt;/P&gt;&lt;P&gt;                           encoding Default.&lt;/P&gt;&lt;P&gt;*--Here we are just checking the FILE already exists or not.by opening the file in INPUT MODE&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt; if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;*--subrc = 0 means,already file exists. so you can give an information/error message to the user,that file already exists.&lt;/P&gt;&lt;P&gt;   close dataset v_filename.&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;srikanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srikanth Kidambi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 16:35:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-open-dataset/m-p/1609273#M273320</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T16:35:40Z</dc:date>
    </item>
  </channel>
</rss>

