<?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 Update not working in NATIVE SQL in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-not-working-in-native-sql/m-p/6512426#M1423697</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 using the following code to update two fields in isuser.table_ table. But it is not updating the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;EXEC SQL.
    UPDATE misuser.table_4
    SET otype = :gc_otype1,
        objid = :gc_objid
    WHERE otype = :gc_otype
  ENDEXEC.
  IF sy-dbcnt = 0.
    WRITE: 'No rows updated'.
  ELSE.
    WRITE: sy-dbcnt, 'rows updated'.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i use the same code to update only one field, its working. Can anybody help me on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nitesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jan 2010 10:45:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-21T10:45:42Z</dc:date>
    <item>
      <title>Update not working in NATIVE SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-not-working-in-native-sql/m-p/6512426#M1423697</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 using the following code to update two fields in isuser.table_ table. But it is not updating the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;EXEC SQL.
    UPDATE misuser.table_4
    SET otype = :gc_otype1,
        objid = :gc_objid
    WHERE otype = :gc_otype
  ENDEXEC.
  IF sy-dbcnt = 0.
    WRITE: 'No rows updated'.
  ELSE.
    WRITE: sy-dbcnt, 'rows updated'.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i use the same code to update only one field, its working. Can anybody help me on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nitesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 10:45:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-not-working-in-native-sql/m-p/6512426#M1423697</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T10:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Update not working in NATIVE SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-not-working-in-native-sql/m-p/6512427#M1423698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nitesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to run the update query using the query interface(e.g. T-Sql Query Analyzer, Oracle Developer, etc.), and check&lt;/P&gt;&lt;P&gt;if it's working as expected. This might help yo solving the issue.&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;Ozcan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 12:06:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-not-working-in-native-sql/m-p/6512427#M1423698</guid>
      <dc:creator>former_member848108</dc:creator>
      <dc:date>2010-01-21T12:06:03Z</dc:date>
    </item>
  </channel>
</rss>

