<?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: Data dictionary : multiple foreign keys in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary-multiple-foreign-keys/m-p/2720445#M631125</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried that, but then I got an error message when I tried to insert a new record to my 'main' table, saying it didn't exist in the other table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I'll check it again just to make sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Aug 2007 08:26:52 GMT</pubDate>
    <dc:creator>dhorions</dc:creator>
    <dc:date>2007-08-24T08:26:52Z</dc:date>
    <item>
      <title>Data dictionary : multiple foreign keys</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary-multiple-foreign-keys/m-p/2720443#M631123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt; can anyone tell me how I assign more than 1 foreign key to a table for the same field?&lt;/P&gt;&lt;P&gt;Is that even possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a diagram of what I want to achieve, I hope this is clear, if not, just ask.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://www.quodlibet.be/files/foreign_key.jpg"&amp;gt;figure&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2007 08:20:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary-multiple-foreign-keys/m-p/2720443#M631123</guid>
      <dc:creator>dhorions</dc:creator>
      <dc:date>2007-08-24T08:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Data dictionary : multiple foreign keys</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary-multiple-foreign-keys/m-p/2720444#M631124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well you gotta work the other way round. your tables child_a and child_b nood to implement that field and have it marked as foreign key.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2007 08:24:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary-multiple-foreign-keys/m-p/2720444#M631124</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-24T08:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Data dictionary : multiple foreign keys</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary-multiple-foreign-keys/m-p/2720445#M631125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried that, but then I got an error message when I tried to insert a new record to my 'main' table, saying it didn't exist in the other table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I'll check it again just to make sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2007 08:26:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary-multiple-foreign-keys/m-p/2720445#M631125</guid>
      <dc:creator>dhorions</dc:creator>
      <dc:date>2007-08-24T08:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Data dictionary : multiple foreign keys</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary-multiple-foreign-keys/m-p/2720446#M631126</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;yes you can creat &lt;/P&gt;&lt;P&gt;for example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MARA, MARC,MARD &lt;/P&gt;&lt;P&gt;these 3 tables having MATNR field as the same &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MARD and MARC are the two tables which having FK relation to MARA &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if usefull&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2007 08:32:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary-multiple-foreign-keys/m-p/2720446#M631126</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-24T08:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Data dictionary : multiple foreign keys</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary-multiple-foreign-keys/m-p/2720447#M631127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yeah that is the relational data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can not create a record which has a reference to something that doesnt exist.&lt;/P&gt;&lt;P&gt;e.G. in an sales order, we have a field for customer. well you cant create a sales order and fill in a customer that doesnt exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thats exactly the thing for which foreigh keys are made.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2007 08:33:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary-multiple-foreign-keys/m-p/2720447#M631127</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-24T08:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Data dictionary : multiple foreign keys</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary-multiple-foreign-keys/m-p/2720448#M631128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You get me wrong, what I am saying is that it should be possible to create a customer if a sales order does not exist, but like I said, i'll just double check if I didn't make any mistakes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2007 08:35:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary-multiple-foreign-keys/m-p/2720448#M631128</guid>
      <dc:creator>dhorions</dc:creator>
      <dc:date>2007-08-24T08:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Data dictionary : multiple foreign keys</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary-multiple-foreign-keys/m-p/2720449#M631129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't seem to get it right, &lt;/P&gt;&lt;P&gt;I have three tables, like in the figure in my initial post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In table CHILD_A  I create a foreign key (with check required) linked to the field ID in the table MAIN.&lt;/P&gt;&lt;P&gt;When I add a new record to the table MAIN, I get the error message that I defined in the foreign key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I expected was this error to occur when I added a field to table CHILD_A that didn't have a corresponding record in table MAIN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2007 09:07:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary-multiple-foreign-keys/m-p/2720449#M631129</guid>
      <dc:creator>dhorions</dc:creator>
      <dc:date>2007-08-24T09:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Data dictionary : multiple foreign keys</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary-multiple-foreign-keys/m-p/2720450#M631130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmmm ok, thnen i lost overview, maybe you goto the Tables MARA, MARC, MARD, MARM and check how they have solved the issue there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2007 09:09:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary-multiple-foreign-keys/m-p/2720450#M631130</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-24T09:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Data dictionary : multiple foreign keys</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary-multiple-foreign-keys/m-p/2720451#M631131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After triple-checking my program, I found that the problem only occured when I had a search help linked to that field on my screen.&lt;/P&gt;&lt;P&gt;So it does work like I suspected, and like you guys said it would, but the check was more severe than I thought.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2007 09:43:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-dictionary-multiple-foreign-keys/m-p/2720451#M631131</guid>
      <dc:creator>dhorions</dc:creator>
      <dc:date>2007-08-24T09:43:47Z</dc:date>
    </item>
  </channel>
</rss>

