on 10-24-2008 4:42 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.