<?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/2956574#M697463</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You have to select from the table only once, that is the best coding practice. &lt;/P&gt;&lt;P&gt;While populating internal table u can use parallel cursor that is only on internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;STRONG&gt;reward if helpful&lt;/STRONG&gt;*&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Oct 2007 08:32:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-22T08:32:50Z</dc:date>
    <item>
      <title>parallel cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-cursor/m-p/2956573#M697462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;im trying to access mara table 4 times by writing 4 different select conditions and moving them in to four different internal tables. can i use parallel cursor for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 08:29:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-cursor/m-p/2956573#M697462</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T08:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: parallel cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-cursor/m-p/2956574#M697463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You have to select from the table only once, that is the best coding practice. &lt;/P&gt;&lt;P&gt;While populating internal table u can use parallel cursor that is only on internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;STRONG&gt;reward if helpful&lt;/STRONG&gt;*&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 08:32:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-cursor/m-p/2956574#M697463</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T08:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: parallel cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-cursor/m-p/2956575#M697464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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;PRE&gt;&lt;CODE&gt;select * from mara into lt1_mara where matnr in s_matnr. 
loop lt1_mara.
  .....
endloop. 
.......
.......
select * from mara where meins in s_meins.
loop lt2_mara.
  .....
endloop. 
......
select * from mara where matkl in s_matkl.
loop lt3_mara.
  .....
endloop.  
.......&lt;/CODE&gt;&lt;/PRE&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;PRE&gt;&lt;CODE&gt;select * from mara into lt_mara where   matnr in s_matnr
                                                     or meins in s_meins
                                                     or matkl in s_matkl. 

loop at lt_mara where  matnr in s_matnr.
......
endloop. 

.....
.....
loop at lt_mara where  meins in s_meins.
......
endloop. 

.....
.....
loop at lt_mara where  matkl in s_matkl.
......
endloop. 
...............
....................&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;the above will misimise your database access.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 08:36:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-cursor/m-p/2956575#M697464</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T08:36:02Z</dc:date>
    </item>
  </channel>
</rss>

