<?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 How can string-fields in tables result in missing referential integrity. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-string-fields-in-tables-result-in-missing-referential-integrity/m-p/4210417#M1006128</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use attribute fields of type string in a table and I define a foreign key for that table with a check table,&lt;/P&gt;&lt;P&gt;than there is no referential integrity for this relation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The defined foreign key has nothing todo with the attribute-field, here is an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZT01 (check table)&lt;/P&gt;&lt;P&gt;mandt (s_mandt, clnt,3)&lt;/P&gt;&lt;P&gt;pk1 (numc, 10)&lt;/P&gt;&lt;P&gt;description (string)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZT02 (first referring table, which works fine).&lt;/P&gt;&lt;P&gt;mandt (s_mandt, clnt,3)&lt;/P&gt;&lt;P&gt;pk1 (numc, 10)&lt;/P&gt;&lt;P&gt;fk1 (z_id, numc, 10)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZT03 (second referring table, with no referential integrity).&lt;/P&gt;&lt;P&gt;mandt (s_mandt, clnt,3)&lt;/P&gt;&lt;P&gt;pk1 (numc, 10)&lt;/P&gt;&lt;P&gt;fk1 (z_id, numc, 10)&lt;/P&gt;&lt;P&gt;description (string)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In both cases the foreign key gives an impliciet help screen with the correct values.&lt;/P&gt;&lt;P&gt;The only difference is the additional field description in table ZT03.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This results in a foreign key relation without referential integrity!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Jul 2008 10:53:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-25T10:53:08Z</dc:date>
    <item>
      <title>How can string-fields in tables result in missing referential integrity.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-string-fields-in-tables-result-in-missing-referential-integrity/m-p/4210417#M1006128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use attribute fields of type string in a table and I define a foreign key for that table with a check table,&lt;/P&gt;&lt;P&gt;than there is no referential integrity for this relation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The defined foreign key has nothing todo with the attribute-field, here is an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZT01 (check table)&lt;/P&gt;&lt;P&gt;mandt (s_mandt, clnt,3)&lt;/P&gt;&lt;P&gt;pk1 (numc, 10)&lt;/P&gt;&lt;P&gt;description (string)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZT02 (first referring table, which works fine).&lt;/P&gt;&lt;P&gt;mandt (s_mandt, clnt,3)&lt;/P&gt;&lt;P&gt;pk1 (numc, 10)&lt;/P&gt;&lt;P&gt;fk1 (z_id, numc, 10)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZT03 (second referring table, with no referential integrity).&lt;/P&gt;&lt;P&gt;mandt (s_mandt, clnt,3)&lt;/P&gt;&lt;P&gt;pk1 (numc, 10)&lt;/P&gt;&lt;P&gt;fk1 (z_id, numc, 10)&lt;/P&gt;&lt;P&gt;description (string)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In both cases the foreign key gives an impliciet help screen with the correct values.&lt;/P&gt;&lt;P&gt;The only difference is the additional field description in table ZT03.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This results in a foreign key relation without referential integrity!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 10:53:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-string-fields-in-tables-result-in-missing-referential-integrity/m-p/4210417#M1006128</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-25T10:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: How can string-fields in tables result in missing referential integrity.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-string-fields-in-tables-result-in-missing-referential-integrity/m-p/4210418#M1006129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;STRONG&gt;The only difference is the additional field description in table ZT03.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This results in a foreign key relation without referential integrity!"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess this part of the definition answers the question&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"When one table has a foreign key to another table, the concept of referential integrity states that you may not add a record to the table that contains the foreign key unless there is a corresponding record in the linked table". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mohinder&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2008 06:24:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-string-fields-in-tables-result-in-missing-referential-integrity/m-p/4210418#M1006129</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-28T06:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: How can string-fields in tables result in missing referential integrity.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-string-fields-in-tables-result-in-missing-referential-integrity/m-p/4210419#M1006130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohinder,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, but I do not agree with that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field 'description' is part of the referring table.&lt;/P&gt;&lt;P&gt;As far as I know, both tables in a fk-relation can have each his own attributes/fields.&lt;/P&gt;&lt;P&gt;There are no restrictions on that level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2008 10:49:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-string-fields-in-tables-result-in-missing-referential-integrity/m-p/4210419#M1006130</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-28T10:49:36Z</dc:date>
    </item>
  </channel>
</rss>

