<?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 &amp;quot;CX_SY_OPEN_SQL_DB&amp;quot; ERROR  when modifying a custom table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/quot-cx-sy-open-sql-db-quot-error-when-modifying-a-custom-table/m-p/5118716#M1187181</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get this runtime error "DBIF_RSQL_SQL_ERROR" &lt;/P&gt;&lt;P&gt;"CX_SY_OPEN_SQL_DB" excpetion raised while am trying to modify a custome table . &lt;STRONG&gt;says deadlock detected while waiting for resource&lt;/STRONG&gt;below is the code snippet please suggest solution on how to avoid the error. thanks for the help in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kathy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

*Get all packspec levels
  lt_levels                            =  iv_packspec_content-levels.

  loop at lt_levels into ls_levels.
    if ls_levels-hutyp is not initial.

      ls_zpackspec-guid                =  ls_levels-guid.
      ls_zpackspec-aennr               =  ls_levels-aennr.
      ls_zpackspec-total_quan          =  ls_levels-total_quan.
      ls_zpackspec-level_type          =  ls_levels-level_type.
      ls_zpackspec-/cfscmx/nest_fc     =  ls_levels-/cfscmx/nest_fc.
      ls_zpackspec-maxstack            =  ls_levels-maxstack.
      ls_zpackspec-unit_tw             =  ls_levels-unit_tw.
      ls_zpackspec-g_weight            =  ls_levels-g_weight.
      ls_zpackspec-unit_tv             =  ls_levels-unit_tv.
      ls_zpackspec-g_volume            =  ls_levels-g_volume.
      ls_zpackspec-trgqty              =  ls_levels-trgqty.
      ls_zpackspec-flg_minimum_ps      =  ls_levels-flg_minimum_ps.
      ls_zpackspec-creadat             =  sy-datum.
      ls_zpackspec-matid               =  iv_packspec_content-content-matid.
      ls_zpackspec-hu_create           =  ls_levels-hu_create.
      ls_zpackspec-unit_gw             =  ls_levels-unit_gw.
      ls_zpackspec-g_capa              =  ls_levels-g_capa.
      ls_zpackspec-unit_gv             =  ls_levels-unit_gv.
      ls_zpackspec-hutyp               =  ls_levels-hutyp.
      ls_zpackspec-block               =  ls_levels-block.
      ls_zpackspec-length              =  ls_levels-length.
      ls_zpackspec-width               =  ls_levels-width.
      ls_zpackspec-height              =  ls_levels-height.
      ls_zpackspec-unit_lwh            =  ls_levels-unit_lwh.
      ls_zpackspec-nest_ftr            =  ls_levels-nest_ftr.

      if not ls_elementgroup is initial.

        sort ls_elementgroup by guid.
        read table ls_elementgroup assigning &amp;lt;ps_el_group&amp;gt;
                                    with key guid = ls_levels-elementgroup
                               binary search.

        if &amp;lt;ps_el_group&amp;gt; is assigned.
          ls_elemgroup = &amp;lt;ps_el_group&amp;gt;-elements.
        endif.

        sort ls_elemgroup by hurelevant.
        read table ls_elemgroup assigning &amp;lt;ps_elem&amp;gt;
                                 with key hurelevant = 1
                            binary search.

        if sy-subrc eq 0.
          ls_zpackspec-hurelevant      =  &amp;lt;ps_elem&amp;gt;-hurelevant.
        endif.

      endif.

      append ls_zpackspec  to  lt_zpackspec.
      clear  ls_zpackspec.

    endif.
  endloop.


**Update Packspec data for each level in the table ZPACKSPEC.*

  *if not lt_zpackspec is initial.*
    *modify zpackspec from table lt_zpackspec.*
    *ev_zpackspec  =   lt_zpackspec.*
  *endif.*

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Feb 2009 16:52:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-09T16:52:06Z</dc:date>
    <item>
      <title>"CX_SY_OPEN_SQL_DB" ERROR  when modifying a custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/quot-cx-sy-open-sql-db-quot-error-when-modifying-a-custom-table/m-p/5118716#M1187181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get this runtime error "DBIF_RSQL_SQL_ERROR" &lt;/P&gt;&lt;P&gt;"CX_SY_OPEN_SQL_DB" excpetion raised while am trying to modify a custome table . &lt;STRONG&gt;says deadlock detected while waiting for resource&lt;/STRONG&gt;below is the code snippet please suggest solution on how to avoid the error. thanks for the help in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kathy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

*Get all packspec levels
  lt_levels                            =  iv_packspec_content-levels.

  loop at lt_levels into ls_levels.
    if ls_levels-hutyp is not initial.

      ls_zpackspec-guid                =  ls_levels-guid.
      ls_zpackspec-aennr               =  ls_levels-aennr.
      ls_zpackspec-total_quan          =  ls_levels-total_quan.
      ls_zpackspec-level_type          =  ls_levels-level_type.
      ls_zpackspec-/cfscmx/nest_fc     =  ls_levels-/cfscmx/nest_fc.
      ls_zpackspec-maxstack            =  ls_levels-maxstack.
      ls_zpackspec-unit_tw             =  ls_levels-unit_tw.
      ls_zpackspec-g_weight            =  ls_levels-g_weight.
      ls_zpackspec-unit_tv             =  ls_levels-unit_tv.
      ls_zpackspec-g_volume            =  ls_levels-g_volume.
      ls_zpackspec-trgqty              =  ls_levels-trgqty.
      ls_zpackspec-flg_minimum_ps      =  ls_levels-flg_minimum_ps.
      ls_zpackspec-creadat             =  sy-datum.
      ls_zpackspec-matid               =  iv_packspec_content-content-matid.
      ls_zpackspec-hu_create           =  ls_levels-hu_create.
      ls_zpackspec-unit_gw             =  ls_levels-unit_gw.
      ls_zpackspec-g_capa              =  ls_levels-g_capa.
      ls_zpackspec-unit_gv             =  ls_levels-unit_gv.
      ls_zpackspec-hutyp               =  ls_levels-hutyp.
      ls_zpackspec-block               =  ls_levels-block.
      ls_zpackspec-length              =  ls_levels-length.
      ls_zpackspec-width               =  ls_levels-width.
      ls_zpackspec-height              =  ls_levels-height.
      ls_zpackspec-unit_lwh            =  ls_levels-unit_lwh.
      ls_zpackspec-nest_ftr            =  ls_levels-nest_ftr.

      if not ls_elementgroup is initial.

        sort ls_elementgroup by guid.
        read table ls_elementgroup assigning &amp;lt;ps_el_group&amp;gt;
                                    with key guid = ls_levels-elementgroup
                               binary search.

        if &amp;lt;ps_el_group&amp;gt; is assigned.
          ls_elemgroup = &amp;lt;ps_el_group&amp;gt;-elements.
        endif.

        sort ls_elemgroup by hurelevant.
        read table ls_elemgroup assigning &amp;lt;ps_elem&amp;gt;
                                 with key hurelevant = 1
                            binary search.

        if sy-subrc eq 0.
          ls_zpackspec-hurelevant      =  &amp;lt;ps_elem&amp;gt;-hurelevant.
        endif.

      endif.

      append ls_zpackspec  to  lt_zpackspec.
      clear  ls_zpackspec.

    endif.
  endloop.


**Update Packspec data for each level in the table ZPACKSPEC.*

  *if not lt_zpackspec is initial.*
    *modify zpackspec from table lt_zpackspec.*
    *ev_zpackspec  =   lt_zpackspec.*
  *endif.*

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 16:52:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/quot-cx-sy-open-sql-db-quot-error-when-modifying-a-custom-table/m-p/5118716#M1187181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T16:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: "CX_SY_OPEN_SQL_DB" ERROR  when modifying a custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/quot-cx-sy-open-sql-db-quot-error-when-modifying-a-custom-table/m-p/5118717#M1187182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kathy - do you have duplicate entries for the same key fields in the internal table you are using for the update?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 16:56:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/quot-cx-sy-open-sql-db-quot-error-when-modifying-a-custom-table/m-p/5118717#M1187182</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T16:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: "CX_SY_OPEN_SQL_DB" ERROR  when modifying a custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/quot-cx-sy-open-sql-db-quot-error-when-modifying-a-custom-table/m-p/5118718#M1187183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No Rob i dont have any duplicate entries.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 17:32:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/quot-cx-sy-open-sql-db-quot-error-when-modifying-a-custom-table/m-p/5118718#M1187183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T17:32:17Z</dc:date>
    </item>
  </channel>
</rss>

