<?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: Large Table / Export with SQL into many little files in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/large-table-export-with-sql-into-many-little-files/m-p/6706066#M1453131</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The OPEN CURSOR approach will run into difficulties if there are any COMMITs (may be implied) in the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 06 Mar 2010 21:16:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-06T21:16:22Z</dc:date>
    <item>
      <title>Large Table / Export with SQL into many little files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/large-table-export-with-sql-into-many-little-files/m-p/6706064#M1453129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi@all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at the moment we have a report which download  many sap data tables into one big file for each table.&lt;/P&gt;&lt;P&gt;example: BSEG have 25 million records, so the file bseg.txt is maybe 20gigabyte large.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to split this into 25 files with 1 million records? like "BSEG_001.txt, BSEG_002.txt...."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards, &lt;/P&gt;&lt;P&gt;alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Mar 2010 14:10:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/large-table-export-with-sql-into-many-little-files/m-p/6706064#M1453129</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-06T14:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Large Table / Export with SQL into many little files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/large-table-export-with-sql-into-many-little-files/m-p/6706065#M1453130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hi, 
&amp;lt;li&amp;gt;There is one statement called &lt;STRONG&gt;OPEN CURSOR&lt;/STRONG&gt; , you can use that . 
&amp;lt;li&amp;gt;Try this test program.
&lt;PRE&gt;&lt;CODE&gt;
 REPORT ztest_notepad.
DATA:it_nfal     TYPE STANDARD TABLE OF nfal WITH HEADER LINE.
DATA:c1          TYPE cursor.
DATA:flag        TYPE c.
DATA:no_of_lines TYPE i VALUE '1000'.

START-OF-SELECTION.
OPEN CURSOR:c1 FOR SELECT * FROM nfal.
DO.
  IF flag NE 'X'.
    FETCH NEXT CURSOR c1 APPENDING TABLE it_nfal PACKAGE SIZE no_of_lines.
    IF sy-subrc &amp;lt;&amp;gt; 0.
      CLOSE CURSOR c1.
      flag = 'X'.
    ENDIF.
  ENDIF.
  IF flag = 'X'.
    EXIT.
  ENDIF.
ENDDO. &lt;/CODE&gt;&lt;/PRE&gt;
Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Mar 2010 16:24:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/large-table-export-with-sql-into-many-little-files/m-p/6706065#M1453130</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2010-03-06T16:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Large Table / Export with SQL into many little files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/large-table-export-with-sql-into-many-little-files/m-p/6706066#M1453131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The OPEN CURSOR approach will run into difficulties if there are any COMMITs (may be implied) in the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Mar 2010 21:16:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/large-table-export-with-sql-into-many-little-files/m-p/6706066#M1453131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-06T21:16:22Z</dc:date>
    </item>
  </channel>
</rss>

