<?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: Foreign Key Issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-issue/m-p/10171730#M1822235</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you require zero to many items for a single header (not very original, isn't it) you must add a &lt;SPAN class="hps"&gt;&lt;SPAN class="hps"&gt;significantfield or&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;a&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;counter-type&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;number &lt;/SPAN&gt;&lt;/SPAN&gt;in the item table. Look at any similar transaction tables like EKKO/EKPO, MKPF/MSEG or many other header/detail couples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remember &lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;the primary key&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;implies&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;uniqueness (and not-null too)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV dir="ltr"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Mar 2014 07:35:25 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2014-03-12T07:35:25Z</dc:date>
    <item>
      <title>Foreign Key Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-issue/m-p/10171725#M1822230</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;I am facing one issue..&lt;/P&gt;&lt;P&gt;There are two tables, one is the header amd the other is transaction table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have assigned a primary key to one field in the header table and assigned the same field as foreign key in the transaction table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is in the transaction table. I have 3 records with same number. But the system allows only one record to get inserted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Foreign key concept is not applicable to this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 06:29:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-issue/m-p/10171725#M1822230</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-12T06:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Foreign Key Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-issue/m-p/10171726#M1822231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, It should be combination with item number then only it will allow you create the multiple records in the item table , means your item table should of two primary key one is main field + item as primary key, For Refernce check in VBAK and VBAP table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 06:35:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-issue/m-p/10171726#M1822231</guid>
      <dc:creator>KiranJ</dc:creator>
      <dc:date>2014-03-12T06:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: Foreign Key Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-issue/m-p/10171727#M1822232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think this has to do with the foreign key settings. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You probably have only that number as the primary field in your item table.&lt;/P&gt;&lt;P&gt;Mark the item number or line number or whatever the field is to distinguish between the records with same number also as a primary field. Then you will be able to insert more records for the same number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 06:48:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-issue/m-p/10171727#M1822232</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-12T06:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Foreign Key Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-issue/m-p/10171728#M1822233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Select the cardinality attributes as 1:N &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/408437" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 06:58:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-issue/m-p/10171728#M1822233</guid>
      <dc:creator>santhoshi_gudini</dc:creator>
      <dc:date>2014-03-12T06:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Foreign Key Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-issue/m-p/10171729#M1822234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Please tell us what the primary key is in the transaction table.&amp;nbsp; Are the primary key and foreign key the same in the transaction table?&amp;nbsp; If yes, you should add one new field (for example, a sequence number field ) to the primary key in the transaction table.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 07:28:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-issue/m-p/10171729#M1822234</guid>
      <dc:creator>former_member129652</dc:creator>
      <dc:date>2014-03-12T07:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Foreign Key Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-issue/m-p/10171730#M1822235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you require zero to many items for a single header (not very original, isn't it) you must add a &lt;SPAN class="hps"&gt;&lt;SPAN class="hps"&gt;significantfield or&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;a&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;counter-type&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;number &lt;/SPAN&gt;&lt;/SPAN&gt;in the item table. Look at any similar transaction tables like EKKO/EKPO, MKPF/MSEG or many other header/detail couples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remember &lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;the primary key&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;implies&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;uniqueness (and not-null too)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV dir="ltr"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 07:35:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-issue/m-p/10171730#M1822235</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2014-03-12T07:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Foreign Key Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-issue/m-p/10171731#M1822236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;primary key will not accept duplicate entry..&lt;/P&gt;&lt;P&gt;to solve this problem you have to add one more primary key..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assume you have two primary keys RECORD and SERIAL_NO, &amp;amp; you have records with same number number, then you can enter it like..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RECORD&amp;nbsp;&amp;nbsp;&amp;nbsp; SERIAL_NO&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;record1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;record1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;record1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 07:48:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/foreign-key-issue/m-p/10171731#M1822236</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-12T07:48:47Z</dc:date>
    </item>
  </channel>
</rss>

