<?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 Something about  open cursor . in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/something-about-open-cursor/m-p/3679872#M886154</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys ,  I need an advice, I'm doing the following code, but I´n not sure  if it can work or could be very slow , the thing is that que ti_referenc could have more than 1 million entries , what else is possible to do ? &lt;/P&gt;&lt;P&gt;      LOOP AT ti_referenc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        OPEN CURSOR WITH HOLD cursor1 FOR&lt;/P&gt;&lt;P&gt;         SELECT * FROM zpf_cob_doc_ext&lt;/P&gt;&lt;P&gt;          WHERE referencia = ti_referenc-ref.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        FETCH next cursor cursor1&lt;/P&gt;&lt;P&gt;        APPENDING CORRESPONDING FIELDS OF TABLE it_zpf_cob_doc_ext&lt;/P&gt;&lt;P&gt;        PACKAGE SIZE p_commit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CLOSE CURSOR cursor1.&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;thank you  a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Apr 2008 14:40:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-09T14:40:29Z</dc:date>
    <item>
      <title>Something about  open cursor .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/something-about-open-cursor/m-p/3679872#M886154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys ,  I need an advice, I'm doing the following code, but I´n not sure  if it can work or could be very slow , the thing is that que ti_referenc could have more than 1 million entries , what else is possible to do ? &lt;/P&gt;&lt;P&gt;      LOOP AT ti_referenc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        OPEN CURSOR WITH HOLD cursor1 FOR&lt;/P&gt;&lt;P&gt;         SELECT * FROM zpf_cob_doc_ext&lt;/P&gt;&lt;P&gt;          WHERE referencia = ti_referenc-ref.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        FETCH next cursor cursor1&lt;/P&gt;&lt;P&gt;        APPENDING CORRESPONDING FIELDS OF TABLE it_zpf_cob_doc_ext&lt;/P&gt;&lt;P&gt;        PACKAGE SIZE p_commit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CLOSE CURSOR cursor1.&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;thank you  a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 14:40:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/something-about-open-cursor/m-p/3679872#M886154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T14:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Something about  open cursor .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/something-about-open-cursor/m-p/3679873#M886155</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 can even add additional code as below ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN CURSOR WITH HOLD cursor1 FOR&lt;/P&gt;&lt;P&gt;SELECT * FROM zpf_cob_doc_ext&lt;/P&gt;&lt;P&gt;WHERE referencia = ti_referenc-ref.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DO.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;FETCH next cursor cursor1&lt;/P&gt;&lt;P&gt;APPENDING CORRESPONDING FIELDS OF TABLE it_zpf_cob_doc_ext&lt;/P&gt;&lt;P&gt;PACKAGE SIZE p_commit.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF sy-subrc&lt;/STRONG&gt; &amp;lt;&amp;gt; &lt;STRONG&gt;0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOSE CURSOR cursor1.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EXIT.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDIF.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDDO.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 14:44:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/something-about-open-cursor/m-p/3679873#M886155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T14:44:23Z</dc:date>
    </item>
  </channel>
</rss>

