<?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: open data information required? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-information-required/m-p/5638511#M1283379</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WS_FILE_DELETE - "Delete File at the Frontend or Presentation server file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;EPS_DELETE_FILE  "Application file delete&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;delete file&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DELETE DATASET FILE_PATH.  "File_path is nothing but appl file name&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    RAISE DELETE_FAILED.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 May 2009 12:00:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-19T12:00:28Z</dc:date>
    <item>
      <title>open data information required?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-information-required/m-p/5638510#M1283378</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;I want to delete the csv file from the application server once the full data set is read.&lt;/P&gt;&lt;P&gt;i am sucessful to read the data set,but while usiong the delete datset,its deleting it,but as next time i am not abale to read any data,but file exits on application server.&lt;/P&gt;&lt;P&gt;please tell me how to delete file physicaly from application server too.&lt;/P&gt;&lt;P&gt;seconding,how to write the data from my tabel to csv file in application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my code for deleteing file:&lt;/P&gt;&lt;P&gt;OPEN DATASET file FOR INPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;DELETE DATASET file.&lt;/P&gt;&lt;P&gt;CLOSE DATASET file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code for writing the data to file:&lt;/P&gt;&lt;P&gt;    OPEN DATASET file1 FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   LOOP AT result.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     CLEAR:wa1.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     CONCATENATE result-mat1 ',' result-mat2 ',' result-type ',' result-message INTO wa1.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;     TRANSFER wa1 TO file1.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     IF sy-subrc = 0.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     ENDIF.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   ENDLOOP.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    TRANSFER result TO file1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLOSE DATASET file1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 11:53:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-information-required/m-p/5638510#M1283378</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T11:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: open data information required?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-information-required/m-p/5638511#M1283379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WS_FILE_DELETE - "Delete File at the Frontend or Presentation server file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;EPS_DELETE_FILE  "Application file delete&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;delete file&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DELETE DATASET FILE_PATH.  "File_path is nothing but appl file name&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    RAISE DELETE_FAILED.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 12:00:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-information-required/m-p/5638511#M1283379</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T12:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: open data information required?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-information-required/m-p/5638512#M1283380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The one whos writing the file does not set the correct authorities (chmod).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 12:12:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-information-required/m-p/5638512#M1283380</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2009-05-19T12:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: open data information required?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-information-required/m-p/5638513#M1283381</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;For deleteing dataset it is not required to open and close the dataset:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;OPEN DATASET file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
IF SY-SUBRC EQ 0.
READ DATASET...
CLOSE DATASET file.
DELETE DATASET file.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;For writing the data to file in CSV format you need to use the concatenate statement and to insert the comma between the fields:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;OPEN DATASET file1 FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.

 LOOP AT result.
 CLEAR:wa1.
 CONCATENATE result-mat1 result-mat2 result-type result-message INTO wa1 SEPRATED By ','.
 TRANSFER wa1 TO file1.
 ENDLOOP.

CLOSE DATASET file1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 12:13:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-information-required/m-p/5638513#M1283381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T12:13:34Z</dc:date>
    </item>
  </channel>
</rss>

