How to retrieve Tuple Lookup values using MDM Java API

How to retrieve Tuple Lookup values using MDM Java API   
 
Instructions for using the Java API with tuples can be found here - link.
The way to retrieve the lookup fields within a tuple is same as other fields inside the tuple. The only difference being other fields return the value direclty when you try to access the field inside tuple. Where as if it is a lookup field then it will retun you the record Id of the value. From this record Id you need to iterate over the lookup table itself to find out what is the actual value.
you need to add the lookup fields in the result definition of the command than only it comes in tuple value. My investigation is If the lookup field is not a main table field, you don't get the value for that lookup in tuple too.
just check it out.
 

SAP Developer Network Latest Updates