SAP Knowledge Base Article - Public

3451145 - How to add description of a Custom Field for one language to a CDS View?

Symptom

How to add description of a Custom Field for one language to a CDS View?

Environment

S/4HANA Cloud

Resolution

  1. If would like to add a description exactly for one language to Custom CDS View, please add a calculated field and enter following path (1 is the new cardinality of the _Text association):

    I_Mkt_Contact._YY1_ACADEMICTITLE_MPS._Text[1:Language = $session.system_language].Description

  2. If would like to have texts for fixed languages, e.g. English:

    I_Mkt_Contact._YY1_ACADEMICTITLE_MPS._Text[1:Language = 'E'].Description

See Also

https://help.sap.com/docs/ABAP_PLATFORM_NEW/b5670aaaa2364a29935f40b16499972d/d72a13f700de4b2fbd33a6e7fc562fa9.html?q=calculated%20field

Keywords

Custom Field, Description, Language, CDS view, Calculated , KBA , BC-SRV-APS-GKE , Generic CDS Key User Editor , Problem

Product

SAP S/4HANA Cloud 2402