<?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: ABAP Runtime error in debug mode in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-runtime-error-in-debug-mode/m-p/3821995#M919183</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 need to change your logic.&lt;/P&gt;&lt;P&gt;Then , i hope your problem wil be solved.&lt;/P&gt;&lt;P&gt;Because of nested select statements, you are getting that error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare seperate Internal tables for VBRK,VBRP, KNA!,j_1iexchdr, j_1imtchid.&lt;/P&gt;&lt;P&gt;Declare Itab_final with all required fields from all tables.&lt;/P&gt;&lt;P&gt;Dont use select-endselect anywhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am giving Pseudo code here.&lt;/P&gt;&lt;P&gt;Try to use this logic.&lt;/P&gt;&lt;P&gt;I used question mark in code : there you need to use ur required field names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it wil help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select vbeln kunrg zterm bukrs knumv netwr kunrg from vbrk into corresponding fields of &lt;STRONG&gt;table&lt;/STRONG&gt; itab1&lt;/P&gt;&lt;P&gt;where vbeln = docno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr posnr arktx fkimg meins netwr werks aubel from vbrp into corresponding fields of table itab2 &lt;STRONG&gt;for all entries in itab1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;where vbeln = itab-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select name1 stras pstlz ort01 land1 from kna1 into corresponding fields of table itab3 for all entries in itab1&lt;/P&gt;&lt;P&gt;where kunnr = itab1-kunrg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select preprn exdat docno from j_1iexchdr into corresponding fields of  table itab4  for all entries in itab1&lt;/P&gt;&lt;P&gt;where rdoc = itab1-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select j_1ichid from j_1imtchid into corresponding fields of table itab5 for all entries in itab2&lt;/P&gt;&lt;P&gt;where matnr = itab2-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab1 into wa_itab1.&lt;/P&gt;&lt;P&gt;read table itab2 into wa_itab2 index sy-tabix.&lt;/P&gt;&lt;P&gt;read table itab3 into wa_itab2 index sy-tabix.&lt;/P&gt;&lt;P&gt;read table itab4 into wa_itab2 index sy-tabix.&lt;/P&gt;&lt;P&gt;read table itab5 into wa_itab2 index sy-tabix.&lt;/P&gt;&lt;P&gt;itab_final = itab1-?&lt;/P&gt;&lt;P&gt;itab_final = itab1-?&lt;/P&gt;&lt;P&gt;itab_final = itab2-?&lt;/P&gt;&lt;P&gt;itab_final = itab3-?&lt;/P&gt;&lt;P&gt;itab_final = itab4-?&lt;/P&gt;&lt;P&gt;itab_final = itab5-?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select eikto from knb1 into table wa_knb1&lt;/P&gt;&lt;P&gt;where kunnr = itab_fianl-kunrg&lt;/P&gt;&lt;P&gt;and bukrs = itab-bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select kawrt kbetr kwert kschl kposn knumv from konv into corresponding fields of wa_konv&lt;/P&gt;&lt;P&gt;where knumv = itab_fianl-knumv&lt;/P&gt;&lt;P&gt;and kposn = itab_final-posnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append wa_konv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Sandeep Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 May 2008 19:48:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-20T19:48:53Z</dc:date>
    <item>
      <title>ABAP Runtime error in debug mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-runtime-error-in-debug-mode/m-p/3821990#M919178</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;I am facing foll. run time error in debug mode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Runtime Error          DBIF_RSQL_INVALID_CURSOR&lt;/P&gt;&lt;P&gt;Except.                CX_SY_OPEN_SQL_DB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Possible causes in the application program:                        &lt;/P&gt;&lt;P&gt;Within a loop (SELECT/LOOP/EXEC SQL), one of the following         &lt;/P&gt;&lt;P&gt;statements is used:                                                &lt;/P&gt;&lt;P&gt;- MESSAGE (apart from MESSAGE S...)                                &lt;/P&gt;&lt;P&gt;- COMMIT WORK                                                      &lt;/P&gt;&lt;P&gt;- ROLLBACK WORK                                                    &lt;/P&gt;&lt;P&gt;- CALL SCREEN                                                      &lt;/P&gt;&lt;P&gt;- CALL DIALOG                                                      &lt;/P&gt;&lt;P&gt;- CALL TRANSACTION                                                 &lt;/P&gt;&lt;P&gt;- SUBMIT                                                           &lt;/P&gt;&lt;P&gt;- BREAK-POINT                                                      &lt;/P&gt;&lt;P&gt;- WAIT                                                             &lt;/P&gt;&lt;P&gt;.                                                                  &lt;/P&gt;&lt;P&gt;In debugging mode, a program sometimes triggers                    &lt;/P&gt;&lt;P&gt;a "COMMIT WORK" during the database selection. As a result         &lt;/P&gt;&lt;P&gt;this termination may also occur in debugging mode with a correct   &lt;/P&gt;&lt;P&gt;program.                                                           &lt;/P&gt;&lt;P&gt;A "COMMIT WORK" during debugging may be due to the following reason&lt;/P&gt;&lt;P&gt;1. A program or screen was regenerated                             &lt;/P&gt;&lt;P&gt;   and updated in the database.                                    &lt;/P&gt;&lt;P&gt;2. Each user needs a private process in debugging mode, but        &lt;/P&gt;&lt;P&gt;   the number of available processes is restricted. If this        &lt;/P&gt;&lt;P&gt;   limit is exceeded, each debugging step then requires a          &lt;/P&gt;&lt;P&gt;   "COMMIT WORK".        &lt;/P&gt;&lt;P&gt;                                          &lt;/P&gt;&lt;P&gt;its urgent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i run the prg directly to tcode der is not ne error.&lt;/P&gt;&lt;P&gt;but i want to execute the prg. in the debug mode.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;its a ZPRG.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;Purva.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 05:17:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-runtime-error-in-debug-mode/m-p/3821990#M919178</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T05:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Runtime error in debug mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-runtime-error-in-debug-mode/m-p/3821991#M919179</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;Just check if you are using a commit work or message statment between your select statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shruthi R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 05:34:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-runtime-error-in-debug-mode/m-p/3821991#M919179</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T05:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Runtime error in debug mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-runtime-error-in-debug-mode/m-p/3821992#M919180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi shruti,&lt;/P&gt;&lt;P&gt;no i didnt use ne commit work or select statement in my select stmt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wat do u mean by commit work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here are d select querries dat i hv used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select vbeln kunrg zterm bukrs knumv netwr kunrg from vbrk into corresponding fields of itab&lt;/P&gt;&lt;P&gt;                where vbeln = docno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select matnr posnr arktx fkimg meins netwr werks aubel from vbrp into corresponding fields of itab&lt;/P&gt;&lt;P&gt;                where vbeln = itab-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    select name1 stras pstlz ort01 land1 from kna1 into corresponding fields of itab&lt;/P&gt;&lt;P&gt;                 where kunnr = itab-kunrg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      select preprn exdat docno from j_1iexchdr into corresponding fields of itab&lt;/P&gt;&lt;P&gt;                   where rdoc = itab-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        select j_1ichid from j_1imtchid into corresponding fields of itab&lt;/P&gt;&lt;P&gt;                    where matnr = itab-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          append itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        endselect.&lt;/P&gt;&lt;P&gt;      endselect.&lt;/P&gt;&lt;P&gt;    endselect.&lt;/P&gt;&lt;P&gt;  endselect.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select eikto from knb1 into table wa_knb1&lt;/P&gt;&lt;P&gt;             where kunnr = itab-kunrg&lt;/P&gt;&lt;P&gt;             and bukrs = itab-bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select kawrt kbetr kwert kschl kposn knumv from konv into corresponding fields of wa_konv&lt;/P&gt;&lt;P&gt;              where knumv = itab-knumv&lt;/P&gt;&lt;P&gt;              and kposn = itab-posnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  append wa_konv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz let me know abt dis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 05:37:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-runtime-error-in-debug-mode/m-p/3821992#M919180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T05:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Runtime error in debug mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-runtime-error-in-debug-mode/m-p/3821993#M919181</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 are using nested select statements  which may cause implicit commits which is resulting in your dump. I assume itab is an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : wa_itab like line of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select vbeln kunrg zterm bukrs knumv netwr kunrg from vbrk into corresponding fields of wa_itab&lt;/P&gt;&lt;P&gt;where vbeln = docno.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single matnr posnr arktx fkimg meins netwr werks aubel from vbrp into corresponding fields of wa_itab&lt;/P&gt;&lt;P&gt;where vbeln = itab-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single name1 stras pstlz ort01 land1 from kna1 into corresponding fields of wa_itab&lt;/P&gt;&lt;P&gt;where kunnr = itab-kunrg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single preprn exdat docno from j_1iexchdr into corresponding fields of wa_itab&lt;/P&gt;&lt;P&gt;where rdoc = itab-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single  j_1ichid from j_1imtchid into corresponding fields of wa_itab&lt;/P&gt;&lt;P&gt;where matnr = itab-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append wa_itab to itab.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Also , using select...endselect is not a good option in terms of performance, you may have to alter your queries to include joins.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 06:03:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-runtime-error-in-debug-mode/m-p/3821993#M919181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T06:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Runtime error in debug mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-runtime-error-in-debug-mode/m-p/3821994#M919182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you put the break point between select and endselect. program will terminate during debugging. put break point before or after select endselect. Or change the select statements to INTO TABLE and mofidy the logic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 19:24:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-runtime-error-in-debug-mode/m-p/3821994#M919182</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T19:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Runtime error in debug mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-runtime-error-in-debug-mode/m-p/3821995#M919183</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 need to change your logic.&lt;/P&gt;&lt;P&gt;Then , i hope your problem wil be solved.&lt;/P&gt;&lt;P&gt;Because of nested select statements, you are getting that error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare seperate Internal tables for VBRK,VBRP, KNA!,j_1iexchdr, j_1imtchid.&lt;/P&gt;&lt;P&gt;Declare Itab_final with all required fields from all tables.&lt;/P&gt;&lt;P&gt;Dont use select-endselect anywhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am giving Pseudo code here.&lt;/P&gt;&lt;P&gt;Try to use this logic.&lt;/P&gt;&lt;P&gt;I used question mark in code : there you need to use ur required field names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it wil help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select vbeln kunrg zterm bukrs knumv netwr kunrg from vbrk into corresponding fields of &lt;STRONG&gt;table&lt;/STRONG&gt; itab1&lt;/P&gt;&lt;P&gt;where vbeln = docno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr posnr arktx fkimg meins netwr werks aubel from vbrp into corresponding fields of table itab2 &lt;STRONG&gt;for all entries in itab1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;where vbeln = itab-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select name1 stras pstlz ort01 land1 from kna1 into corresponding fields of table itab3 for all entries in itab1&lt;/P&gt;&lt;P&gt;where kunnr = itab1-kunrg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select preprn exdat docno from j_1iexchdr into corresponding fields of  table itab4  for all entries in itab1&lt;/P&gt;&lt;P&gt;where rdoc = itab1-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select j_1ichid from j_1imtchid into corresponding fields of table itab5 for all entries in itab2&lt;/P&gt;&lt;P&gt;where matnr = itab2-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab1 into wa_itab1.&lt;/P&gt;&lt;P&gt;read table itab2 into wa_itab2 index sy-tabix.&lt;/P&gt;&lt;P&gt;read table itab3 into wa_itab2 index sy-tabix.&lt;/P&gt;&lt;P&gt;read table itab4 into wa_itab2 index sy-tabix.&lt;/P&gt;&lt;P&gt;read table itab5 into wa_itab2 index sy-tabix.&lt;/P&gt;&lt;P&gt;itab_final = itab1-?&lt;/P&gt;&lt;P&gt;itab_final = itab1-?&lt;/P&gt;&lt;P&gt;itab_final = itab2-?&lt;/P&gt;&lt;P&gt;itab_final = itab3-?&lt;/P&gt;&lt;P&gt;itab_final = itab4-?&lt;/P&gt;&lt;P&gt;itab_final = itab5-?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select eikto from knb1 into table wa_knb1&lt;/P&gt;&lt;P&gt;where kunnr = itab_fianl-kunrg&lt;/P&gt;&lt;P&gt;and bukrs = itab-bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select kawrt kbetr kwert kschl kposn knumv from konv into corresponding fields of wa_konv&lt;/P&gt;&lt;P&gt;where knumv = itab_fianl-knumv&lt;/P&gt;&lt;P&gt;and kposn = itab_final-posnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append wa_konv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Sandeep Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 19:48:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-runtime-error-in-debug-mode/m-p/3821995#M919183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T19:48:53Z</dc:date>
    </item>
  </channel>
</rss>

