<?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>Question Re: Inheriting anotations from ABAP CDS Views in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/inheriting-anotations-from-abap-cds-views/qaa-p/13992561#M4900069</link>
    <description>&lt;P&gt;did you expose _SalesOrganization in your cds?&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jan 2025 01:16:53 GMT</pubDate>
    <dc:creator>junwu</dc:creator>
    <dc:date>2025-01-22T01:16:53Z</dc:date>
    <item>
      <title>Inheriting anotations from ABAP CDS Views</title>
      <link>https://community.sap.com/t5/technology-q-a/inheriting-anotations-from-abap-cds-views/qaq-p/13992484</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I am trying to get the text descriptions from the existing CDS that I am referring in my custom ABAP CDS. The underlying cds is I_SalesDocumentItem and this has all the annotations for the characteristics needed such as material, various reason codes, statuses etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my Custom CDS at the top there is a declaration and I set it as false.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;@Metadata.ignorePropagatedAnnotations: false&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the CDS definition I am using the association like below&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;select&lt;/SPAN&gt; &lt;SPAN&gt;from&lt;/SPAN&gt; &lt;SPAN&gt;I_SalesDocumentBasic&lt;/SPAN&gt; &lt;SPAN&gt;as&lt;/SPAN&gt; &lt;SPAN&gt;_HDR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;association&lt;/SPAN&gt; &lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;..*]&lt;/SPAN&gt; &lt;SPAN&gt;to&lt;/SPAN&gt; &lt;SPAN&gt;I_SalesDocumentItem&lt;/SPAN&gt; &lt;SPAN&gt;as&lt;/SPAN&gt; &lt;SPAN&gt;_Item&lt;/SPAN&gt; &lt;SPAN&gt;on&lt;/SPAN&gt; &lt;SPAN&gt;_Item&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;SalesDocument&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;_HDR&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;SalesDocument&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;and in the body of the cds I do have foreign key annotation&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;@Objec&lt;/SPAN&gt;&lt;SPAN&gt;tModel&lt;/SPAN&gt;&lt;SPAN&gt;.foreignKey.association:&lt;/SPAN&gt; &lt;SPAN&gt;'_SalesOrganization'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;_HDR&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;SalesOrganization&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;at the end of the CDS I have association added as well...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;_Item.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In SAC after exposing the CDS thru Composite and Consumption layer, the SalesOrganization &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;does not show description though the dimension display is set as 'ID and Description' option.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But when I use explicitly define an association in the CDS and use the annotation&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;@ObjectModel.foreignkey.association for another object it shows description in SAC from teh same CDS.&lt;/SPAN&gt;&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aalexis_0-1737495961591.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/215132iB290AA8B536A240B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="aalexis_0-1737495961591.png" alt="aalexis_0-1737495961591.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there anyway I can inherit the text descriptions from the existing CDS rather than redoing allover again?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Let me know how to resolve this..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Arthur.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2025 21:48:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/inheriting-anotations-from-abap-cds-views/qaq-p/13992484</guid>
      <dc:creator>aalexis</dc:creator>
      <dc:date>2025-01-21T21:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Inheriting anotations from ABAP CDS Views</title>
      <link>https://community.sap.com/t5/technology-q-a/inheriting-anotations-from-abap-cds-views/qaa-p/13992561#M4900069</link>
      <description>&lt;P&gt;did you expose _SalesOrganization in your cds?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2025 01:16:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/inheriting-anotations-from-abap-cds-views/qaa-p/13992561#M4900069</guid>
      <dc:creator>junwu</dc:creator>
      <dc:date>2025-01-22T01:16:53Z</dc:date>
    </item>
  </channel>
</rss>

