<?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 relation issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-relation-issue/m-p/11887029#M1961163</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;You need you validate the data by yourself before inserting them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The foreign key doesn't work at database level, so the INSERT statament will insert a record though the forign key is not respected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Sep 2016 15:31:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-09-14T15:31:33Z</dc:date>
    <item>
      <title>Foreign key relation issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-relation-issue/m-p/11887026#M1961160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #444444; font-family: 'Open Sans', serif; font-size: 15px;"&gt;Dear Experts,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #444444; font-family: 'Open Sans', serif; font-size: 15px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #444444; font-family: 'Open Sans', serif; font-size: 15px;"&gt;I have created foreign key relationship already using foreign key button then i&lt;/SPAN&gt;&lt;SPAN style="color: #444444; font-family: 'Open Sans', serif; font-size: 15px;"&gt;f i try to create an entry in my foreign key table with field 'food' that is not there in the check table. It is acepting the entries which is not having in my check table entries.I need the error message like this 'Entry does not exist in check table - Check your entry'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #444444; font-family: 'Open Sans', serif; font-size: 15px;"&gt;I tried not working. Please explain me clearly. How to do this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #444444; font-family: 'Open Sans', serif; font-size: 15px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #444444; font-family: 'Open Sans', serif; font-size: 15px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #444444; font-family: 'Open Sans', serif; font-size: 15px;"&gt;Thanks and regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #444444; font-family: 'Open Sans', serif; font-size: 15px;"&gt;Samir&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #444444; font-family: 'Open Sans', serif; font-size: 15px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2016 14:56:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-relation-issue/m-p/11887026#M1961160</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-14T14:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Foreign key relation issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-relation-issue/m-p/11887027#M1961161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;are you attempting to insert the entry using a screen/dialog or purely using SQL in ABAP program?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2016 15:04:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-relation-issue/m-p/11887027#M1961161</guid>
      <dc:creator>D_Chia</dc:creator>
      <dc:date>2016-09-14T15:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: Foreign key relation issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-relation-issue/m-p/11887028#M1961162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to check 2 things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Is the new entry created using a program or thru the screen just as specified on the previous reply.&lt;/P&gt;&lt;P&gt;2. You need to check the cardinality relationship between your check table and FK table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vikram.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2016 15:18:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-relation-issue/m-p/11887028#M1961162</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-14T15:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: Foreign key relation issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-relation-issue/m-p/11887029#M1961163</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;You need you validate the data by yourself before inserting them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The foreign key doesn't work at database level, so the INSERT statament will insert a record though the forign key is not respected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2016 15:31:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-relation-issue/m-p/11887029#M1961163</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-14T15:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Foreign key relation issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-relation-issue/m-p/11887030#M1961164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or, if it's about a field in a dynpro, the validation is automatic if the dynpro field name is tablename-fieldname and the checkbox "field attached to the DDIC" is ticked (and of course, the foreign key must have checkbox "error if value doesn't exist" ticked).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2016 16:06:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-relation-issue/m-p/11887030#M1961164</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2016-09-14T16:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Foreign key relation issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-relation-issue/m-p/11887031#M1961165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The cardinality field of the foreign key is just for information (as said in the field help).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2016 16:07:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-relation-issue/m-p/11887031#M1961165</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2016-09-14T16:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Foreign key relation issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-relation-issue/m-p/11887032#M1961166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have not tried this yet, but if the cardinality is defined as N:M and N has a value of 'C', then doesn't the system allow to create entries in FK table even if the check table does not have an entry?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vikram.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2016 17:09:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-relation-issue/m-p/11887032#M1961166</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-14T17:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Foreign key relation issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-relation-issue/m-p/11887033#M1961167</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;You should consider every table exists in two different level:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Dictionary&lt;/P&gt;&lt;P&gt;- Database&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The foreign key is an attribute at dictionary level, as &lt;STRONG style="font-size: 10.8px; background: #ffffff; color: #333333;"&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="41205" data-externalid="" data-presence="null" data-userid="331000" data-username="sandra.rossi" href="https://answers.sap.com/people/sandra.rossi" style="padding: 0 3px 0 0; font-weight: inherit; font-style: inherit; font-size: 1.1em; font-family: inherit; background: transparent; text-decoration: underline !important; color: #3778c7;"&gt;Sandra Rossi&lt;/A&gt;&lt;/STRONG&gt; has already explained, it can be used to have an automatic validation in the SAP screen (selection-screen or dynpro): in this case the system will do the validation for you automatically&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the sql commands (like INSERT) don't use it, no validation will be done except uniqueness of the record&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2016 17:39:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-relation-issue/m-p/11887033#M1961167</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-14T17:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Foreign key relation issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-relation-issue/m-p/11887034#M1961168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sandra/Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. I thought that the cardinality will impact the FK. I just ran a test and it does not affect the same. The error message was raised ir respective of the cardinality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikram.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2016 19:20:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-relation-issue/m-p/11887034#M1961168</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-14T19:20:02Z</dc:date>
    </item>
  </channel>
</rss>

