cancel
Showing results for 
Search instead for 
Did you mean: 

Reg: Inserting real and measurement type fields

Former Member
0 Kudos

Hi,

I am using MDM java API to insert record into MDM repository. I want to insert fields of type real and measurement.

What types i can use in webdynpro to insert values into these fields.

Kindly suggest.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

For below constructor how will i get the Unit ID.

MeasurementValue(double value, UnitId unitId)

Thanks,

Prasanthi.

Former Member
0 Kudos

Hi Prasanthi,

The available Unit Id's in the repository can be retrieved by using DimensionsManger.getUnitIds(dimensionId).

Hope it helps.

Regards,

Neeharika

Former Member
0 Kudos

Hi,

for inserting field of type real, i used the following. But, I am not able to insert.

newRec.setFieldValue(fields[1], new DoubleValue(value1));

value1 is of type double.

Kindly suggest.

Former Member
0 Kudos

Hi Prasanthi,

For Measurement Value, check the below constructor

MeasurementValue(double value, UnitId unitId)

UnitId can be of type integer or String. This defines the unit of measurement.

For type real, use the context type as double.

For more information, refer javadocs

http://help.sap.com/javadocs/MDM/SP06P2/index.html

Regards,

Jitesh Talreja