cancel
Showing results for 
Search instead for 
Did you mean: 

UOM Conversion Best Practices

Former Member
0 Kudos

Hello All-

Could someone provide some best practices for converting between different units of measure in MDM?

We have an English repository with several numeric attributes defined in English units (inches, horsepower, etc). We want to add a second language which inherits these measurements, but converts them to Metric (cm, kW, etc).

From what I can see, neither the MDM clients (except Publisher) or the Java API support this dynamic conversion. So that leads me to believe that we have to programmatically convert the units as we access the data via the Java API.

Is there built-in functionality to handle this?

thanks

Tim

MDM 5.5 SP06 Patch 1

Accepted Solutions (0)

Answers (1)

Answers (1)

Mark63
Product and Topic Expert
Product and Topic Expert
0 Kudos

SAP NetWeaver MDM features a tool called UOM Manager. For details see [SAP Help|http://help.sap.com/saphelp_mdm550/helpdata/en/42/f310a18aa31a77e10000000a422035/frameset.htm].

Hope this helps,

Markus

Former Member
0 Kudos

I am somewhat familiar with the UOM manager, but I don't understand how that will help me convert units of measure when accessing the data via the API. The help file basically says you define custom units of measure and their conversion factors. How do I apply the conversion defined in UOM manger and view/retrieve the results?

Tim

Former Member
0 Kudos

Hello Tim,

By using MDM UOM Manager you can maintain system dimension and user defined dimension.

System dimension:

  • You can modify system unit.

  • You can add new user defined unit to system dimension.

User defined dimension:

  • You can add new user defined dimention.

  • You can add new user defined unit.

After unload and load the MDM repository, MDS builds new indexes to the added / modified UOM and the MDM API treats those changes as it treats to the system MDM dimension and units.

You can utilise the "new" MDM java API to convert values from one dimension unit to another:

Package: com.sap.mdm.util

Class: MeasurementUtils

Method: public static double convertMeasurementValue(DimensionId dimensionId,

UnitId unitIdFrom,

UnitId unitIdTo,

double value,

DimensionsManager dimensionManager)

Good luck, Nimrod.