cancel
Showing results for 
Search instead for 
Did you mean: 

How to retrive data from MDM Tuple?

Former Member
0 Kudos

Hi,

How to retrive MDM Tuple data into a java Application? Here I have to fetch the data from MDM Tuple and populate it in a list. can anybody please help me in doing this.

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi Sree,

Retrieving the tuple data in MDM is same as retieving any other field. Just add the field code of the tuple in the result definition and excetue the retrieveLimitedRecodsCommand.

while extracting the record you can use following command, if you have a multituplevalue

MultiTupleValue multiTupleValue =

(MultiTupleValue) record.getFieldValue(tupleFieldId);

com.sap.mdm.valuetypes.MdmValue[] mdmValues =

multiTupleValue .getValues();

now loop on the mdmValues

TupleValue tupleValue = (TupleValue) mdmValues[index];

Now from these tuplevalues you can build your ArrayList.

Hope this helps.

Answers (1)

Answers (1)

former_member189669
Active Participant
0 Kudos

Hi Sree,

Any one of the below mentioned APIs can perform the record retrival from a Tuple.

- Record.getFieldValue(tupleFieldId)

If the tuple record is part of the original table record that can be obtained using one of the Retrieve commands responsible for retrieving records.

- TupleValue.getFieldValue(tupleFieldId)

If the tuple record is part of another tuple record (nested tuple structure)

Hope this helps.

Also a good read related to this - http://help.sap.com/saphelp_nwmdm71/helpdata/en/49/03144f3fad3697e10000000a42189b/content.htm

Regards,

Vinay M.S