Quantcast
Channel: SCN : All Content - ABAP for SAP HANA
Viewing all articles
Browse latest Browse all 831

CDS Annotation @EndUserText.label Reference View-Field

$
0
0

Hey Guys,

 

i'm working on a CDS view to read the configuration of an object from the table IBSYMBOL. In a second view i transform this multiple configuration lines for one object into a single line with a column for each attribute of the configuration object.

Nothing magic...

 

But when the data comes to the frontend (via @OData.publish: true), the labels are always f. e. Characteristic Value (ATWRT) or Value from (ATFLV).

 

To handle this, my idea was to set a custom End User Label via Annotation @EndUserText.label and reference f. e. the name of the Attribute from CABN or CABNT.

 

Could look like that:

cabn.atnam as name_of_attribute,     
 @EndUserText.label: '{name_of_attribute}'
 ibsymbol.atwrt,

Is this possible, to reference another view field in the @EndUserText.label Annotation?

 

System: S/4HANA, NetWeaver 7.5 SPS 01

 

Regards

Simon


Viewing all articles
Browse latest Browse all 831

Trending Articles



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