<?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 parallel cursor in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-cursor/m-p/994308#M74940</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can anyone tell me what is use of parallel cursor method?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Aug 2005 12:29:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-08-04T12:29:21Z</dc:date>
    <item>
      <title>parallel cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-cursor/m-p/994308#M74940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can anyone tell me what is use of parallel cursor method?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2005 12:29:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-cursor/m-p/994308#M74940</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-04T12:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: parallel cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-cursor/m-p/994309#M74941</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;you mean &amp;lt;a href="http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb3b23358411d1829f0000e829fbfe/frameset.htm"&amp;gt;Using a Cursor to Read Data&amp;lt;/a&amp;gt; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2005 12:49:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-cursor/m-p/994309#M74941</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2005-08-04T12:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: parallel cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-cursor/m-p/994310#M74942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess you are referring to the SE30 Tipps&amp;amp;Tricks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to avoid nested loops: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
nestedLoop:
* Entries: 100 (ITAB1), 1000 (ITAB2)
* Line width: 100
* Both tables sorted by key K

LOOP AT ITAB1 INTO WA1.
  LOOP AT ITAB2 INTO WA2
                WHERE K = WA1-K.
    " ...
  ENDLOOP.
ENDLOOP.

parallel cursors:
* Entries: 100 (ITAB1), 1000 (ITAB2)
* Line width: 100
* Both tables sorted by key K

I = 1.
LOOP AT ITAB1 INTO WA1.
  LOOP AT ITAB2 INTO WA2 FROM I.
    IF WA2-K &amp;lt;&amp;gt; WA1-K.
      I = SY-TABIX.
      EXIT.
    ENDIF.

    " ...
  ENDLOOP.
ENDLOOP.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;thats what the text says:&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If ITAB1 has n1 entries and ITAB2 has n2 entries, the time needed for&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;the nested loop with the straightforward algorithm is O(n1 * n2),&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;whereas the parallel cursor approach takes only O(n1 + n2) time.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;The above parallel cursor algorithm assumes that ITAB2 contains only&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;entries also contained in ITAB1.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If this assumption does not hold, the parallel cursor algorithm&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;gets slightly more complicated, but its performance characteristics&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;remain the same.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2005 13:06:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-cursor/m-p/994310#M74942</guid>
      <dc:creator>ChristianFi</dc:creator>
      <dc:date>2005-08-04T13:06:23Z</dc:date>
    </item>
  </channel>
</rss>

