<?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: DBIF_RSQL_INVALID_CURSOR dump during debugging in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dbif-rsql-invalid-cursor-dump-during-debugging/m-p/862270#M48288</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roberto,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this time in another forum. The reason for your dump is, that the debugging procedure causes a commit work. This closes your current cursor. You should try the following code:&lt;/P&gt;&lt;P&gt;SELECT * into corresponding fields of gltab FROM GLT0 &lt;/P&gt;&lt;P&gt;WHERE RLDNR = '00' &lt;/P&gt;&lt;P&gt;AND RRCTY = '0' &lt;/P&gt;&lt;P&gt;AND RVERS = '001' &lt;/P&gt;&lt;P&gt;AND BUKRS = COMP_CODE &lt;/P&gt;&lt;P&gt;AND RYEAR = FISC_YEAR &lt;/P&gt;&lt;P&gt;AND RACCT = GL_ACCOUNT &lt;/P&gt;&lt;P&gt;AND RPMAX = '016'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As data is not summarized in this case you need to sum it in a following loop or using &lt;/P&gt;&lt;P&gt;select sum(field1) sum(field2) ...&lt;/P&gt;&lt;P&gt;But in this case you also need to implement a group by clause in your select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need more information, let me know.&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;Siggi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Feb 2005 13:53:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-02-17T13:53:05Z</dc:date>
    <item>
      <title>DBIF_RSQL_INVALID_CURSOR dump during debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dbif-rsql-invalid-cursor-dump-during-debugging/m-p/862268#M48286</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;I'm trying to debug in SE37 'BAPI_GL_ACC_GETPERIODBALANCES' RFC-FM but, in a select loop (within READ_BALANCES_HW form), I'm able to see the first select loop but, when the system tries to process the second one, this dump occurs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Run-time error DBIF_RSQL_INVALID_CURSOR&lt;/P&gt;&lt;P&gt;Exception CX_SY_OPEN_SQL_DB       &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've already found and read OSS Notes 2104 and 675, but no COMMIT WORK message appears in the ABAP debugger and, however, we extended available number of work processes for debugging in the profile parameters (rdisp/wpdbug_max_no = 8)...&lt;/P&gt;&lt;P&gt;Within the select loop there is also a COLLECT (related to an internal table) after a MOVE-CORRESPONDING...can this statement lead to a database commit that causes the database to lose the cursor ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the standard code...&lt;/P&gt;&lt;P&gt;SELECT * FROM GLT0                  &lt;/P&gt;&lt;P&gt;         WHERE RLDNR = '00'         &lt;/P&gt;&lt;P&gt;         AND   RRCTY = '0'          &lt;/P&gt;&lt;P&gt;         AND   RVERS = '001'        &lt;/P&gt;&lt;P&gt;         AND   BUKRS = COMP_CODE    &lt;/P&gt;&lt;P&gt;         AND   RYEAR = FISC_YEAR    &lt;/P&gt;&lt;P&gt;         AND   RACCT = GL_ACCOUNT   &lt;/P&gt;&lt;P&gt;         AND   RPMAX = '016'.       &lt;/P&gt;&lt;P&gt;  MOVE-CORRESPONDING GLT0 TO GLTAB. &lt;/P&gt;&lt;P&gt;  COLLECT GLTAB.                    &lt;/P&gt;&lt;P&gt;ENDSELECT.                          &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, how can I do my debug analysis ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance !&lt;/P&gt;&lt;P&gt;Bye,&lt;/P&gt;&lt;P&gt;Roberto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2005 13:32:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dbif-rsql-invalid-cursor-dump-during-debugging/m-p/862268#M48286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-17T13:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: DBIF_RSQL_INVALID_CURSOR dump during debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dbif-rsql-invalid-cursor-dump-during-debugging/m-p/862269#M48287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've had this same problem in the past.   If you don't really need to debug that select loop,  just put a breakpoint after it and blow right passed it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2005 13:43:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dbif-rsql-invalid-cursor-dump-during-debugging/m-p/862269#M48287</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-02-17T13:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: DBIF_RSQL_INVALID_CURSOR dump during debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dbif-rsql-invalid-cursor-dump-during-debugging/m-p/862270#M48288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roberto,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this time in another forum. The reason for your dump is, that the debugging procedure causes a commit work. This closes your current cursor. You should try the following code:&lt;/P&gt;&lt;P&gt;SELECT * into corresponding fields of gltab FROM GLT0 &lt;/P&gt;&lt;P&gt;WHERE RLDNR = '00' &lt;/P&gt;&lt;P&gt;AND RRCTY = '0' &lt;/P&gt;&lt;P&gt;AND RVERS = '001' &lt;/P&gt;&lt;P&gt;AND BUKRS = COMP_CODE &lt;/P&gt;&lt;P&gt;AND RYEAR = FISC_YEAR &lt;/P&gt;&lt;P&gt;AND RACCT = GL_ACCOUNT &lt;/P&gt;&lt;P&gt;AND RPMAX = '016'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As data is not summarized in this case you need to sum it in a following loop or using &lt;/P&gt;&lt;P&gt;select sum(field1) sum(field2) ...&lt;/P&gt;&lt;P&gt;But in this case you also need to implement a group by clause in your select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need more information, let me know.&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;Siggi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2005 13:53:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dbif-rsql-invalid-cursor-dump-during-debugging/m-p/862270#M48288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-17T13:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: DBIF_RSQL_INVALID_CURSOR dump during debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dbif-rsql-invalid-cursor-dump-during-debugging/m-p/862271#M48289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich, &lt;/P&gt;&lt;P&gt;yours is a simple (and, for this reason, the best one !) work-around, but the problem still remains...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siggi, &lt;/P&gt;&lt;P&gt;you are a real forum surfer !&lt;/P&gt;&lt;P&gt;However I'm referring to a std code that I can't logically change (and I don't want to reproduce all in a custom development only for testing purpose) and I'm not able to see any COMMIT on my process...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way,&lt;/P&gt;&lt;P&gt;thanks for the answers !&lt;/P&gt;&lt;P&gt;Roberto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2005 14:05:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dbif-rsql-invalid-cursor-dump-during-debugging/m-p/862271#M48289</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-17T14:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: DBIF_RSQL_INVALID_CURSOR dump during debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dbif-rsql-invalid-cursor-dump-during-debugging/m-p/862272#M48290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roberto&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So nice to see you here. OK. This dump is normal because during debugging runtime looses the cursor opened in the database. This is written in the explanation part of the short dump text. And as far as I know, there is no correction for this. This is one of the reasons why I hate "SELECT...ENDSELECT" statement. What you can do is Rich's suggestion, inspect the values after collection although I know this may be not what you require.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Serdar&lt;/P&gt;&lt;P&gt;ssimsekler@yahoo.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2005 14:15:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dbif-rsql-invalid-cursor-dump-during-debugging/m-p/862272#M48290</guid>
      <dc:creator>ssimsekler</dc:creator>
      <dc:date>2005-02-17T14:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: DBIF_RSQL_INVALID_CURSOR dump during debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dbif-rsql-invalid-cursor-dump-during-debugging/m-p/862273#M48291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Serdar,&lt;/P&gt;&lt;P&gt;nice to meet you me too !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok, I understand my issue...I never use select/endselect statement, but SAP evidently is not always of the same opinion !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, trying the same (step by step) procedure, I have no problem in a different environment (different kernel and so on)...and, believe me, this is a real strange behaviour !&lt;/P&gt;&lt;P&gt;So, why I'm receiving different result if the debug process is always the same (and in my opinion there are no statements that can cause a db cursor loss in this piece of code...) ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the meanwhile I'm going in my different (and working) environment...if anyone is able to find the anwer to this enigma&lt;/P&gt;&lt;P&gt;However...thanks to all !&lt;/P&gt;&lt;P&gt;Bye,&lt;/P&gt;&lt;P&gt;Roberto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2005 15:21:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dbif-rsql-invalid-cursor-dump-during-debugging/m-p/862273#M48291</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-17T15:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: DBIF_RSQL_INVALID_CURSOR dump during debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dbif-rsql-invalid-cursor-dump-during-debugging/m-p/862274#M48292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roberto&lt;/P&gt;&lt;P&gt;I've not a really Answer to the strange behaviour in different Environment, only a few Hints.&lt;/P&gt;&lt;P&gt;There are some SAP Notes:&lt;/P&gt;&lt;P&gt;675 Unexpected abends in SELECT loops (COMMIT)&lt;/P&gt;&lt;P&gt;2104 Error messages DBIF_...._INVALID_CURSOR &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe your Workprocs in the two Environment are setted differently, e.g. rdisp/wpdbug_max_no is too low. in this case the abap debugger terminate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2005 19:12:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dbif-rsql-invalid-cursor-dump-during-debugging/m-p/862274#M48292</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-17T19:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: DBIF_RSQL_INVALID_CURSOR dump during debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dbif-rsql-invalid-cursor-dump-during-debugging/m-p/862275#M48293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roberto,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As it was mentioned in the OSS notes you posted here, debugging a 'Select' 'Endselect' loop doesn't always result in a short dump except , I quote the OSS note 2104 here&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&amp;lt;i&amp;gt;The "COMMIT WORK" message appears in the ABAP debugger
when programs or screens require regeneration, or when
not enough free capacity is available in the system (or
else the debugger blocks a system process).            

Normally only one work process is released for debugging. 
This is generally insufficient in a development system, 
as processes can be blocked for other reasons too 
(background processing, CPI-C connections, and so on).

The number of work processes made available for debugging 
can be configured using the profile parameter rdisp/wpdbug_max_no.&amp;lt;/i&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, no wonder that it is giving different results in different environments. In fact, when there are no other processes running except for yours, even in the same environment where you got the dump, you might be able to debug it or atleast go further than the first record selected, all this provided there are no commits happening in between.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Essentially, whether you get a dump or not depends on what is the demand for the processes available and if commits are there. The parameter will increase the number of processes available for debugging, but I am not sure if you are going to dedicate the same number of processes in an production environment versus development. Also, you should remember that in production there are multiple servers available in a typical installation, but there will only be one development server. All these factors will play a role in whether you get a dump or not.&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;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2005 19:20:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dbif-rsql-invalid-cursor-dump-during-debugging/m-p/862275#M48293</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-17T19:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: DBIF_RSQL_INVALID_CURSOR dump during debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dbif-rsql-invalid-cursor-dump-during-debugging/m-p/862276#M48294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A standard in Screen Processing with ABAP is that the system performs a COMMIT before each screen is presented to the user.  This needs to be well understood if you are programming database updates and doing Screen Processing.  The debugger is presenting a new screen with every step that you ask it to present, so a COMMIT is performed and the cursor is lost.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The COLLECT command has nothing to do with database calls.  It is used to update an internal table which is held in memory so that is not the cause of the abend that you are receiving.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich has the right suggestion.  Before the SELECT starts, double click a line after the ENDSELECT to set a break point and then use the 4th button - CONTINUE, to skip to the next breakpoint.  You can also put the cursor on the line where you want it to stop and hit CONTINUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know how it goes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Feb 2005 03:46:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dbif-rsql-invalid-cursor-dump-during-debugging/m-p/862276#M48294</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-18T03:46:22Z</dc:date>
    </item>
  </channel>
</rss>

