<?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: Type CX_SY_OPEN_SQL_DB occurred in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-cx-sy-open-sql-db-occurred/m-p/2014126#M411441</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;more than one row. But I don't know exactly...&lt;/P&gt;&lt;P&gt;I think it is the problem in codes between "where" and "endselect".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Mar 2007 11:03:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-05T11:03:15Z</dc:date>
    <item>
      <title>Type CX_SY_OPEN_SQL_DB occurred</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-cx-sy-open-sql-db-occurred/m-p/2014122#M411437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry if you see the same post in another thread.&lt;/P&gt;&lt;P&gt;I got an BSP error like this&lt;/P&gt;&lt;P&gt;SAP Note&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;The following error text was processed in the system:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;An exception with the type CX_SY_OPEN_SQL_DB occurred, but was neither handled locally, nor declared in a RAISING clause&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exception Class CX_SY_OPEN_SQL_DB&lt;/P&gt;&lt;P&gt;Error Name DBIF_RSQL_INVALID_CURSOR&lt;/P&gt;&lt;P&gt;Program /CAG/SAPLCSV_EXPORT&lt;/P&gt;&lt;P&gt;Include /CAG/LCSV_EXPORTU01&lt;/P&gt;&lt;P&gt;Line 362&lt;/P&gt;&lt;P&gt;Long text: A database COMMIT occurred during an Open SQL database selection. This selection was to have then continued. However, all database selections must be completed before a database COMMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The most strange is that the same thing I did in Developement System works well, but in Test System I got this error message. Actually I don't have any commit in SQL selections like th message says.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's wrong with it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for ur suggestion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Liying&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 10:45:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-cx-sy-open-sql-db-occurred/m-p/2014122#M411437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-05T10:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Type CX_SY_OPEN_SQL_DB occurred</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-cx-sy-open-sql-db-occurred/m-p/2014123#M411438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Give the code snippet around line number 362&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 10:48:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-cx-sy-open-sql-db-occurred/m-p/2014123#M411438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-05T10:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Type CX_SY_OPEN_SQL_DB occurred</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-cx-sy-open-sql-db-occurred/m-p/2014124#M411439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the line  362  is "IF sy-subrc &amp;lt;&amp;gt; 0." of the following code.&lt;/P&gt;&lt;P&gt;In debug mode, I saw that it works once, but the second one (in loop) it shrows this error .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...   &lt;/P&gt;&lt;P&gt; OPEN CURSOR WITH HOLD dbcur2 FOR&lt;/P&gt;&lt;P&gt;        SELECT aincon&lt;SUB&gt;userid aincon&lt;/SUB&gt;firstname aincon&lt;SUB&gt;lastname aincon&lt;/SUB&gt;bu acon&lt;SUB&gt;firstname acon&lt;/SUB&gt;lastname acon&lt;SUB&gt;email aexcon&lt;/SUB&gt;power aexcon~influence&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        FROM zbrap_apro AS apro INNER JOIN zbrap_aincon AS aincon ON apro&lt;SUB&gt;project_id = aincon&lt;/SUB&gt;project_id&lt;/P&gt;&lt;P&gt;                                INNER JOIN zbrap_aexcon AS aexcon ON apro&lt;SUB&gt;project_id = aexcon&lt;/SUB&gt;project_id&lt;/P&gt;&lt;P&gt;                                INNER JOIN zbrvp_acon AS acon ON aexcon&lt;SUB&gt;cprnr = acon&lt;/SUB&gt;cprnr&lt;/P&gt;&lt;P&gt;        WHERE apro~project_id = project_no.&lt;/P&gt;&lt;P&gt;    DO.&lt;/P&gt;&lt;P&gt;      FETCH NEXT CURSOR dbcur2  INTO (userid, int_fname, int_lname, bu, ext_fname, ext_lname, email, power, influence).&lt;/P&gt;&lt;P&gt;      IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 10:53:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-cx-sy-open-sql-db-occurred/m-p/2014124#M411439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-05T10:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Type CX_SY_OPEN_SQL_DB occurred</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-cx-sy-open-sql-db-occurred/m-p/2014125#M411440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How many rows does this SQL returns:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT aincon&lt;SUB&gt;userid aincon&lt;/SUB&gt;firstname aincon&lt;SUB&gt;lastname aincon&lt;/SUB&gt;bu acon&lt;SUB&gt;firstname acon&lt;/SUB&gt;lastname acon&lt;SUB&gt;email aexcon&lt;/SUB&gt;power aexcon~influence&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM zbrap_apro AS apro INNER JOIN zbrap_aincon AS aincon ON apro&lt;SUB&gt;project_id = aincon&lt;/SUB&gt;project_id&lt;/P&gt;&lt;P&gt;INNER JOIN zbrap_aexcon AS aexcon ON apro&lt;SUB&gt;project_id = aexcon&lt;/SUB&gt;project_id&lt;/P&gt;&lt;P&gt;INNER JOIN zbrvp_acon AS acon ON aexcon&lt;SUB&gt;cprnr = acon&lt;/SUB&gt;cprnr&lt;/P&gt;&lt;P&gt;WHERE apro~project_id = project_no.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 11:00:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-cx-sy-open-sql-db-occurred/m-p/2014125#M411440</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-05T11:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Type CX_SY_OPEN_SQL_DB occurred</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-cx-sy-open-sql-db-occurred/m-p/2014126#M411441</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;more than one row. But I don't know exactly...&lt;/P&gt;&lt;P&gt;I think it is the problem in codes between "where" and "endselect".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 11:03:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-cx-sy-open-sql-db-occurred/m-p/2014126#M411441</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-05T11:03:15Z</dc:date>
    </item>
  </channel>
</rss>

