cancel
Showing results for 
Search instead for 
Did you mean: 

How to bring T006 and SAPUI5 NumberFormat.getUnitInstance together?

WRoeckelein
Active Participant

Hey all,

how do I bridge the gap between T006/I_UnitOfMeasure and sap.ui.core.format.NumberFormat.getUnitInstance().format() which wants a CLDR name?

On this page there is "A typical use-case is to map from an ISO unit code to a CLDR key." Is such a ready-made mapping list for the standard t006 entries somewhere available?

Thanks!

former_member724720
Discoverer
0 Kudos

Hi Wolfgang,

Have you found ready T006 ISO-CLDR mapping list? We're having similar issue, there are too many ISOs in our app that it's an headache to do it manually one by one.


Regards,
Usevalad

WRoeckelein
Active Participant

Hi sevanup ,

unfortunatly not. Perhaps we should start a list somewhere?

Regards,

Wolfgang

WRoeckelein
Active Participant
0 Kudos

Hi Usevalad,

unfortunatly not so far.

Did you find something?

Regards,

Wolfgang

0 Kudos

Why has SAP developed such a feature in UI5 without any correspondance in SAP ERP? In SAP Backend we can only get the ISO Code of an unit of measure, but not the CLDR text. Where is the real benefit of CLDR integration in UI5 if SAPs own backend system do not deliver CLDR units? Very stange...

Accepted Solutions (0)

Answers (1)

Answers (1)

mathias_uhlmann
Advisor
Advisor

Hi Wolfgang,

the solution is that the ABAP backend provides its units of measure as well as its currencies as so called codelists to the UI5 client.

This mechanism exists since SAPUI5 1.63 for OData V4 and is described in detail in https://sapui5.hana.ondemand.com/#/topic/4d1b9d44941f483f9b7f579873d38685. In parallel the codelist provisioning by the ABAP backend had been implemented. Unfortunately, I cannot provide the version information for that.

The mechanism was recently (SAPUI5 1.90.1) also provided for OData V2 and is used by Smart Controls.

Please see also https://blogs.sap.com/2021/07/17/ui5ers-buzz-59-ui5-custom-currency-and-unit-of-measure-for-odata-v2....

Best regards
Mathias.

WRoeckelein
Active Participant
0 Kudos

Hi mathias.uhlmann ,

thanks for the info. This is indeed good news, as this should then be part of the next LTS release, to which we will switch as soon as it arrives in the FES...

Regards,

Wolfgang