<?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: Reference key for 2 tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reference-key-for-2-tables/m-p/1521596#M239459</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Im sorry. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. You are right.&lt;/P&gt;&lt;P&gt;3. (actually i thought it as a UNION-Query&lt;/P&gt;&lt;P&gt;    for the view, which is presently not&lt;/P&gt;&lt;P&gt;   possible in data dictionary)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. We create a view directly &lt;/P&gt;&lt;P&gt;  with entries from both t1 and t2 table,&lt;/P&gt;&lt;P&gt;   but it won't probably work as a union query,&lt;/P&gt;&lt;P&gt;   bcos we have to give join for both the tables. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Sep 2006 07:04:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-01T07:04:50Z</dc:date>
    <item>
      <title>Reference key for 2 tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reference-key-for-2-tables/m-p/1521590#M239453</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;I have 2 questions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I have 3 tables, stay T1, T2 and T3. All three tables have field F1. F1 in T1 and T2 is a primary key. I want F1 in T3 to be foreign key to F1 in T1 and F1 in T2. i.e F1 entries in T3 should be either those of T1 or T2. Is this possible? If so how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) I also want the combined entries of T1 and T2 to be unique. How can I do this?  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Reena&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2006 06:07:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reference-key-for-2-tables/m-p/1521590#M239453</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-01T06:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Reference key for 2 tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reference-key-for-2-tables/m-p/1521591#M239454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in T3 u can give as F1 as foreign key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in se11 , goto T3 , change , put the curson on F1 , then click the foreign key button , here u can declare it as foreign key of T1 , T2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2006 06:10:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reference-key-for-2-tables/m-p/1521591#M239454</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-01T06:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Reference key for 2 tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reference-key-for-2-tables/m-p/1521592#M239455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi reena,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. F1 entries in T3 should be either those of T1 or T2. Is this possible&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its not directly possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. One thing is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;b&amp;gt;a) create a Z View which will have&lt;/P&gt;&lt;P&gt;      entries from BOTH the tables T1, T2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   b) Give this VIEW as foreign-key table&lt;/P&gt;&lt;P&gt;      in se11, for T3.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. I also want the combined entries of T1 and T2 to be unique. How can I do this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this we have to write some abap code,&lt;/P&gt;&lt;P&gt;while putting entries in to the table.&lt;/P&gt;&lt;P&gt;(the system cannot take care of both tables)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2006 06:14:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reference-key-for-2-tables/m-p/1521592#M239455</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-01T06:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Reference key for 2 tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reference-key-for-2-tables/m-p/1521593#M239456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am able to declare it either to T1 or to T2. How can I declare to both at the same time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2006 06:15:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reference-key-for-2-tables/m-p/1521593#M239456</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-01T06:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Reference key for 2 tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reference-key-for-2-tables/m-p/1521594#M239457</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 can define a foreign key as dependent on any primary key. And about the records dependability, you can define the cardinality relationship in such a way that u achieve ur objective.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helfpul.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regardds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2006 06:30:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reference-key-for-2-tables/m-p/1521594#M239457</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-01T06:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: Reference key for 2 tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reference-key-for-2-tables/m-p/1521595#M239458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T1 and T2 are two independent tables. How can I create a view with F1 contains entries from both T1 and T2?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Reena&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2006 06:57:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reference-key-for-2-tables/m-p/1521595#M239458</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-01T06:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Reference key for 2 tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reference-key-for-2-tables/m-p/1521596#M239459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Im sorry. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. You are right.&lt;/P&gt;&lt;P&gt;3. (actually i thought it as a UNION-Query&lt;/P&gt;&lt;P&gt;    for the view, which is presently not&lt;/P&gt;&lt;P&gt;   possible in data dictionary)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. We create a view directly &lt;/P&gt;&lt;P&gt;  with entries from both t1 and t2 table,&lt;/P&gt;&lt;P&gt;   but it won't probably work as a union query,&lt;/P&gt;&lt;P&gt;   bcos we have to give join for both the tables. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2006 07:04:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reference-key-for-2-tables/m-p/1521596#M239459</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-01T07:04:50Z</dc:date>
    </item>
  </channel>
</rss>

