cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to bring T006 and SAPUI5 NumberFormat.getUnitInstance together?

WRoeckelein
Active Participant
721

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!

Accepted Solutions (0)

Answers (1)

Answers (1)

Mathias_Uhlmann
Product and Topic Expert
Product and Topic Expert

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