<?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: Split Task TO Process in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-task-to-process/m-p/4569148#M1078175</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;Use a cursor to read sections of the table at a time and then download the data in packets to the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Such as...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: cur TYPE cursor. 


OPEN CURSOR vur FOR 
  SELECT * 
         FROM spfli 
         ORDER BY carrid. 

DO. 
  FETCH NEXT CURSOR cur 
    INTO TABLE spfli_tab PACKAGE SIZE 100. 
  IF sy-subrc &amp;lt;&amp;gt; 0. 
    EXIT. 
  else.
*   Download to the server......
  ENDIF. 
ENDDO. 

CLOSE CURSOR: cur.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Darren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Sep 2008 10:53:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-29T10:53:25Z</dc:date>
    <item>
      <title>Split Task TO Process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-task-to-process/m-p/4569147#M1078174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;I have database more than 3,000,000 records. I want to download data to server. If  I select data into internal table &lt;/P&gt;&lt;P&gt;the program will be terminate "No storage space".&lt;/P&gt;&lt;P&gt;How I can separated process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2008 10:05:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-task-to-process/m-p/4569147#M1078174</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-29T10:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Split Task TO Process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-task-to-process/m-p/4569148#M1078175</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;Use a cursor to read sections of the table at a time and then download the data in packets to the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Such as...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: cur TYPE cursor. 


OPEN CURSOR vur FOR 
  SELECT * 
         FROM spfli 
         ORDER BY carrid. 

DO. 
  FETCH NEXT CURSOR cur 
    INTO TABLE spfli_tab PACKAGE SIZE 100. 
  IF sy-subrc &amp;lt;&amp;gt; 0. 
    EXIT. 
  else.
*   Download to the server......
  ENDIF. 
ENDDO. 

CLOSE CURSOR: cur.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Darren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2008 10:53:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-task-to-process/m-p/4569148#M1078175</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-29T10:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Split Task TO Process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-task-to-process/m-p/4569149#M1078176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Guru&lt;/P&gt;&lt;P&gt;   Thank You for reply but I use &lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;   OPEN CURSOR cursr FOR SELECT * FROM   ZTABLE.&lt;/P&gt;&lt;P&gt;      DO.&lt;/P&gt;&lt;P&gt;            FETCH NEXT CURSOR cursr  INTO  wa_ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          IF sy-subrc &amp;lt;&amp;gt; 0. CLOSE CURSOR cursr. EXIT. ENDIF.&lt;/P&gt;&lt;P&gt;          APPEND  wa_ztable TO   ITAB.&lt;/P&gt;&lt;P&gt;          ADD   1    TO      records. &lt;/P&gt;&lt;P&gt;                IF  records   EQ    100000.&lt;/P&gt;&lt;P&gt;                 CALL FUNCTION 'Z_SPLIT' STARTING NEW TASK &lt;/P&gt;&lt;P&gt;                  .....     &lt;/P&gt;&lt;P&gt;                  ......&lt;/P&gt;&lt;P&gt;                  CLEAR records.&lt;/P&gt;&lt;P&gt;               ENDIF.&lt;/P&gt;&lt;P&gt;        ENDDO.    &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   The Process has work only first task next task has error&lt;/P&gt;&lt;P&gt;   "DBIF_RSQL_INVALID_CURSOR"    &lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;   Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2008 11:47:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-task-to-process/m-p/4569149#M1078176</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-29T11:47:45Z</dc:date>
    </item>
  </channel>
</rss>

