<?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: modify database table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1614336#M275248</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I find this odd. I thought the whole idea behind open SQL is that it should behave the same no matter what the type of database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What database are you using? You didn't use native SQL to do the update did you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Oct 2006 15:36:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-18T15:36:51Z</dc:date>
    <item>
      <title>modify database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1614328#M275240</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;I've a query regarding the modifying of a data base table directly ( that means without taking the values into the internal table) for a field, particulary when the field is a primary key.&lt;/P&gt;&lt;P&gt;eg: in a field called RICE the initial value is given as '120'. now i want to change it into a new value 'SAP'.&lt;/P&gt;&lt;P&gt;this RICE field is made as a primary key.&lt;/P&gt;&lt;P&gt;please tell me the solution.&lt;/P&gt;&lt;P&gt;Sailaja.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2006 14:24:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1614328#M275240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-18T14:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: modify database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1614329#M275241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please use UPDATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE (table)SET RICE = 'SAP'&lt;/P&gt;&lt;P&gt;        where condition&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2006 14:26:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1614329#M275241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-18T14:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: modify database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1614330#M275242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot change the value of a key field.  Select to internal table, update data in internal table and insert into db.  Then delete records initially selected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2006 14:28:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1614330#M275242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-18T14:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: modify database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1614331#M275243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of updating the key field, you can add one more record ans delete the existing one which makes more sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;insert ztab from ztab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete ztab where key = '120'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2006 14:31:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1614331#M275243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-18T14:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: modify database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1614332#M275244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sailaja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael's statement is not, in fact, true in all cases.  It depends on the underlying DB system.  I just changed a primary key in one of custom tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOWEVER, it is wonderful advice.  The primary key should be a unique identifer of a record.  IF a record's unique identifier changes (which SHOULD NOT be the case if the table is built cleanly/correctly), you should follow Michael's advice.  Create a new record with the new key and then delete the previous.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2006 14:36:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1614332#M275244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-18T14:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: modify database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1614333#M275245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for all ur reply's.even i tried doing the same like inseting and later deleting but my client dont want me to delete the records...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2006 14:45:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1614333#M275245</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-18T14:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: modify database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1614334#M275246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not much alternative. Is this a custom table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2006 14:55:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1614334#M275246</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-18T14:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: modify database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1614335#M275247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sailaja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then your client should NOT have a table with key fields that are prone to change!!  That is a bad design.  I assume that this is a custom table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And their request to you is, in practice, "deleting" the record...  once a primary key is altered... the initial record's uniqueness has been destroyed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget points for helpful answers as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2006 15:29:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1614335#M275247</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-18T15:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: modify database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1614336#M275248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I find this odd. I thought the whole idea behind open SQL is that it should behave the same no matter what the type of database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What database are you using? You didn't use native SQL to do the update did you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2006 15:36:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1614336#M275248</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-18T15:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: modify database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1614337#M275249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you change the primary key and update the table it would insert a new record, hence you would need to delete the old record unless you wish to keep in the table with some flag indicator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apart from the above there is no other alternative.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2006 15:37:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1614337#M275249</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-18T15:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: modify database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1614338#M275250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sailaja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF this is a core table (not a custom Y or Z table)... do not perform this request.  You run a high risk of damaging the referential integrity of the client's database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is a core table, take this request to your manager for assistance... this client will need some "Database 101" training first.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2006 15:45:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1614338#M275250</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-18T15:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: modify database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1614339#M275251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Was this question for Sailaja?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"I find this odd. I thought the whole idea behind open SQL is that it should behave the same no matter what the type of database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What database are you using? You didn't use native SQL to do the update did you?"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2006 16:05:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1614339#M275251</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-18T16:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: modify database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1614340#M275252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry John - it was for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2006 16:10:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1614340#M275252</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-18T16:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: modify database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1614341#M275253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No it was performed thru Open SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open SQL is a database interface to your DB engine.  It creates/generates native SQL that your DB engine understands.  It does not, however, enforce all of the rules, settings, etc that your DBAs have set up at the "true" database layer of the R/3 client-server model.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2006 16:22:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1614341#M275253</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-18T16:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: modify database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1614342#M275254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using Oracle by the way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2006 16:23:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1614342#M275254</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-18T16:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: modify database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1614343#M275255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John - that would mean that ABAP code behaves differently for different databases and therefore not "transportable".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We were on Oracle up to a couple of years ago and it wouldn't let us change primary keys. Are you saying that there are database settings that would allow this? (And that the SAP kernel can read to allow or disallow changes to primary keys?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2006 16:32:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1614343#M275255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-18T16:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: modify database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1614344#M275256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"that would mean that ABAP code behaves differently for different databases and therefore not "transportable"."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP code behaves the same... the underlying objects, in this case, the DB engine itself behaves according to the parameters that the DBAs have set - which can be different from implementation to implementation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this setting is outside of the SAP kernel... it is truly on the DB itself.  Bear in mind that this is 3-tiered client-server model... and each piece can be adjusted (sometimes without the other pieces "knowing").&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2006 16:40:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1614344#M275256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-18T16:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: modify database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1614345#M275257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John - but you said that you changed the key. The rest of us can't. Or am I just not understanding?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2006 16:51:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1614345#M275257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-18T16:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: modify database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1614346#M275258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John - &amp;lt;i&amp;gt;mea culpa&amp;lt;/i&amp;gt;. I just did what I thought was not possible. I created a table, inserted a record and then changed the key field of that record (DB2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2006 17:02:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1614346#M275258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-18T17:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: modify database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1614347#M275259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enjoy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is probably NOT a good thing... but it is possible b/c the DB is TRULY separated from SAP R/3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2006 17:05:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-database-table/m-p/1614347#M275259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-18T17:05:49Z</dc:date>
    </item>
  </channel>
</rss>

