<?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 dataset in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/1664110#M294143</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;initially take a variable and assign the file path to the variable...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now use OPEN DATASET &amp;lt;variable&amp;gt; FOR APPENDING IN TEXT MODE ENCODING DEFAULT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will work...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Nov 2006 11:10:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-16T11:10:03Z</dc:date>
    <item>
      <title>open dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/1664109#M294142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi to all&lt;/P&gt;&lt;P&gt;plz help me  this issue,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET 'ZREF1.TXT' FOR APPENDING IN TEXT MODE ENCODING DEFAULT&lt;/P&gt;&lt;P&gt;instead of 'ZREF1.TXT'  i want to give a file path in al11 C:\interface\payext\ZREF1.TXT&lt;/P&gt;&lt;P&gt;. how can i give this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;kiran kumar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        kiran kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2006 11:07:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/1664109#M294142</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-16T11:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: open dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/1664110#M294143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;initially take a variable and assign the file path to the variable...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now use OPEN DATASET &amp;lt;variable&amp;gt; FOR APPENDING IN TEXT MODE ENCODING DEFAULT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will work...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2006 11:10:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/1664110#M294143</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-16T11:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: open dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/1664111#M294144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;file_name = '/usr/sap/xx/filename'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use the OPEN DATASET filename for appending in text movde encoding default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2006 11:10:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/1664111#M294144</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-16T11:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: open dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/1664112#M294145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ramesh ,&lt;/P&gt;&lt;P&gt; can u give one example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards&lt;/P&gt;&lt;P&gt;kiran kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2006 11:11:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/1664112#M294145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-16T11:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: open dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/1664113#M294146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can find the example here&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3ccd358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3ccd358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2006 11:13:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/1664113#M294146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-16T11:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: open dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/1664114#M294147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think u want to download the file to your local system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open dataset command is usedto create files on applicaiton server..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to download that file to your locval system use ws_download function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create the file giving the normal name as 'xyz.txt'&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET 'xyz.txt' FOR INPUT IN TEXT MODE.&lt;/P&gt;&lt;P&gt;  READ DATASET 'xyz.txt'  INTO ITAB_FILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then call ws_download as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WS_DOWNLOAD'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            FILENAME            = 'local file name'&lt;/P&gt;&lt;P&gt;            FILETYPE            = 'ASC'&lt;/P&gt;&lt;P&gt;            MODE                = 'O'&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            DATA_TAB            = ITAB_FILE&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            FILE_OPEN_ERROR     = 1&lt;/P&gt;&lt;P&gt;            FILE_WRITE_ERROR    = 2&lt;/P&gt;&lt;P&gt;            INVALID_FILESIZE    = 3&lt;/P&gt;&lt;P&gt;            INVALID_TABLE_WIDTH = 4&lt;/P&gt;&lt;P&gt;            INVALID_TYPE        = 5&lt;/P&gt;&lt;P&gt;            NO_BATCH            = 6&lt;/P&gt;&lt;P&gt;            UNKNOWN_ERROR       = 7&lt;/P&gt;&lt;P&gt;            OTHERS              = 8.&lt;/P&gt;&lt;P&gt;&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>Thu, 16 Nov 2006 11:15:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/1664114#M294147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-16T11:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: open dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/1664115#M294148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope in AL11, file path will not start with 'C:\'.  Try to find out the logical file name for the file path.  else you can directly use the file name along with the path in OPEN DATASET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONSTANTS: c_lname LIKE filepath-pathintern VALUE 'Z_LOGICAL_FPATH'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: l_fname TYPE pathextern.&lt;/P&gt;&lt;P&gt;  DATA: l_error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR: l_fname, l_error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Get the application server file name along with the path&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'FILE_GET_NAME'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      logical_filename = c_lname&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      file_name        = l_fname&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      file_not_found   = 1&lt;/P&gt;&lt;P&gt;      OTHERS           = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET l_fname FOR APPENDING IN TEXT MODE ENCODING DEFAULT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2006 11:18:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/1664115#M294148</guid>
      <dc:creator>graghavendra_sharma</dc:creator>
      <dc:date>2006-11-16T11:18:14Z</dc:date>
    </item>
  </channel>
</rss>

