<?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: Annotation for Quantity field in CDS table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/annotation-for-quantity-field-in-cds-table/m-p/12462079#M2000317</link>
    <description>&lt;P&gt;Should be:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;...
@Semantics.quantity.unitOfMeasure: 'hot_weight_uom'
hot_weight    : /lsp/e_hot_weight;
@Semantics.unitOfMeasure
hot_weight_uom: /lsp/e_hot_weight_uom;
...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; @Semantics.quanity.unitOfMeasure must be a reference to a Unit of Measure field; in your case hot_weight_uom. The Unit of Measure field must be annotated with  @Semantics.unitOfMeasure&lt;/P&gt;</description>
    <pubDate>Thu, 20 May 2021 05:02:32 GMT</pubDate>
    <dc:creator>pfefferf</dc:creator>
    <dc:date>2021-05-20T05:02:32Z</dc:date>
    <item>
      <title>Annotation for Quantity field in CDS table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/annotation-for-quantity-field-in-cds-table/m-p/12462078#M2000316</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
  &lt;P&gt;I am creating CDS table which is having one field type of MENGE for quantity,&lt;/P&gt;
  &lt;P&gt;but it is throwing error for annotaions&lt;/P&gt;
  &lt;P&gt;I tried with Semantics.quantiy,unitofmeasue: 'Base UOM' but didn't work.&lt;/P&gt;
  &lt;P&gt;If anyone has solution please share.&lt;/P&gt;
  &lt;P&gt;error : Annotation with reference to unit code for field HOT_WEIGHT is uncomplete&lt;/P&gt;
  &lt;P&gt;Thanks&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;@EndUserText.label : 'xxxxx Item Table'
@AbapCatalog.enhancementCategory : #NOT_EXTENSIBLE
@AbapCatalog.tableCategory : #TRANSPARENT
@AbapCatalog.deliveryClass : #A
@AbapCatalog.dataMaintenance : #RESTRICTED
define table /lsp/xxxxxxxxx {
  key client     : abap.clnt not null;
  key carcass_nr : /lsp/e_carcass_nr not null;
  key side_nr    : /lsp/e_side_nr not null;
  harvest_date   : /lsp/e_harvest_date;
  hot_date_time  : /lsp/e_hot_date_time;
  hot_shift      : /lsp/e_hot_shift;
 @Semantics.quantity.unitOfMeasure: 'BaseUnitOfMeasure'
  hot_weight     : /lsp/e_hot_weight;
  hot_weight_uom : /lsp/e_hot_weight_uom;


}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 May 2021 04:43:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/annotation-for-quantity-field-in-cds-table/m-p/12462078#M2000316</guid>
      <dc:creator>vikash_pathak</dc:creator>
      <dc:date>2021-05-20T04:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation for Quantity field in CDS table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/annotation-for-quantity-field-in-cds-table/m-p/12462079#M2000317</link>
      <description>&lt;P&gt;Should be:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;...
@Semantics.quantity.unitOfMeasure: 'hot_weight_uom'
hot_weight    : /lsp/e_hot_weight;
@Semantics.unitOfMeasure
hot_weight_uom: /lsp/e_hot_weight_uom;
...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; @Semantics.quanity.unitOfMeasure must be a reference to a Unit of Measure field; in your case hot_weight_uom. The Unit of Measure field must be annotated with  @Semantics.unitOfMeasure&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 05:02:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/annotation-for-quantity-field-in-cds-table/m-p/12462079#M2000317</guid>
      <dc:creator>pfefferf</dc:creator>
      <dc:date>2021-05-20T05:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation for Quantity field in CDS table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/annotation-for-quantity-field-in-cds-table/m-p/12462080#M2000318</link>
      <description>&lt;P&gt;Hi Florian,&lt;/P&gt;&lt;P&gt;Still getting the same error .&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1941448-capture.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 05:15:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/annotation-for-quantity-field-in-cds-table/m-p/12462080#M2000318</guid>
      <dc:creator>vikash_pathak</dc:creator>
      <dc:date>2021-05-20T05:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation for Quantity field in CDS table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/annotation-for-quantity-field-in-cds-table/m-p/12462081#M2000319</link>
      <description>&lt;P&gt;  &lt;SPAN class="mention-scrubbed"&gt;vikash.pathak&lt;/SPAN&gt;  What is the warning message for the @Semantics.unitOfMeasure annotation?&lt;/P&gt;&lt;P&gt;Maybe you have to add "true" as value (which is the default in new version):&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;@Semantics.unitOfMeasure: true&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 May 2021 05:21:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/annotation-for-quantity-field-in-cds-table/m-p/12462081#M2000319</guid>
      <dc:creator>pfefferf</dc:creator>
      <dc:date>2021-05-20T05:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation for Quantity field in CDS table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/annotation-for-quantity-field-in-cds-table/m-p/12462082#M2000320</link>
      <description>&lt;P&gt;unitof measure is not valid&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1941449-1.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 05:25:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/annotation-for-quantity-field-in-cds-table/m-p/12462082#M2000320</guid>
      <dc:creator>vikash_pathak</dc:creator>
      <dc:date>2021-05-20T05:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation for Quantity field in CDS table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/annotation-for-quantity-field-in-cds-table/m-p/12462083#M2000321</link>
      <description>&lt;P&gt;  &lt;SPAN class="mention-scrubbed"&gt;vikash.pathak&lt;/SPAN&gt;  What is the type behind data element /lsp/e_hot_weight_uom?&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 05:29:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/annotation-for-quantity-field-in-cds-table/m-p/12462083#M2000321</guid>
      <dc:creator>pfefferf</dc:creator>
      <dc:date>2021-05-20T05:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation for Quantity field in CDS table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/annotation-for-quantity-field-in-cds-table/m-p/12462084#M2000322</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;It is MEINS,&lt;/P&gt;&lt;P&gt;This issue is resolved now.&lt;/P&gt;&lt;P&gt;with semantics annotation  table name has to be added&lt;/P&gt;&lt;P&gt;@Semantics.quantity.unitOfMeasure:'/xx/xx.hot_weight_uom'&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 05:49:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/annotation-for-quantity-field-in-cds-table/m-p/12462084#M2000322</guid>
      <dc:creator>vikash_pathak</dc:creator>
      <dc:date>2021-05-20T05:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation for Quantity field in CDS table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/annotation-for-quantity-field-in-cds-table/m-p/14165861#M2042204</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;SPAN&gt;@Semantics.quantity.unitOfMeasure : 'TABLENAME.REFERENCEUNIT'&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2025 14:16:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/annotation-for-quantity-field-in-cds-table/m-p/14165861#M2042204</guid>
      <dc:creator>Sadeq_Ahmed6</dc:creator>
      <dc:date>2025-07-29T14:16:44Z</dc:date>
    </item>
  </channel>
</rss>

