<?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 Primary/Composite keys combination doesn't work. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-composite-keys-combination-doesn-t-work/m-p/11503557#M1933030</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've build a custom table with three primary/composite keys, including Customer (KUNNR), Billing Type (FKART) and Output Media (ZZ_MEDIA) (as shown below).&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/866583" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the issue is I can insert records without Billing Type and Output Media via SM30 as shown below.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/866582" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question is, is there anything I can do to prevent it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in Advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Jan 2016 23:02:22 GMT</pubDate>
    <dc:creator>former_member295881</dc:creator>
    <dc:date>2016-01-12T23:02:22Z</dc:date>
    <item>
      <title>Primary/Composite keys combination doesn't work.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-composite-keys-combination-doesn-t-work/m-p/11503557#M1933030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've build a custom table with three primary/composite keys, including Customer (KUNNR), Billing Type (FKART) and Output Media (ZZ_MEDIA) (as shown below).&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/866583" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the issue is I can insert records without Billing Type and Output Media via SM30 as shown below.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/866582" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question is, is there anything I can do to prevent it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in Advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 23:02:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-composite-keys-combination-doesn-t-work/m-p/11503557#M1933030</guid>
      <dc:creator>former_member295881</dc:creator>
      <dc:date>2016-01-12T23:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Primary/Composite keys combination doesn't work.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-composite-keys-combination-doesn-t-work/m-p/11503558#M1933031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try creating Table Maintenance Generator &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;and from table maintenece generator screen goto&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Environment -&amp;gt; Modification -&amp;gt; Maintenece Screen and make that field mandatory.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 03:08:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-composite-keys-combination-doesn-t-work/m-p/11503558#M1933031</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-01-13T03:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Primary/Composite keys combination doesn't work.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-composite-keys-combination-doesn-t-work/m-p/11503559#M1933032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Composite key is a combination of two or more primary keys in a table.&lt;/P&gt;&lt;P&gt;When you maintain the table, it will take a unique combination of all mentioned keys. even if you enter the value of one primary key and left the remaining primary keys blank, it is a possible combination, so the entry will be added to the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have requirement to add entry to table only when all the primary keys are entered, you can do the following:&lt;/P&gt;&lt;P&gt;1. Go to table maintenance generator. (Create one if you don't created it already)&lt;/P&gt;&lt;P&gt;2. Go to Menu Environment -&amp;gt; Modification -&amp;gt; Maintenance Screens &lt;/P&gt;&lt;P&gt;It will take you to the screen painter. Now go to Layout. There u can see the screen, the same screen u can see when u execute transaction SM30. &lt;/P&gt;&lt;P&gt;3. Go to the desired tab and make the field as mandatory. &lt;/P&gt;&lt;P&gt;Once you click on respective field tab, You can see the Screen painter: attributes screen , in that go to Attributes tab, Select Program Tab and make &lt;STRONG&gt;input as required&lt;/STRONG&gt; from the drop-down. &lt;/P&gt;&lt;P&gt;so the respected Key field become mandatory. You can do the same procedure for other key fields. So entry will be added to table when you provide all primary key values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mayuresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 07:20:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-composite-keys-combination-doesn-t-work/m-p/11503559#M1933032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-01-13T07:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Primary/Composite keys combination doesn't work.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-composite-keys-combination-doesn-t-work/m-p/11503560#M1933033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you create some foreign key relations to check value of FKART (TVFK) and ZZ_MEDIA (z-table) as I suppose you did for KUNNR with KNA1-KUNNR (check required, key fields/candidates, cardinality 1:CN) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample KUNNR in KNB1, check table KNA1:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/867182" /&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 14:37:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-composite-keys-combination-doesn-t-work/m-p/11503560#M1933033</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2016-01-13T14:37:18Z</dc:date>
    </item>
  </channel>
</rss>

