<?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 Foreign key relation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-relation/m-p/2226439#M478561</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone help me out in this issue.i'm facing problem while giving a check table relationship in 4.7 version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had two tables ZTERM_k and ZTERM_P&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZTERM_K has fields MANDT and TERMDESC(terminal name) both the fields are marked as primary keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZTERM_P has fields MANDT , TERMDESC and PRDHA. here only MANDT is marked as primay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table one has a unique key.  This table will be used in the select option of the report to present the available options (similar to value keys).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              i.e. 040   ALTURA &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                    040  ITVM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                   040  SST    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                    040  All SSP &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table two has a non unique key.  In this table there will be a row for each product and the associated relationship.  This table will be used to build the select option range that the program logic relies upon to read the database.  In some cases the relationship of product is 1 for 1.  In other cases, the table will contain 1 to many relationships (i.e ALTURA associated with product hierarchy codes ALT, ALT2, ALT4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            i.e. 040    ALTURA         ALT      &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                   040    ALTURA       ALT2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                   040    ALTURA       ALT4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                  040    ITMV             EDS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                   040    ITVM            EDSQ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                   040    ITVM             GG &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                   040    SST              SST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is how we have the input in both the tables. i created the firs table ZTERM_K and added entries to it.the same way i created the table ZTERM_P &lt;/P&gt;&lt;P&gt;and selected the field TERMDESC and clicked on foreignkey tab gave  the table name ZTERM_K and activated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TERMDESC gives the values of ZTERM_K only.&lt;/P&gt;&lt;P&gt;TERMDESC key has several combinations of PRDHA in 2nd table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now when i create the entries i'm able to enter only one entry.and not able to enter any entrys's with any combinations. it is displaying a message "A data record with specified key already exits".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;waiting for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Rayudu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 May 2007 11:36:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-08T11:36:41Z</dc:date>
    <item>
      <title>Foreign key relation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-relation/m-p/2226439#M478561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone help me out in this issue.i'm facing problem while giving a check table relationship in 4.7 version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had two tables ZTERM_k and ZTERM_P&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZTERM_K has fields MANDT and TERMDESC(terminal name) both the fields are marked as primary keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZTERM_P has fields MANDT , TERMDESC and PRDHA. here only MANDT is marked as primay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table one has a unique key.  This table will be used in the select option of the report to present the available options (similar to value keys).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              i.e. 040   ALTURA &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                    040  ITVM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                   040  SST    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                    040  All SSP &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table two has a non unique key.  In this table there will be a row for each product and the associated relationship.  This table will be used to build the select option range that the program logic relies upon to read the database.  In some cases the relationship of product is 1 for 1.  In other cases, the table will contain 1 to many relationships (i.e ALTURA associated with product hierarchy codes ALT, ALT2, ALT4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            i.e. 040    ALTURA         ALT      &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                   040    ALTURA       ALT2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                   040    ALTURA       ALT4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                  040    ITMV             EDS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                   040    ITVM            EDSQ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                   040    ITVM             GG &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                   040    SST              SST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is how we have the input in both the tables. i created the firs table ZTERM_K and added entries to it.the same way i created the table ZTERM_P &lt;/P&gt;&lt;P&gt;and selected the field TERMDESC and clicked on foreignkey tab gave  the table name ZTERM_K and activated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TERMDESC gives the values of ZTERM_K only.&lt;/P&gt;&lt;P&gt;TERMDESC key has several combinations of PRDHA in 2nd table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now when i create the entries i'm able to enter only one entry.and not able to enter any entrys's with any combinations. it is displaying a message "A data record with specified key already exits".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;waiting for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Rayudu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 11:36:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-relation/m-p/2226439#M478561</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T11:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Foreign key relation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-relation/m-p/2226440#M478562</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;While giviign check table relation ship . u check it properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am suggesting:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;activate zterm_k.&lt;/P&gt;&lt;P&gt;go to zterm_p&lt;/P&gt;&lt;P&gt;select terdesc field ...&lt;/P&gt;&lt;P&gt;goto forein field&lt;/P&gt;&lt;P&gt;then select field relationship...&lt;/P&gt;&lt;P&gt;And set CARDINALITY, i think here u r missing something ..  u give proper cardinality and hope it will work. (combination of C, N, 1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 11:54:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-relation/m-p/2226440#M478562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T11:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Foreign key relation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-relation/m-p/2226441#M478563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jogdand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply,I checked but it did not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rayudu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 12:25:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-relation/m-p/2226441#M478563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T12:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Foreign key relation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-relation/m-p/2226442#M478564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do the following :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create the foreign Key as :&lt;/P&gt;&lt;P&gt;ZTERM_K   - check table&lt;/P&gt;&lt;P&gt;TERMDESC - check table fld&lt;/P&gt;&lt;P&gt;ZTERM_P - Foreign table&lt;/P&gt;&lt;P&gt;TERMDESC - Foreign key field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Semantic attributes :&lt;/P&gt;&lt;P&gt;Foreign Key field type  : Key fields / candidates&lt;/P&gt;&lt;P&gt;Cardinality 1 : CN &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should ensure that insertion of new records is allowed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 13:23:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-relation/m-p/2226442#M478564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T13:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Foreign key relation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-relation/m-p/2226443#M478565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do this way...&lt;/P&gt;&lt;P&gt;Create foreign Key&lt;/P&gt;&lt;P&gt;ZTERM_K - check table&lt;/P&gt;&lt;P&gt;TERMDESC - check table field&lt;/P&gt;&lt;P&gt;ZTERM_P - Foreign table&lt;/P&gt;&lt;P&gt;TERMDESC - Foreign key field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Semantic attributes :&lt;/P&gt;&lt;P&gt;Foreign Key field type : Key fields / candidates&lt;/P&gt;&lt;P&gt;Cardinality 1 : CN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 13:26:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-relation/m-p/2226443#M478565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T13:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Foreign key relation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-relation/m-p/2226444#M478566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While giving the foriegn i think u have check the checkbox named check table.This will only make a check while u entering a value in secondary table where the primary key field of primary table is used..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise give a primary key field newly other than MANDT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 04:17:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-relation/m-p/2226444#M478566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T04:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Foreign key relation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-relation/m-p/2226445#M478567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your Support and suggestions, I solved the problem on my own.&lt;/P&gt;&lt;P&gt;The problem is in table ZTERM_P termdesc and Prdha fields should be marked as &lt;/P&gt;&lt;P&gt;primary. it is a combination of keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your help and request you to continue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Rayudu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 08:39:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-relation/m-p/2226445#M478567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T08:39:44Z</dc:date>
    </item>
  </channel>
</rss>

