<?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 DB table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-db-table/m-p/6228026#M1380148</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;Can i update fields in DB that are key  ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i have fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c&lt;/P&gt;&lt;P&gt;and all the fields are &lt;STRONG&gt;keys&lt;/STRONG&gt; and i want to do  update it in the DB to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;user         123  key&lt;/P&gt;&lt;P&gt;username   Joy   key&lt;/P&gt;&lt;P&gt;address    Germany  key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can i do so since when i try to do UPDATE (mt_table_name) FROM &amp;lt;ls_object&amp;gt;. &lt;/P&gt;&lt;P&gt;i get sy-subrc = 4. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in the DB table  i have the record like  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE (mt_table_name) FROM &amp;lt;ls_object&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;joy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Sep 2009 20:24:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-21T20:24:06Z</dc:date>
    <item>
      <title>update DB table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-db-table/m-p/6228026#M1380148</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;Can i update fields in DB that are key  ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i have fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c&lt;/P&gt;&lt;P&gt;and all the fields are &lt;STRONG&gt;keys&lt;/STRONG&gt; and i want to do  update it in the DB to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;user         123  key&lt;/P&gt;&lt;P&gt;username   Joy   key&lt;/P&gt;&lt;P&gt;address    Germany  key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can i do so since when i try to do UPDATE (mt_table_name) FROM &amp;lt;ls_object&amp;gt;. &lt;/P&gt;&lt;P&gt;i get sy-subrc = 4. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in the DB table  i have the record like  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE (mt_table_name) FROM &amp;lt;ls_object&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;joy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2009 20:24:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-db-table/m-p/6228026#M1380148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-21T20:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: update DB table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-db-table/m-p/6228027#M1380149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;read the SAP help in &lt;STRONG&gt;Modify&lt;/STRONG&gt; statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2009 20:29:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-db-table/m-p/6228027#M1380149</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-09-21T20:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: update DB table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-db-table/m-p/6228028#M1380150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can update (if your company allowed you to do this). If there is already a record in the table with the same key, it gives you an error &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you use modify statement; The data will be modified if there is a record with the same key else the record will be inserted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All in all, you cannot have 2 records with same key &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2009 20:33:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-db-table/m-p/6228028#M1380150</guid>
      <dc:creator>former_member191735</dc:creator>
      <dc:date>2009-09-21T20:33:37Z</dc:date>
    </item>
  </channel>
</rss>

