Skip to Content

Dynamic field label in CDS view

How can I create a dynamic field label in ABAP CDS? The @EnduserText.label annotation appears to be for translatable text and doesn't seem to have the ability to have dynamic elements like a BW text variable.

The user will enter a fiscal year/period, then from that the current period and previous 11 periods will be shown as columns, with additional calculated columns at the end for difference ($) for the chosen and prior period, and diference (%) for the chosen and prior period. Because of the requirement to have the additional calculated columns at the end we can't simply use a crosstab and drill down by period in the columns.

For example:

5/2016   6/2016   ...   4/2017   5/2017   Difference ($)   Difference (%)
$1       $2       ...   $3       $4       $1               25%

We're using S4/HANA version 1610 and will be displaying in WebI 4.2 SP3 patch 3.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Jun 22, 2017 at 03:15 PM

    Hi,

    I have the same problem, did you find a solution for that?

    Thanks in advance

    Thorsten

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 09, 2017 at 05:39 AM

    I too have same issue, Is there any solution to it

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 18, 2017 at 04:38 PM

    I still haven't found a solution for this and so we're doing clunky work-arounds with formulas in WebI. This doesn't help in other BI client tools like Analysis or Fiori tiles themselves.

    Add comment
    10|10000 characters needed characters exceeded