<?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: Foreign Key Table Delete not working in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-table-delete-not-working/m-p/1929381#M385225</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;initially, u need to delete the entries from the child table...then only u can delete data from master table....as there is a foreign key relation, the foreign key data needs to be deleted first...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Feb 2007 14:21:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-20T14:21:15Z</dc:date>
    <item>
      <title>Foreign Key Table Delete not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-table-delete-not-working/m-p/1929380#M385224</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;This is regarding my previous question&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3068040"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am more details on this-&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Parent Table fields

MANDT	CLNT	3        
TCTR	CHAR	6

Child Table fields

MANDT	CLNT	3
SPRAS	LANG	1
TCTR	CHAR	6
TRDESC	CHAR	40

Here SPRAS has given fireign key relation to T002-SPRAS and TCTR foreign key relationship to Parent table TCTR.

If i am trying to delete entries from parent table system not deleting entries in child table

Any info on this
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 14:17:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-table-delete-not-working/m-p/1929380#M385224</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-02-20T14:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Foreign Key Table Delete not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-table-delete-not-working/m-p/1929381#M385225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;initially, u need to delete the entries from the child table...then only u can delete data from master table....as there is a foreign key relation, the foreign key data needs to be deleted first...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 14:21:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-table-delete-not-working/m-p/1929381#M385225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T14:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Foreign Key Table Delete not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-table-delete-not-working/m-p/1929382#M385226</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;There is no automatic deletion in SAP, you have to delete yourself everything. First of course the child entries and then the parent entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you forget to delete child entries, there may remain inconsistencies in the system which makes it unstable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tamá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 14:23:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-table-delete-not-working/m-p/1929382#M385226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T14:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Foreign Key Table Delete not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-table-delete-not-working/m-p/1929383#M385227</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;First u delete entries from the child table and then try to delete the entries from parent tale.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can't delete the entries from the parent tale if those entries are there in child table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sruthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 14:27:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-table-delete-not-working/m-p/1929383#M385227</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T14:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Foreign Key Table Delete not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-table-delete-not-working/m-p/1929384#M385228</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 still not clear about this RDBMS rule &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per RDBMS rule If the primary key is updated, all referencing foreign keys are updated to the same value. If the primary key is deleted, all referencing foreign key rows are deleted. This effect works for all cases of cross-referencing and self-referencing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to enable this rule related to parent and child table using foreign key relationship.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 15:04:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-table-delete-not-working/m-p/1929384#M385228</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-02-20T15:04:16Z</dc:date>
    </item>
  </channel>
</rss>

