<?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: RE: Problem with open dataset in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-problem-with-open-dataset/m-p/1610157#M273640</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 need to handle this explicitly . Try to call a FM pop_to_confirm to make a decision and based upon this try to overwrite or append to existing contents .&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:56:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-19T14:56:53Z</dc:date>
    <item>
      <title>RE: Problem with open dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-problem-with-open-dataset/m-p/1610156#M273639</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:50:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-problem-with-open-dataset/m-p/1610156#M273639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T14:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: RE: Problem with open dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-problem-with-open-dataset/m-p/1610157#M273640</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 need to handle this explicitly . Try to call a FM pop_to_confirm to make a decision and based upon this try to overwrite or append to existing contents .&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:56:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-problem-with-open-dataset/m-p/1610157#M273640</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T14:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: RE: Problem with open dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-problem-with-open-dataset/m-p/1610158#M273641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After you read in the dataset, close the file. When the user opts to save, present him/her with the "file save" dialog. If the user chooses the same name as the original dataset, he/she will be asked to replace or change the file name, because the original dataset is closed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 14:57:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-problem-with-open-dataset/m-p/1610158#M273641</guid>
      <dc:creator>Hans</dc:creator>
      <dc:date>2006-09-19T14:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: RE: Problem with open dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-problem-with-open-dataset/m-p/1610159#M273642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And how can i check, if a datafile already exists?&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:57:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-problem-with-open-dataset/m-p/1610159#M273642</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T14:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: RE: Problem with open dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-problem-with-open-dataset/m-p/1610160#M273643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use the Function module &amp;lt;b&amp;gt;/SAPDMC/LSM_F4_SERVER_FILE&amp;lt;/b&amp;gt; to open the Application server files ..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
       EXPORTING
            directory        = ' '
            filemask         = ' '
       IMPORTING
            serverfile       = p_afile
       EXCEPTIONS
            canceled_by_user = 1
            OTHERS           = 2.
  IF sy-subrc &amp;lt;&amp;gt; 0.
 MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;in the above code, P_afile will have the file path which user selected, so you will have the file path in that variable, after that you can use OPEN DATASET, READ DATASET.&lt;/P&gt;&lt;P&gt;even you use OPEN DATASET &amp;lt;file path&amp;gt; FOR APPENDING to append the data to the existed file ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope you understand&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 14:59:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-problem-with-open-dataset/m-p/1610160#M273643</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T14:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: RE: Problem with open dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-problem-with-open-dataset/m-p/1610161#M273644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First open the file in the write mode if the file is already there then raise the message using FM popup_to_confirm informing file is already there. if user selects yes, then  then open the file in output mode and write the file and in other case just leave the program and allow user to enter another file name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 14:59:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-problem-with-open-dataset/m-p/1610161#M273644</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T14:59:55Z</dc:date>
    </item>
  </channel>
</rss>

