<?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: dump while debugging single step for select..endselect in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-debugging-single-step-for-select-endselect/m-p/3816188#M917837</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;like I said before, because of this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The debugger does implicitely commit while you step to your loop. the DB cursor pointing to a record in your record set gets invalid by the commit. trying to 'move the cursor' to the next position raises the dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are 'things'  on DB level, which seem to occur, and which we should accept as it is.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 May 2008 14:06:55 GMT</pubDate>
    <dc:creator>Sm1tje</dc:creator>
    <dc:date>2008-05-15T14:06:55Z</dc:date>
    <item>
      <title>dump while debugging single step for select..endselect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-debugging-single-step-for-select-endselect/m-p/3816179#M917828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;      why do when we press F5  in  a select ...endselct  gives a dump.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 13:21:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-debugging-single-step-for-select-endselect/m-p/3816179#M917828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T13:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: dump while debugging single step for select..endselect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-debugging-single-step-for-select-endselect/m-p/3816180#M917829</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 think performance issue is there in u r select statement.&lt;/P&gt;&lt;P&gt;Put a brackpoint after endselect in debugging and press F8 insted of F5.&lt;/P&gt;&lt;P&gt;It executes remaining part of u r code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Narasimha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 13:24:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-debugging-single-step-for-select-endselect/m-p/3816180#M917829</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T13:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: dump while debugging single step for select..endselect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-debugging-single-step-for-select-endselect/m-p/3816181#M917830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It has nothing to do with performance, but this is just one of those things in debugging a SELECT ENDSELECT. I believe this has something to do with ' CURSOR'  being lost or something and this only happens in debugging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So only thing you can do is skip this statement in debugging and put a break point at endselect like mentioned before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;additional info:&lt;/P&gt;&lt;P&gt;The debugger does implicitely commit while you step to your loop. the DB cursor pointing to a record in your record set gets invalid by the commit. trying to 'move the cursor' to the next position raises the dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Micky Oestreich on May 15, 2008 3:34 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 13:29:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-debugging-single-step-for-select-endselect/m-p/3816181#M917830</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2008-05-15T13:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: dump while debugging single step for select..endselect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-debugging-single-step-for-select-endselect/m-p/3816182#M917831</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; Place a break point after endselect statement and execute to avoid dump ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 13:33:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-debugging-single-step-for-select-endselect/m-p/3816182#M917831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T13:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: dump while debugging single step for select..endselect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-debugging-single-step-for-select-endselect/m-p/3816183#M917832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No  i am interested in the cause, why we are getting a dump . If the cursor is lost in database may i know why this happens.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 13:37:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-debugging-single-step-for-select-endselect/m-p/3816183#M917832</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T13:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: dump while debugging single step for select..endselect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-debugging-single-step-for-select-endselect/m-p/3816184#M917833</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 think it's a problem the system triggers a COMMIT while debbuging and so the cursor is lost and the dump occurs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 13:40:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-debugging-single-step-for-select-endselect/m-p/3816184#M917833</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T13:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: dump while debugging single step for select..endselect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-debugging-single-step-for-select-endselect/m-p/3816185#M917834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;If syntax is correct , it doesn't show short dump. ..&lt;/P&gt;&lt;P&gt;check sample code ...&lt;/P&gt;&lt;P&gt; PARAMETERS : p_mtart TYPE mara-mtart.&lt;/P&gt;&lt;P&gt; data : w_ma type mtart.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Malidating the Material Type&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  SELECT mtart FROM mara&lt;/P&gt;&lt;P&gt;         INTO w_ma&lt;/P&gt;&lt;P&gt;        UP TO 1 ROWS&lt;/P&gt;&lt;P&gt;       WHERE mtart = p_mtart.&lt;/P&gt;&lt;P&gt;    ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF NOT sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;    write : /05 'no records found'.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;      write : /05 w_ma.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewatrd if useful &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jagadeesh.G&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jagadeshwar Gollapelly on May 15, 2008 3:49 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 13:41:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-debugging-single-step-for-select-endselect/m-p/3816185#M917834</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T13:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: dump while debugging single step for select..endselect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-debugging-single-step-for-select-endselect/m-p/3816186#M917835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why does COMMIT statement cause problem . even while debugging there are lots of istances where Commit is done .but why it gives a dump.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 13:58:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-debugging-single-step-for-select-endselect/m-p/3816186#M917835</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T13:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: dump while debugging single step for select..endselect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-debugging-single-step-for-select-endselect/m-p/3816187#M917836</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;Because the COMMIT releases and clears all database parameters (used by the program), so the cursor used for the select too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this situation the system can't know which'll be the next record to be read and the dump occurs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think there a statament COMMIT into SELECT/ENDSELECT loop, the system does an implicit COMMIT while debugging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 14:05:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-debugging-single-step-for-select-endselect/m-p/3816187#M917836</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T14:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: dump while debugging single step for select..endselect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-debugging-single-step-for-select-endselect/m-p/3816188#M917837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;like I said before, because of this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The debugger does implicitely commit while you step to your loop. the DB cursor pointing to a record in your record set gets invalid by the commit. trying to 'move the cursor' to the next position raises the dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are 'things'  on DB level, which seem to occur, and which we should accept as it is.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 14:06:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-debugging-single-step-for-select-endselect/m-p/3816188#M917837</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2008-05-15T14:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: dump while debugging single step for select..endselect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-debugging-single-step-for-select-endselect/m-p/3816189#M917838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's some system parameter in RSPARAM that varies when the implicit commit happens.  Something to do with roll memory, IIRC...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, this is one of the biggest reasons why it is a really &lt;STRONG&gt;BAD&lt;/STRONG&gt; idea to use SELECT... ENDSELECT, unless you really really have to  You can end up being unable to debug a program that's going wrong in production.  This cost one client I had a great deal of money...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 14:12:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-debugging-single-step-for-select-endselect/m-p/3816189#M917838</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-05-15T14:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: dump while debugging single step for select..endselect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-debugging-single-step-for-select-endselect/m-p/3816190#M917839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;by commit stament i was meaning implicit commits&lt;/P&gt;&lt;P&gt;now if some one does F6  why it is not giving dump. does there no commit excuted. then why does it goes excuting it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 14:31:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-debugging-single-step-for-select-endselect/m-p/3816190#M917839</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T14:31:15Z</dc:date>
    </item>
  </channel>
</rss>

