<?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: problem in cardinality in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-cardinality/m-p/9190701#M1714243</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How are you inserting the records? If you are inserting the records using a program, then the cardinality specified in foreign key relationships is not respected. Cardinality is respected when you use the SAP GUI (for e.g using a table maintenance dialog) to create data entries in the table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jan 2013 09:19:43 GMT</pubDate>
    <dc:creator>kakshat</dc:creator>
    <dc:date>2013-01-03T09:19:43Z</dc:date>
    <item>
      <title>problem in cardinality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-cardinality/m-p/9190695#M1714237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abap ers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; i create 2 custom tables zchk and zfor.. zchk is check table and zfor is foreign key table. zchk has 2 fields like mandt(keyfield) and matnr(keyfield).&amp;nbsp; zfor has 4 fields mandt(keyfield), matnr,(keyfield) werks(keyfield) and mtart.&amp;nbsp; i create a foreign key relationship between matnr (zchk) and matnr(zfor) from table zfor.&lt;/P&gt;&lt;P&gt; i provide my screen details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in cardinality i have kept 1: C relationship. this means each record for check table there exist at most 1 record in foreign key table......but when i insert record in zfor table it allows me to insert more than one record....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: zchk has one record&amp;nbsp; &lt;/P&gt;&lt;P&gt;mandt&amp;nbsp;&amp;nbsp; matnr&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;130&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt; when i insert 100(matnr) in zfor it allows me many time.....but my cardinality 1:C ...... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whats the reason???? have i any wrong concept about cardinality??? plzzz explain and solve this problem.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;Sabyasachi &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jan 2013 14:30:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-cardinality/m-p/9190695#M1714237</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-01T14:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: problem in cardinality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-cardinality/m-p/9190696#M1714238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp; your foreignkey can not in same time 1 composant of your keyfields of the second table.&amp;nbsp; Check in database documentation for the primary key and foreign key contraints.&amp;nbsp; I hope that it will help you.&amp;nbsp; Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jan 2013 14:52:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-cardinality/m-p/9190696#M1714238</guid>
      <dc:creator>former_member189905</dc:creator>
      <dc:date>2013-01-01T14:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: problem in cardinality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-cardinality/m-p/9190697#M1714239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Khalid,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; its not clear to me.......&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sabyasachi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jan 2013 15:50:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-cardinality/m-p/9190697#M1714239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-01T15:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: problem in cardinality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-cardinality/m-p/9190698#M1714240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sabyasachi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here ypu have &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;n = 1,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Arial; font-size: 13.600000381469727px; background-color: #ffffff;"&gt;There is exactly one record assigned to the check table for each record of the foreign key table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Arial; font-size: 13.600000381469727px; background-color: #ffffff;"&gt;m = c&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 13.600000381469727px; background-color: #ffffff; font-family: Arial;"&gt;There is at most one dependent record for each record of the check table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 13.600000381469727px; background-color: #ffffff; font-family: Arial;"&gt;you can insert values in zfor table which will be checked into corresponding zchek table based on the cardinality.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 13.600000381469727px; background-color: #ffffff; font-family: Arial;"&gt;regards &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 13.600000381469727px; background-color: #ffffff; font-family: Arial;"&gt;vaibhav&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jan 2013 16:31:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-cardinality/m-p/9190698#M1714240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-01T16:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: problem in cardinality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-cardinality/m-p/9190699#M1714241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vaibhav,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; here m = c.&lt;/P&gt;&lt;P&gt;&amp;nbsp; so i can insert maxm 1 record in zfor.....but here i can insert same recods for many time.....&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sabyasachi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jan 2013 16:39:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-cardinality/m-p/9190699#M1714241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-01T16:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: problem in cardinality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-cardinality/m-p/9190700#M1714242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sabyasachi,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matnr is the primary key of the table zchk and too 1 composant of the primary key zfor. &lt;/P&gt;&lt;P&gt;Your foreign key must to be 1 field of the table zfor without composant&amp;nbsp; of it primary key.&amp;nbsp; &lt;/P&gt;&lt;P&gt;The foreign key is done to check the data to fill in the table. &lt;/P&gt;&lt;P&gt;If your field is composant of the primary key the control of&amp;nbsp; the data is useless. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The foreign key is not to check the creation of the table records. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 08:24:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-cardinality/m-p/9190700#M1714242</guid>
      <dc:creator>former_member189905</dc:creator>
      <dc:date>2013-01-03T08:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: problem in cardinality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-cardinality/m-p/9190701#M1714243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How are you inserting the records? If you are inserting the records using a program, then the cardinality specified in foreign key relationships is not respected. Cardinality is respected when you use the SAP GUI (for e.g using a table maintenance dialog) to create data entries in the table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 09:19:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-cardinality/m-p/9190701#M1714243</guid>
      <dc:creator>kakshat</dc:creator>
      <dc:date>2013-01-03T09:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: problem in cardinality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-cardinality/m-p/9190702#M1714244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kumar,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i am inserting the records through utilities-&amp;gt;table content-&amp;gt; create entries.... here relationship is 1: C. in my check table there is only one record(for eg 1001) present. when i inserting recods 1001&amp;nbsp; to foreign key table it allows me to insert same record(1001) for many timess...WHY??&amp;nbsp; here my relationship is 1:C. according to SAP &lt;SPAN style="color: #333333; font-size: 13.600000381469727px; background-color: #ffffff; font-family: Arial;"&gt;There is at most one dependent record for each record of the check table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sabyasachi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 10:40:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-cardinality/m-p/9190702#M1714244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-03T10:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: problem in cardinality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-cardinality/m-p/9190703#M1714245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the following link. It should address your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.sap.com/saphelp_nwpi71/helpdata/en/cf/21ea91446011d189700000e8322d00/content.htm" title="https://help.sap.com/saphelp_nwpi71/helpdata/en/cf/21ea91446011d189700000e8322d00/content.htm"&gt;https://help.sap.com/saphelp_nwpi71/helpdata/en/cf/21ea91446011d189700000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 10:58:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-cardinality/m-p/9190703#M1714245</guid>
      <dc:creator>kakshat</dc:creator>
      <dc:date>2013-01-03T10:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: problem in cardinality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-cardinality/m-p/9190704#M1714246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi khalid,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ri8 now zchk(check table) has 2 fields mandt and matnr. both are key fields. in case of zfor(foreign table) has 3 fields mandt matnr and mtart. here mandt and mtart are only key fields but not matnr.. &lt;/P&gt;&lt;P&gt;foreign key relationship -&amp;gt; zchk-mandt = zfor-mandt and zchk-matnr = zfor-matnr. matnr is foreign key field in zfor.... relationship 1:C. &lt;/P&gt;&lt;P&gt;according to SAP &lt;SPAN style="color: #333333; font-size: 13.600000381469727px; background-color: #ffffff; font-family: Arial;"&gt;There is at most one dependent record for each record of the check table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my check table there is only one record(for eg 1001) present. when i inserting a record 1001&amp;nbsp; to foreign key table it allows me to insert same record(1001) for many timess...WHY?? ist time when i insert 1001 record it allows me to insert....its okk...(1:C relationship), but next time, when i inserting the same record (1001) it allows me to insert...its should not be possible because 1:C relationship. if i see this case with respect to key relationship then its possible...Eg: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mandt (K)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mtart (K)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; matnr&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; K&amp;nbsp; = key field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;120&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; halb&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1001&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [ just for example]&lt;/P&gt;&lt;P&gt;120&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; abcd&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but in my case its a foreign key table and a check table present for this foreign key table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope you understand my problem...&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sabyasachi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 11:02:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-cardinality/m-p/9190704#M1714246</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-03T11:02:44Z</dc:date>
    </item>
  </channel>
</rss>

