on 09-30-2009 10:27 AM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.