<?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: sequential file handling in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-file-handling/m-p/1700872#M307282</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;You can use t/code &amp;lt;b&amp;gt;CG3Y&amp;lt;/b&amp;gt; to download a file from application server to presentation server and t/code &amp;lt;b&amp;gt;CG3Z&amp;lt;/b&amp;gt; to upload a file to a application server from presentation server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)use transaction &amp;lt;b&amp;gt;AL11&amp;lt;/b&amp;gt; to c file in application server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kishan negi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Nov 2006 05:08:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-15T05:08:20Z</dc:date>
    <item>
      <title>sequential file handling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-file-handling/m-p/1700870#M307280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts, iam  new to this ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anybody send me some examples of file handling inthis...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need some example code to upload a file to application server and to download a file from application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and how to see that files in  application server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 05:06:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-file-handling/m-p/1700870#M307280</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T05:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: sequential file handling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-file-handling/m-p/1700871#M307281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ABAP/4  provides below statements for handling files:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET&lt;/P&gt;&lt;P&gt;CLOSE DATASET&lt;/P&gt;&lt;P&gt;DELETE DATASET&lt;/P&gt;&lt;P&gt;READ DATASET&lt;/P&gt;&lt;P&gt;TRANSFER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET&lt;/P&gt;&lt;P&gt;Opens the specified file. If you do not use any additions, the file is opened for reading in binary mode. It returns SY-SUBRC = 0 if the file is opened successfully. Otherwise SY-SUBRC = 8.&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;OPEN DATASET &amp;lt;dsn&amp;gt; [Additions].&lt;/P&gt;&lt;P&gt;Additions:&lt;/P&gt;&lt;P&gt;1.  FOR INPUT     ( Default )&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;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3ca6358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3ca6358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3ca6358411d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3ca6358411d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOSE DATASET&lt;/P&gt;&lt;P&gt;Closes the specified file.&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;CLOSE DATASET &amp;lt;dsn&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE DATASET&lt;/P&gt;&lt;P&gt;Deletes the file specified file. If it deletes the file successfully it returns SY-SUBRC = 0. Otherwise returns SY-SUBRC = 4. The possible reasons for failing  are:&lt;/P&gt;&lt;P&gt;The file does not exist.&lt;/P&gt;&lt;P&gt;The file is a directory.&lt;/P&gt;&lt;P&gt;The file is a program that is currently running.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ DATASET&lt;/P&gt;&lt;P&gt;Used to read a record from a file.&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;READ DATASET dsn INTO f.&lt;/P&gt;&lt;P&gt;Addition :  LENGTH len.&lt;/P&gt;&lt;P&gt;The actual length of the data objet read is placed in the field len after the read access. len must be defined as a variable. A syntax error will occur if you define it as a constant. The following example displays 9. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSFER statement&lt;/P&gt;&lt;P&gt;Used to write a record into a file.&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;TRANSFER f TO dsn. &lt;/P&gt;&lt;P&gt;Transfers the data object f to a sequential file whose name is specified in dsn. dsn can be a field or a literal. You must already have opened the file. . If the specified file is not already open, TRANSFER attempts to open the file FOR OUTPUT IN BINARY MODE. If this is not possible, a runtime error occurs.f can be a field, a string, or a structure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vibha &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 05:07:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-file-handling/m-p/1700871#M307281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T05:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: sequential file handling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-file-handling/m-p/1700872#M307282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;You can use t/code &amp;lt;b&amp;gt;CG3Y&amp;lt;/b&amp;gt; to download a file from application server to presentation server and t/code &amp;lt;b&amp;gt;CG3Z&amp;lt;/b&amp;gt; to upload a file to a application server from presentation server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)use transaction &amp;lt;b&amp;gt;AL11&amp;lt;/b&amp;gt; to c file in application server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kishan negi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 05:08:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-file-handling/m-p/1700872#M307282</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T05:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: sequential file handling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-file-handling/m-p/1700873#M307283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Open Dataset&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CATCH SYSTEM-EXCEPTIONS dataset_cant_open = 8.&lt;/P&gt;&lt;P&gt;    OPEN DATASET unix_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;  ENDCATCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Write to Dataset&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  LOOP AT it_str INTO is_str.&lt;/P&gt;&lt;P&gt;    CATCH SYSTEM-EXCEPTIONS dataset_not_open = 0  .&lt;/P&gt;&lt;P&gt;      TRANSFER is_str-str TO unix_file.&lt;/P&gt;&lt;P&gt;    ENDCATCH.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;    MESSAGE s138(zsm) WITH 'Data Downloaded to Unix File'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Close Dataset&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CLOSE DATASET unix_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSFER will write to teh aplication server&lt;/P&gt;&lt;P&gt;READ DATASET will read from teh application server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;- Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 05:09:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-file-handling/m-p/1700873#M307283</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2006-11-15T05:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: sequential file handling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-file-handling/m-p/1700874#M307284</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;&amp;lt;b&amp;gt;Upload Tab delimited file from application server into internal table:-&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/file/file_uptabsap.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/file/file_uptabsap.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.ittoolbox.com/code/archives.asp?d=2285&amp;amp;a=s&amp;amp;i=10" target="test_blank"&gt;http://sap.ittoolbox.com/code/archives.asp?d=2285&amp;amp;a=s&amp;amp;i=10&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.ittoolbox.com/code/archives.asp?d=3095&amp;amp;a=s&amp;amp;i=10" target="test_blank"&gt;http://sap.ittoolbox.com/code/archives.asp?d=3095&amp;amp;a=s&amp;amp;i=10&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.ittoolbox.com/code/archives.asp?d=2519&amp;amp;a=s&amp;amp;i=10" target="test_blank"&gt;http://sap.ittoolbox.com/code/archives.asp?d=2519&amp;amp;a=s&amp;amp;i=10&lt;/A&gt;&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>Wed, 15 Nov 2006 05:19:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-file-handling/m-p/1700874#M307284</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T05:19:14Z</dc:date>
    </item>
  </channel>
</rss>

