<?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: regarding foreign key in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-foreign-key/m-p/2715198#M629645</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer to these related threads&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="2979207"&gt;&lt;/A&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="3449710"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Aug 2007 16:21:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-16T16:21:35Z</dc:date>
    <item>
      <title>regarding foreign key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-foreign-key/m-p/2715197#M629644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hiiii  .. can any one clarify wht exactly is generic foreign key,adapted f.key and constant foreign key... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thankxx in advance&lt;/P&gt;&lt;P&gt;bhabani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 16:18:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-foreign-key/m-p/2715197#M629644</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T16:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: regarding foreign key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-foreign-key/m-p/2715198#M629645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer to these related threads&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="2979207"&gt;&lt;/A&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="3449710"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 16:21:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-foreign-key/m-p/2715198#M629645</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T16:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: regarding foreign key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-foreign-key/m-p/2715199#M629646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;"Generic and Constant Foreign Keys&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do not want to check against all the key fields of the check table, you can exclude fields of the foreign key table from the assignment of the fields to the check table with &lt;U&gt;'generic and constant foreign keys&lt;/U&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;It is not always advisable to check a foreign key against all the key fields of the check table. This is true for example for time-dependent check tables and for check tables whose version number is a component of the key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use generic foreign keys in these cases. Fields are excluded from the assignment to the key fields of the check table here. The check is only against the remaining key fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also assign a constant value to a key field of the check table. In this case you only have to check against the specified constant. You can use this check if only records of the check table which contain a constant value in this key field are valid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The corresponding SELECT statement for the screen check has the following form for the foreign key definition in the graphic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;"Example :&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Foreign key table  : FTAB .
Check Table  : PTAB .
Then ,

SELECT * FROM PTAB WHERE PTAB-FIELD1 = FTAB-FIELD6 AND PTAB-FIELD3 = FTAB-FIELD8 AND PTAB-FIELD4 = &amp;#145;K&amp;#146;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An entry is only valid in check field Field6 if a record of check table PTAB exists containing the input value for Field6 in PTAB-Field1, the input value for Field8 in PTAB-Field3 and constant K in PTAB-Field4. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The values entered on the screen for Field7 and Field9 are meaningless when checking against the check table. An entry with Field6 = 1, Field8 = 3 and Field9 = B would not be valid in this case since there is no record with PTAB-Field1 = 1, PTAB-Field3 = 3 and PTAB-Field4 = K in the check table!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward  points if it is usefull...&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2007 03:25:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-foreign-key/m-p/2715199#M629646</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-17T03:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: regarding foreign key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-foreign-key/m-p/2715200#M629647</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;download the&lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://www.sapbrainsonline.com/TUTORIALS/TECHNICAL/dictionary_tutorial.html"&amp;gt;Dictionary Complete Guide&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;and go through Foreigh Key topic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2007 03:36:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-foreign-key/m-p/2715200#M629647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-17T03:36:35Z</dc:date>
    </item>
  </channel>
</rss>

