Skip to main content
Solved

Using Variable in KPI/Attribute Unit possible?

  • March 4, 2025
  • 4 replies
  • 81 views

thomas.keim
Level 10
Forum|alt.badge.img+2

Hello Community,

I would like to give my users the option to display an amount (e.g. freight) in any currency. To do this, I use the function CURRENCY_CONVERT_SAP and pass the target currency via a variable. This works perfectly.

My problem is the unit: Do you know of or is there a way to use my variable in the unit field so that the selected currency is automatically displayed as the unit?

Thank for help, Thomas

Β 

Β 

Best answer by thomas.keim

I don't know whether I was blind or whether it has become possible with an update in the last few days: Now it is possible to use a variable in the Unit Field of a KPI in the Knowledge Model ✌🏻

It would be great if not only a variable but also an attribute were possible. For example, I have the fields NETWR and WAERK on the table VBAP.

  • NETWR e.g. 1000
  • WAERK e.g. EUR

Now I want to use the attribute VBAP.WERK in the unit field of NETWR with the result 1000 EUR.

I have made an Feature suggestion for this: CASEΒ 00350163

4 replies

abhishek.chatu14
Level 11
Forum|alt.badge.img+4

You can do this in the views, when displaying the unit pass the variable in the view instead of the KMΒ 

Β 

Β 


thomas.keim
Level 10
Forum|alt.badge.img+2
  • Author
  • Level 10
  • 9 replies
  • March 5, 2025

OK, thank you 😊 not my preferred solution but better then nothing.

On further question:Β Would it then be possible to use a table attribute in the unit in the knowledge model?

E.g. I have stored the Currency in the field VTTK.WAERS … Can I use this field als Unit? If yes how?

Best, Thomas


abhishek.chatu14
Level 11
Forum|alt.badge.img+4

I don't believe that is possibleΒ 


thomas.keim
Level 10
Forum|alt.badge.img+2
  • Author
  • Level 10
  • 9 replies
  • Answer
  • March 19, 2025

I don't know whether I was blind or whether it has become possible with an update in the last few days: Now it is possible to use a variable in the Unit Field of a KPI in the Knowledge Model ✌🏻

It would be great if not only a variable but also an attribute were possible. For example, I have the fields NETWR and WAERK on the table VBAP.

  • NETWR e.g. 1000
  • WAERK e.g. EUR

Now I want to use the attribute VBAP.WERK in the unit field of NETWR with the result 1000 EUR.

I have made an Feature suggestion for this: CASEΒ 00350163