<?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: how open cursor statement works in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-open-cursor-statement-works/m-p/3394988#M815177</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;A SELECT statement  defines and creates a result table with the name result_table_name .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An OPEN CURSOR statement is not permitted for result tables created with this SELECT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SELECT statement  is subject to the rules that were specified for the DECLARE CURSOR statement and those that were specified for the OPEN CURSOR statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on the search strategy, either all the rows in the result table are searched when the SELECT statement  is executed and the result table is physically generated, or each next result table row is searched when a FETCH statement is executed, without being physically stored. This must be taken into account for the time behavior of FETCH statements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Feb 2008 04:33:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-19T04:33:55Z</dc:date>
    <item>
      <title>how open cursor statement works</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-open-cursor-statement-works/m-p/3394984#M815173</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;  &lt;/P&gt;&lt;P&gt;OPEN CURSOR [WITH HOLD] dbcur FOR &lt;/P&gt;&lt;P&gt;  SELECT result &lt;/P&gt;&lt;P&gt;         FROM source &lt;/P&gt;&lt;P&gt;         [[FOR ALL ENTRIES IN itab] WHERE sql_cond] &lt;/P&gt;&lt;P&gt;         [GROUP BY group] [HAVING group_cond] &lt;/P&gt;&lt;P&gt;         [ORDER BY sort_key]. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to know what does open cursor statement do, how it works,  what does dbcur contain?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2008 11:01:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-open-cursor-statement-works/m-p/3394984#M815173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-18T11:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: how open cursor statement works</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-open-cursor-statement-works/m-p/3394985#M815174</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;&lt;STRONG&gt;dbcur is cursor name gn by u....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its like select statement....u hav used for all entries right....so if der are 3 records in ur int table and corresponding 3 records ll be fetched in select-endselect query right.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here in open cursor statement u don hav INTO(destination) right&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so after opening cursor......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FETCH NEXT CURSOR dbcur into wa1. &lt;/P&gt;&lt;P&gt;FETCH NEXT CURSOR dbcur into wa2. &lt;/P&gt;&lt;P&gt;FETCH NEXT CURSOR dbcur into wa3. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa1,wa2,wa3 ll have the 3 records....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;close cursor.....................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;jose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2008 11:09:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-open-cursor-statement-works/m-p/3394985#M815174</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-18T11:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: how open cursor statement works</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-open-cursor-statement-works/m-p/3394986#M815175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank u jose,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Can i Know what is the advantage of using this, instead of other select statements&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 03:41:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-open-cursor-statement-works/m-p/3394986#M815175</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T03:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: how open cursor statement works</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-open-cursor-statement-works/m-p/3394987#M815176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It does depend on why you are using open cursor functionality.  It is all about removing the dependance on reading data into a work area from the select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a very good example of this in saphelp - see the example of selecting smoking and non-smoking seats from the same table and the inner join simulation&lt;/P&gt;&lt;P&gt;[Using a Cursor to Read Data |http://help.sap.com/saphelp_nw04s/helpdata/en/fc/eb3b23358411d1829f0000e829fbfe/frameset.htm]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 04:15:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-open-cursor-statement-works/m-p/3394987#M815176</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T04:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: how open cursor statement works</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-open-cursor-statement-works/m-p/3394988#M815177</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;A SELECT statement  defines and creates a result table with the name result_table_name .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An OPEN CURSOR statement is not permitted for result tables created with this SELECT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SELECT statement  is subject to the rules that were specified for the DECLARE CURSOR statement and those that were specified for the OPEN CURSOR statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on the search strategy, either all the rows in the result table are searched when the SELECT statement  is executed and the result table is physically generated, or each next result table row is searched when a FETCH statement is executed, without being physically stored. This must be taken into account for the time behavior of FETCH statements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 04:33:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-open-cursor-statement-works/m-p/3394988#M815177</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T04:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: how open cursor statement works</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-open-cursor-statement-works/m-p/3394989#M815178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please check this links hope these would give you the idea for the open cursor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdb.org/7.4/htmhelp/40/1311f42fa511d3a98100a0c9449261/content.htm" target="test_blank"&gt;http://www.sapdb.org/7.4/htmhelp/40/1311f42fa511d3a98100a0c9449261/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdb.org/7.4/htmhelp/7b/0bdea252d746429420007a69bd06c7/content.htm" target="test_blank"&gt;http://www.sapdb.org/7.4/htmhelp/7b/0bdea252d746429420007a69bd06c7/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3b23358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3b23358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 04:35:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-open-cursor-statement-works/m-p/3394989#M815178</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T04:35:42Z</dc:date>
    </item>
  </channel>
</rss>

