<?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: Compound primary key in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/compound-primary-key/m-p/3707921#M892763</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tabLine TYPE SORTED TABLE OF Line WITH UNIQUE KEY Key1 , Key 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This uses the combination of the four key fields as unique. So every row in this internal table is unique for the keyfields key1, key2, key3 etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Apr 2008 14:58:54 GMT</pubDate>
    <dc:creator>Sm1tje</dc:creator>
    <dc:date>2008-04-18T14:58:54Z</dc:date>
    <item>
      <title>Compound primary key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compound-primary-key/m-p/3707920#M892762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I want to make an internal table, that should behandled by a compound primary key. I'm German and I am not sure what's the english word for zusammengesetzter primärschlüssel. I mean I have e.g. 4 Primary Keys. An valid Dataset must have a unique COMBINATION of these 4 Primary keys.SO that's what I am looking for. I tried doing it with a SORTED TABLE:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;tabLine TYPE SORTED TABLE OF Line WITH UNIQUE KEY Key1 , Key 2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this is not what I want. Now ABAP wants to be each Primary Key to be unique. But I want to have a unique COMBINATION of all Primary Keys to be unique. My next idea is to make "a table in a line" and this will be my primary key. But I am not sure if that would even work and if there isn't a much easier way in ABAP. So I am asking you again &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2008 14:54:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compound-primary-key/m-p/3707920#M892762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-18T14:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Compound primary key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compound-primary-key/m-p/3707921#M892763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tabLine TYPE SORTED TABLE OF Line WITH UNIQUE KEY Key1 , Key 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This uses the combination of the four key fields as unique. So every row in this internal table is unique for the keyfields key1, key2, key3 etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2008 14:58:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compound-primary-key/m-p/3707921#M892763</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2008-04-18T14:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Compound primary key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compound-primary-key/m-p/3707922#M892764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems to work now. I tried the same thing a few hours ago and it didn't work. Looks like there was some kind of typing error &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2008 22:59:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compound-primary-key/m-p/3707922#M892764</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-18T22:59:46Z</dc:date>
    </item>
  </channel>
</rss>

