Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: XS/ODATA access to analytic view field lables

$
0
0

Yes you can do this in SP7. You need to use the annotation: enable OData4SAP;

 

A little hint, annotations go after the close of the service definition itself in the xsodata file. Here is a complete xsodata example:

 

service namespace "sap.hana.democontent.epmNext"  {

   "sap.hana.democontent.epmNext.models::AT_PURCHASE_ORDER_WORKLIST" as "PO_WORKLIST"

   keys ("PurchaseOrderId","PurchaseOrderItem");  

 

 

}

 

 

   annotations {

     enable OData4SAP;

}

 

Then when I fetch the metadata I get extra columns such as sap:label

odata4SAP.png


Viewing all articles
Browse latest Browse all 9165

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>