<?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: CDS Key Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-key-problem/m-p/559069#M21463</link>
    <description>&lt;P&gt;Yes, in the documentation &lt;/P&gt;</description>
    <pubDate>Mon, 01 Jan 2018 15:15:42 GMT</pubDate>
    <dc:creator>retired_member</dc:creator>
    <dc:date>2018-01-01T15:15:42Z</dc:date>
    <item>
      <title>CDS Key Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-key-problem/m-p/559068#M21462</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;First CDS

{
t.etkno,
sum( t.menge ) as menge
}
where
(
(t.gnkod = 'ASD' and t.statu = '1')
or
(t.gnkod = 'QWE' and t.statu = '2')
)
group by t.etkno&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;I have a problem with the key.&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;I made 2 cds;&lt;BR /&gt;&lt;BR /&gt;In first cds, I used sum and group by so it will collect menge for each label.&lt;BR /&gt;&lt;BR /&gt;The other cds collect many fields on many tables and menge in the first cds.&lt;BR /&gt;&lt;BR /&gt;I have put menge at the end of cds but cds creates a key for all fields till menge. &lt;/P&gt;
  &lt;P&gt;How can I fix this problem?&lt;/P&gt;
  &lt;P&gt;Can someone help me?&lt;/P&gt;
  &lt;P&gt;Thanks in advace.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Dec 2017 16:46:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cds-key-problem/m-p/559068#M21462</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-12-25T16:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: CDS Key Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-key-problem/m-p/559069#M21463</link>
      <description>&lt;P&gt;Yes, in the documentation &lt;/P&gt;</description>
      <pubDate>Mon, 01 Jan 2018 15:15:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cds-key-problem/m-p/559069#M21463</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2018-01-01T15:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: CDS Key Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-key-problem/m-p/559070#M21464</link>
      <description>&lt;P&gt;Open the &lt;A href="https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abenabap.htm"&gt;Documentation&lt;/A&gt; , search for KEY, select the CDS hit, find the appropriate annotation AbapCatalog.preserveKey ...&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jan 2018 16:51:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cds-key-problem/m-p/559070#M21464</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2018-01-01T16:51:31Z</dc:date>
    </item>
  </channel>
</rss>

