<?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: parallel cursor. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-cursor/m-p/3598741#M866718</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balaji,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code is fine if have one entry in itab2 for itab1 and one entry for itab3 in itab1 then you code is fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if we have 2 record(itab2) for 1 entry in itab1 and so on it doesn't work as per the requirement &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Mar 2008 11:01:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-25T11:01:09Z</dc:date>
    <item>
      <title>parallel cursor.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-cursor/m-p/3598739#M866716</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;Please explain with exactly how the parallel cursor  means (Whether only using INDEX).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a scenario like this &lt;/P&gt;&lt;P&gt;three internal tables i am using loop at itab WHERE,&lt;/P&gt;&lt;P&gt;how to make the same using parallel cursor, which will improve the performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chk this i want similar scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables:ekko,ekpo.&lt;/P&gt;&lt;P&gt;*parameter: p_ebeln like ekko-ebeln.&lt;/P&gt;&lt;P&gt;select-options: p_ebeln for ekko-ebeln.&lt;/P&gt;&lt;P&gt;     data:       i type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: itab1 type table of ekko with header line,&lt;/P&gt;&lt;P&gt;      itab2 type table of ekpo with header line,&lt;/P&gt;&lt;P&gt;      itab3 type table of ekbe with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from ekko into table itab1 where ebeln in p_ebeln.&lt;/P&gt;&lt;P&gt;select * from ekpo into table itab2 where ebeln in p_ebeln.&lt;/P&gt;&lt;P&gt;select * from ekbe into table itab3 where ebeln in p_ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*i = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;write / 'loop 1'.&lt;/P&gt;&lt;P&gt;      loop at itab2 where ebeln = itab1-ebeln.&lt;/P&gt;&lt;P&gt;      write / 'loop2'.&lt;/P&gt;&lt;P&gt;              loop at itab3 ebeln = itab2-ebeln ebelp = itab2-ebelp.&lt;/P&gt;&lt;P&gt;                 write / 'loop3'.&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;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points assured.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 08:49:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-cursor/m-p/3598739#M866716</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T08:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: parallel cursor.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-cursor/m-p/3598740#M866717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the below code. Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
sort iekpo by ebeln ebelp.
sort iekbe by ebeln ebelp.

loop at iekko.
 clear: lv_inx.
 read table iekpo with key ebeln = iekko-ebeln binary search.
 if sy-subrc = 0.
   lv_indx = sy-tabix.
   loop at iekpo from lv_indx.
     if iekko-ebeln = iekpo-ebeln.
       clear: lv_indx1.
       read table iekbe with key ebeln = iekpo-ebeln
                                            ebelp = iekpo-ebelp
                                            binary search.
       if sy-subrc = 0.
          lv_indx1 = sy-tabix.
          loop at iekbe from lv_indx1.
             if iekpo-ebeln = iekbe-ebeln and
                iekpo-ebelp = iekbe-ebelp.
                 &amp;lt;&amp;lt;&amp;lt; do ur logic&amp;gt;&amp;gt;
             else.
                 clear: lv_indx1.
                 exit.
              endif.
            endloop.
     else.
       clear: lv_indx.
       exit.
     endif.
   endloop.
 endif.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Balaji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 09:09:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-cursor/m-p/3598740#M866717</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T09:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: parallel cursor.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-cursor/m-p/3598741#M866718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balaji,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code is fine if have one entry in itab2 for itab1 and one entry for itab3 in itab1 then you code is fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if we have 2 record(itab2) for 1 entry in itab1 and so on it doesn't work as per the requirement &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 11:01:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-cursor/m-p/3598741#M866718</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T11:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: parallel cursor.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-cursor/m-p/3598742#M866719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
sort iekpo by ebeln ebelp.
sort iekbe by ebeln ebelp.
 
loop at iekko.
 write:/ iekko.
 clear: lv_inx.
 read table iekpo with key ebeln = iekko-ebeln binary search.
 if sy-subrc = 0.
   lv_indx = sy-tabix.
   loop at iekpo from lv_indx.
     if iekko-ebeln = iekpo-ebeln.
       write:/ iekpo.
       clear: lv_indx1.
       read table iekbe with key ebeln = iekpo-ebeln
                                            ebelp = iekpo-ebelp
                                            binary search.
       if sy-subrc = 0.
          lv_indx1 = sy-tabix.
          loop at iekbe from lv_indx1.
             if iekpo-ebeln = iekbe-ebeln and
                iekpo-ebelp = iekbe-ebelp.
                write:/ iekbe.
                 &amp;lt;&amp;lt;&amp;lt; do ur logic&amp;gt;&amp;gt;
             else.
                 clear: lv_indx1.
                 exit.
              endif.
          endloop.
      endif.
   endloop.
 endif.
endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Balaji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 11:55:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-cursor/m-p/3598742#M866719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T11:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: parallel cursor.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-cursor/m-p/3598743#M866720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi balaji,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx, whether this will be more efficient then using Loop at with where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 12:27:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-cursor/m-p/3598743#M866720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T12:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: parallel cursor.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-cursor/m-p/3598744#M866721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This will be more efficient when the number of records in itab1, itab2 and itab3 are more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will reduce lot of processing time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rwd points if helpful. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Balaji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 12:31:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-cursor/m-p/3598744#M866721</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T12:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: parallel cursor.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-cursor/m-p/3598745#M866722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;[www.saptechnical.com/Tutorials/ABAP/ParallelCursor.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Got to this link what u require is there perfect with examples&lt;/P&gt;&lt;P&gt;and about the performances while using parallel cursor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;priya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 12:37:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-cursor/m-p/3598745#M866722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T12:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: parallel cursor.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-cursor/m-p/3598746#M866723</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 this link.&lt;/P&gt;&lt;P&gt;/people/rob.burbank/blog/2006/02/07/performance-of-nested-loops&lt;/P&gt;&lt;P&gt;Rob shows the performance comparing 4 routines, including nested loop, indexed and parallel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and this.&lt;/P&gt;&lt;P&gt;/people/siegfried.boes/blog/2007/09/12/runtimes-of-reads-and-loops-on-internal-tables&lt;/P&gt;&lt;P&gt;Siegfried explain how parallel works. Good job&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 12:47:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-cursor/m-p/3598746#M866723</guid>
      <dc:creator>rodrigo_paisante3</dc:creator>
      <dc:date>2008-03-25T12:47:11Z</dc:date>
    </item>
  </channel>
</rss>

