<?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: OPEN CURSOR &amp; FETCH NEXT CURSOR? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-cursor-fetch-next-cursor/m-p/5323783#M1226956</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;I have small experiance in this area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So as of my knowledge this FETCH CURSOR will not you give result with debugging mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will throughs dump, if you try to debugg that..loop(Hope you know that fetch cursor works like a loop).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Naveen Inuganti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Mar 2009 09:49:37 GMT</pubDate>
    <dc:creator>naveen_inuganti2</dc:creator>
    <dc:date>2009-03-18T09:49:37Z</dc:date>
    <item>
      <title>OPEN CURSOR &amp; FETCH NEXT CURSOR?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-cursor-fetch-next-cursor/m-p/5323780#M1226953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the exact purpose of OPEN CURSOR &amp;amp; FETCH NEXT CURSOR?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What should happen for below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT l_use_fae IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  OPEN CURSOR WITH HOLD viqmelst_cursor FOR&lt;/P&gt;&lt;P&gt;              SELECT * FROM viqmelst&lt;/P&gt;&lt;P&gt;              WHERE    qmnum     IN r_qmnum&lt;/P&gt;&lt;P&gt;              AND      qmart     IN r_qmart&lt;/P&gt;&lt;P&gt;              AND      herkz     IN r_herkz&lt;/P&gt;&lt;P&gt;              AND      equnr     IN r_equnr&lt;/P&gt;&lt;P&gt;              AND      tplnr     IN r_tplnr&lt;/P&gt;&lt;P&gt;              AND      aufnr     IN r_aufnr&lt;/P&gt;&lt;P&gt;              AND      matnr     IN r_matnr&lt;/P&gt;&lt;P&gt;              AND      mawerk    IN r_mawerk&lt;/P&gt;&lt;P&gt;              AND      kunum     IN r_kunum&lt;/P&gt;&lt;P&gt;              AND      AUSWIRK   IN R_AUSWIRK&lt;/P&gt;&lt;P&gt;              AND      iloai     EQ iwoa_c_x&lt;/P&gt;&lt;P&gt;             AND      qmdab     NE '00000000'                "n759927&lt;/P&gt;&lt;P&gt;              AND      qmdab     LE x_qmdab&lt;/P&gt;&lt;P&gt;              AND      stat      EQ p_status&lt;/P&gt;&lt;P&gt;              ORDER BY qmnum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FETCH NEXT CURSOR viqmelst_cursor&lt;/P&gt;&lt;P&gt;          INTO CORRESPONDING FIELDS OF TABLE iselc&lt;/P&gt;&lt;P&gt;                                  PACKAGE SIZE xpackage_size.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When im trying to execute the above code, fetch statement sy-subrc is 4.&lt;/P&gt;&lt;P&gt;Pls let me know why..? As per the above select, I have a data in the database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Puppy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2009 09:39:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-cursor-fetch-next-cursor/m-p/5323780#M1226953</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-18T09:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN CURSOR &amp; FETCH NEXT CURSOR?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-cursor-fetch-next-cursor/m-p/5323781#M1226954</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 can check below link for detail explanation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="6849796"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Asit Purbey.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2009 09:44:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-cursor-fetch-next-cursor/m-p/5323781#M1226954</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-18T09:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN CURSOR &amp; FETCH NEXT CURSOR?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-cursor-fetch-next-cursor/m-p/5323782#M1226955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check the following link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/abapdocu/en/ABAPINTO_CLAUSE.htm" target="test_blank"&gt;http://help.sap.com/abapdocu/en/ABAPINTO_CLAUSE.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/abapdocu/en/ABENOPEN_CURSOR_ABEXA.htm" target="test_blank"&gt;http://help.sap.com/abapdocu/en/ABENOPEN_CURSOR_ABEXA.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sarbajit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sarbajit Majumdar on Mar 18, 2009 3:16 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sarbajit Majumdar on Mar 18, 2009 3:31 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sarbajit Majumdar on Mar 18, 2009 3:36 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sarbajit Majumdar on Mar 18, 2009 3:36 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2009 09:45:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-cursor-fetch-next-cursor/m-p/5323782#M1226955</guid>
      <dc:creator>sarbajitm</dc:creator>
      <dc:date>2009-03-18T09:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN CURSOR &amp; FETCH NEXT CURSOR?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-cursor-fetch-next-cursor/m-p/5323783#M1226956</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;I have small experiance in this area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So as of my knowledge this FETCH CURSOR will not you give result with debugging mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will throughs dump, if you try to debugg that..loop(Hope you know that fetch cursor works like a loop).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Naveen Inuganti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2009 09:49:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-cursor-fetch-next-cursor/m-p/5323783#M1226956</guid>
      <dc:creator>naveen_inuganti2</dc:creator>
      <dc:date>2009-03-18T09:49:37Z</dc:date>
    </item>
  </channel>
</rss>

