<?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: what is parallel cursor in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-parallel-cursor/m-p/3101972#M736092</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer the below links...&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;A href="http://help.sap.com/erp2005_ehp_04/helpdata/EN/fc/eb3b23358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/erp2005_ehp_04/helpdata/EN/fc/eb3b23358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://learnabap.blogspot.com/2007/05/performance-tuning-using-parallel.html" target="test_blank"&gt;http://learnabap.blogspot.com/2007/05/performance-tuning-using-parallel.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Jun 2009 11:13:22 GMT</pubDate>
    <dc:creator>former_member212005</dc:creator>
    <dc:date>2009-06-15T11:13:22Z</dc:date>
    <item>
      <title>what is parallel cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-parallel-cursor/m-p/3101969#M736089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is parallel cursor?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 05:34:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-parallel-cursor/m-p/3101969#M736089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-20T05:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: what is parallel cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-parallel-cursor/m-p/3101970#M736090</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;see example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To restrict the database access, you can select the records from mara for the common conditions and the read/ loop according to the specific conditions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from mara into lt1_mara where matnr in s_matnr. &lt;/P&gt;&lt;P&gt;loop lt1_mara.&lt;/P&gt;&lt;P&gt;  .....&lt;/P&gt;&lt;P&gt;endloop. &lt;/P&gt;&lt;P&gt;.......&lt;/P&gt;&lt;P&gt;.......&lt;/P&gt;&lt;P&gt;select * from mara where meins in s_meins.&lt;/P&gt;&lt;P&gt;loop lt2_mara.&lt;/P&gt;&lt;P&gt;  .....&lt;/P&gt;&lt;P&gt;endloop. &lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;select * from mara where matkl in s_matkl.&lt;/P&gt;&lt;P&gt;loop lt3_mara.&lt;/P&gt;&lt;P&gt;  .....&lt;/P&gt;&lt;P&gt;endloop.  &lt;/P&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;&lt;P&gt;instead of the above you can use: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from mara into lt_mara where   matnr in s_matnr&lt;/P&gt;&lt;P&gt;                                                     or meins in s_meins&lt;/P&gt;&lt;P&gt;                                                     or matkl in s_matkl. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;loop at lt_mara where  matnr in s_matnr.&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;endloop. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;loop at lt_mara where  meins in s_meins.&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;endloop. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;loop at lt_mara where  matkl in s_matkl.&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;endloop. &lt;/P&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;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the above will misimise your database access.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 05:39:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-parallel-cursor/m-p/3101970#M736090</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-20T05:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: what is parallel cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-parallel-cursor/m-p/3101971#M736091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi santanu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Most common performance problem that occurs in ABAP programs are because of huge number of records in the internal tables. The problem complexifies if program has huge nested internal tables. How much ever efficient data selects routines are, data processing routines would be contibuting significantly for the bad performance. The root cause for the same when analysed would be revealed that, the where condition that are used in inner loops expend significant amount of processing time. The idea is avoid where conditions in the inner loops by maintaining the loop indexes manually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Conventional Method  Code for nested loops&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;loop at lt_vbpa into wa_vbpa.&lt;/P&gt;&lt;P&gt;  loop at lt_kna1 into wa_kna1 where kunnr = wa_vbpa-kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="6" type="ul"&gt;&lt;P&gt;Your Actual logic within inner loop ******&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Preferred Method Parallel Cursor method &amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort: lt_vbpa by vbeln,  "Sorting by key is very important&lt;/P&gt;&lt;P&gt;      lt_kna1 by kunnr.  "Same key which is used for where condition is used here&lt;/P&gt;&lt;P&gt;loop at lt_vbpa into wa_vbpa. &lt;/P&gt;&lt;P&gt;  read lt_kna1 into wa_kna1     " This sets the sy-tabix&lt;/P&gt;&lt;P&gt;       with key kunnr = wa_vbpa-kunnr&lt;/P&gt;&lt;P&gt;       binary search. &lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.              "Does not enter the inner loop&lt;/P&gt;&lt;P&gt;    v_kna1_index = sy-tabix.&lt;/P&gt;&lt;P&gt;    loop at lt_kna1 into wa_kna1 from v_kna1_index. "Avoiding Where clause&lt;/P&gt;&lt;P&gt;      if wa_kna1-kunnr &amp;lt;&amp;gt; wa_vbpa-kunnr.  "This checks whether to exit out of loop &lt;/P&gt;&lt;P&gt;        exit.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="6" type="ul"&gt;&lt;P&gt;Your Actual logic within inner loop ******&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   endloop. "KNA1 Loop&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endloop.  " VBPA Loop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 05:57:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-parallel-cursor/m-p/3101971#M736091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-20T05:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: what is parallel cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-parallel-cursor/m-p/3101972#M736092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer the below links...&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;A href="http://help.sap.com/erp2005_ehp_04/helpdata/EN/fc/eb3b23358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/erp2005_ehp_04/helpdata/EN/fc/eb3b23358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://learnabap.blogspot.com/2007/05/performance-tuning-using-parallel.html" target="test_blank"&gt;http://learnabap.blogspot.com/2007/05/performance-tuning-using-parallel.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2009 11:13:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-parallel-cursor/m-p/3101972#M736092</guid>
      <dc:creator>former_member212005</dc:creator>
      <dc:date>2009-06-15T11:13:22Z</dc:date>
    </item>
  </channel>
</rss>

