<?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 OPEN DATASET in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/4788866#M1121646</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, friends..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to save in App. Server same records, using the sintax below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... to create the file in App. I use :&lt;/P&gt;&lt;P&gt;OPEN DATASET file_ws 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;... and to input the data into the file a use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_size = '280'.&lt;/P&gt;&lt;P&gt;loop at t_file_11 .&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;TRANSFER t_file_11 TO file LENGTH v_size.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I access the folder in App Server, the file doesn't exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and when I execute the program in Foreground using GUI_DOWNLOAD, the file is created normally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Flavio Ferreira on Nov 28, 2008 7:19 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Nov 2008 18:19:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-28T18:19:03Z</dc:date>
    <item>
      <title>OPEN DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/4788866#M1121646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, friends..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to save in App. Server same records, using the sintax below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... to create the file in App. I use :&lt;/P&gt;&lt;P&gt;OPEN DATASET file_ws 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;... and to input the data into the file a use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_size = '280'.&lt;/P&gt;&lt;P&gt;loop at t_file_11 .&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;TRANSFER t_file_11 TO file LENGTH v_size.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I access the folder in App Server, the file doesn't exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and when I execute the program in Foreground using GUI_DOWNLOAD, the file is created normally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Flavio Ferreira on Nov 28, 2008 7:19 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2008 18:19:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/4788866#M1121646</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-28T18:19: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/4788867#M1121647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OPEN DATASET FILE _WS FOR OUTPUT IN TEXT MODE  &lt;/P&gt;&lt;P&gt;                                                                         MESSAGE D_MSG_TEXT&lt;STRONG&gt;.(this will allow you to trace the error)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;  WRITE: 'File cannot be opened. Reason:', D_MSG_TEXT.&lt;/P&gt;&lt;P&gt;  EXIT.&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at t_file_11 .&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;TRANSFER t_file_11 TO &lt;STRONG&gt;FILE_WS&lt;/STRONG&gt; LENGTH v_size.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOSE DATASET FILE_WS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Neha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Neha Shukla on Nov 29, 2008 12:03 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Neha Shukla on Nov 29, 2008 12:06 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2008 18:32:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/4788867#M1121647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-28T18:32: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/4788868#M1121648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Flavio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We use the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: dsn(40).
CONCATENATE '\\' SY-HOST '\usr\datafile.dat' INTO dsn.
DATA: wa_itab like line of itab.

OPEN DATASET dsn FOR APPENDING IN TEXT MODE ENCODING DEFAULT.
  IF SY-SUBRC = 0.
    LOOP AT ITAB INTO wa_itab.
      TRANSFER wa_itab TO dsn.
    ENDLOOP.
  ENDIF.
CLOSE DATASET dsn.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And we don't have any issues.  The one problem we had when first setting this up was with write access to the directory.  Check with your BASIS and/or network guys to make sure that the correct users are assigned privileges to write to the application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2008 19:14:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/4788868#M1121648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-28T19:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/4788869#M1121649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data : fpath(100),&lt;/P&gt;&lt;P&gt;       sorg(10),&lt;/P&gt;&lt;P&gt;       div(11),&lt;/P&gt;&lt;P&gt;       reg(5).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : html type table of w3html with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameter :    ip_add(15) type c default '192.168.0.2',&lt;/P&gt;&lt;P&gt;                   share(15)  type c default 'TEMP\ZTEST'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate '&lt;BR /&gt;' ip_add '\' share '\' sorg '-' div '.HTM' into fpath.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open dataset fpath for output in text mode encoding non-unicode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;         loop at html.&lt;/P&gt;&lt;P&gt;                 transfer html to fpath.&lt;/P&gt;&lt;P&gt;         endloop.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;      close dataset fpath.&lt;/P&gt;&lt;P&gt;message i001(ze) with 'File has generated on Foreground Process !!'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Nov 2008 07:25:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/4788869#M1121649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-29T07:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/4788870#M1121650</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; Try this Code....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          OPEN DATASET filename FOR OUTPUT IN TEXT MODE&lt;/P&gt;&lt;P&gt;               IGNORING CONVERSION ERRORS ENCODING UTF-8 MESSAGE msg.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Loop at itab.&lt;/P&gt;&lt;P&gt;  transfer content to filename.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  close dataset filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the file in AL11 according the path specified by you or check the file in DIR_TEMP directory...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to this Link...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="5153228"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="5050440"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: avinash kodarapu on Nov 30, 2008 6:14 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Nov 2008 08:14:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/4788870#M1121650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-29T08:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/4788871#M1121651</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 think you are a little confused where the file system is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GUI_DOWNLOAD uses the presentation server file system  i.e. windows C:\ etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET uses the application server file system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the first only when running online, the later only for backgroung processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ariel Fisher&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Nov 2008 07:57:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/4788871#M1121651</guid>
      <dc:creator>former_member195999</dc:creator>
      <dc:date>2008-11-30T07:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/4788872#M1121652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you want to save the file in application server&lt;/P&gt;&lt;P&gt;just move from presentation server&lt;/P&gt;&lt;P&gt;using CG3z&lt;/P&gt;&lt;P&gt;while the presentation server file path&lt;/P&gt;&lt;P&gt;and give target file path&lt;/P&gt;&lt;P&gt;give ASC type &lt;/P&gt;&lt;P&gt;and to confirm the path of the application server&lt;/P&gt;&lt;P&gt;just go to AL11 get the directory name&lt;/P&gt;&lt;P&gt;hope it will work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if at all you want to download from SAP database&lt;/P&gt;&lt;P&gt;use GUI_download and then move this file to application server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use your method too&lt;/P&gt;&lt;P&gt;you can follow this method also&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Nov 2008 12:36:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/4788872#M1121652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-30T12:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN DATASET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/4788873#M1121653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi flavio,&lt;/P&gt;&lt;P&gt;to work with application server ,while creating a new file you must declare the file using the datatype rlgrap-filename like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: pa_file type rlgrap_filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;initialization: pa_file = '/usr/sap/tmp'.&lt;/P&gt;&lt;P&gt;(you can add your file name with this)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open dataset pa_file for output in text mode encoding default.&lt;/P&gt;&lt;P&gt; rest same as u have done&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this &lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;geeta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2008 06:03:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset/m-p/4788873#M1121653</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-01T06:03:42Z</dc:date>
    </item>
  </channel>
</rss>

