<?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 using parallel cursor in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-parallel-cursor/m-p/4808439#M1125596</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;&lt;/P&gt;&lt;P&gt;In my program using nested loop. I want avoid that using parallel cursor. But In two nested loops, using &lt;/P&gt;&lt;P&gt;I done, but where has three nested loops how ? plz tell me or send code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex: my Requirment is like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at i_tab1 into wa_tab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at  s_tab into wa_tab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      loop at k_tab into wa_tab3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end loop.&lt;/P&gt;&lt;P&gt;end loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz send code using parallel cursor, if u get more points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx&lt;/P&gt;&lt;P&gt;srinu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 30 Nov 2008 10:10:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-30T10:10:27Z</dc:date>
    <item>
      <title>using parallel cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-parallel-cursor/m-p/4808439#M1125596</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;&lt;/P&gt;&lt;P&gt;In my program using nested loop. I want avoid that using parallel cursor. But In two nested loops, using &lt;/P&gt;&lt;P&gt;I done, but where has three nested loops how ? plz tell me or send code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex: my Requirment is like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at i_tab1 into wa_tab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at  s_tab into wa_tab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      loop at k_tab into wa_tab3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end loop.&lt;/P&gt;&lt;P&gt;end loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz send code using parallel cursor, if u get more points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx&lt;/P&gt;&lt;P&gt;srinu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Nov 2008 10:10:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-parallel-cursor/m-p/4808439#M1125596</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-30T10:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: using parallel cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-parallel-cursor/m-p/4808440#M1125597</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; Check this Code .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  zparallel_cursor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES:&lt;/P&gt;&lt;P&gt;  likp,&lt;/P&gt;&lt;P&gt;  lips.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  t_likp  TYPE TABLE OF likp,&lt;/P&gt;&lt;P&gt;  t_lips  TYPE TABLE OF lips.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  w_runtime1 TYPE i,&lt;/P&gt;&lt;P&gt;  w_runtime2 TYPE i,&lt;/P&gt;&lt;P&gt;  w_index LIKE sy-index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  SELECT *&lt;/P&gt;&lt;P&gt;    FROM likp&lt;/P&gt;&lt;P&gt;    INTO TABLE t_likp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT *&lt;/P&gt;&lt;P&gt;    FROM lips&lt;/P&gt;&lt;P&gt;    INTO TABLE t_lips.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  GET RUN TIME FIELD w_runtime1.&lt;/P&gt;&lt;P&gt;  SORT t_likp BY vbeln.&lt;/P&gt;&lt;P&gt;  SORT t_lips BY vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT t_likp INTO likp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT t_lips INTO lips FROM w_index.&lt;/P&gt;&lt;P&gt;      IF likp-vbeln NE lips-vbeln.&lt;/P&gt;&lt;P&gt;        w_index = sy-tabix.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  GET RUN TIME FIELD w_runtime2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  w_runtime2 = w_runtime2 - w_runtime1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE w_runtime2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either you can use the above code ..or ucan replace the inside loops with read statement of lopp with where clause depending on requirement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: avinash kodarapu on Nov 30, 2008 4:04 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Nov 2008 10:34:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-parallel-cursor/m-p/4808440#M1125597</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-30T10:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: using parallel cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-parallel-cursor/m-p/4808441#M1125598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;small correcction, this is not the parallel processing way to code:(Since parallel processin needs the index to loop from, You need the read statment to code it..)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT t_likp BY vbeln.&lt;/P&gt;&lt;P&gt;SORT t_lips BY vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT t_likp INTO likp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Read table t_lips into lips with key vbeln = likp-vbeln&lt;/STRONG&gt;LOOP AT t_lips INTO lips FROM w_index.&lt;/P&gt;&lt;P&gt;if sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;LOOP AT t_lips INTO lips FROM w_index.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; do processing----&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AT END OF &amp;lt;Key field&amp;gt; (here it is VBELN)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EXIT. " Exit of the inner loop pn t_likp or else it will go into infinite loops&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDAT.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Nov 2008 13:33:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-parallel-cursor/m-p/4808441#M1125598</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-30T13:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: using parallel cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-parallel-cursor/m-p/4808442#M1125599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SORT t_likp BY vbeln.&lt;/P&gt;&lt;P&gt;SORT t_lips BY vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT t_likp INTO likp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Read table t_lips into lips with key vbeln = likp-vbeln&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;LOOP AT t_lips INTO lips FROM sy-tabix.&lt;/P&gt;&lt;P&gt;...........do processing---- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT END OF &amp;lt;Key field&amp;gt; (here it is VBELN)&lt;/P&gt;&lt;P&gt;EXIT. " Exit of the inner loop pn t_likp or else it will go into infinite loops&lt;/P&gt;&lt;P&gt;ENDAT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Nov 2008 13:34:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-parallel-cursor/m-p/4808442#M1125599</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-30T13:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: using parallel cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-parallel-cursor/m-p/4808443#M1125600</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;When nested loop beceomes necessary than parallel cursor is really helpful in improving the performance.&lt;/P&gt;&lt;P&gt;It will help us to avoid complete looping of the internal table .&lt;/P&gt;&lt;P&gt;You can see the advantages if their are two-three internal tables inside the loop.&lt;/P&gt;&lt;P&gt;Check this link for an example of parallel cursor"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/what-is-parallel-cursor-concept.htm" target="test_blank"&gt;http://www.sap-img.com/abap/what-is-parallel-cursor-concept.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.articlesbase.com/programming-articles/sap-performance-tuning-using-parallel-cursor-324225.html" target="test_blank"&gt;http://www.articlesbase.com/programming-articles/sap-performance-tuning-using-parallel-cursor-324225.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Neha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Nov 2008 13:35:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-parallel-cursor/m-p/4808443#M1125600</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-30T13:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: using parallel cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-parallel-cursor/m-p/4808444#M1125601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look in the Code Gallery for [ABAP Code for Parallel Cursor - Loop Processing |https://wiki.sdn.sap.com/wiki/display/Snippets/ABAP&lt;EM&gt;Code&lt;/EM&gt;for&lt;EM&gt;Parallel&lt;/EM&gt;Cursor&lt;EM&gt;-&lt;/EM&gt;Loop+Processing]. (or directly [Avoiding Nested Loops Using Parallel Cursors |http://karsap.blogspot.com/2007/06/avoiding-nested-loops-using-parallel_19.html] and [Improved version of Parallel Cursor |http://karsap.blogspot.com/2007/06/improved-version-of-parallel-cursor.html])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Nov 2008 13:54:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-parallel-cursor/m-p/4808444#M1125601</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-11-30T13:54:27Z</dc:date>
    </item>
  </channel>
</rss>

