Quantcast
Channel: SCN: Message List - SAP NetWeaver Master Data Management
Viewing all articles
Browse latest Browse all 1582

Lookup Table field value from Main Table record using MDM java api

$
0
0

Hello All,

 

i am retriving data from main table and and i have to retrive some lookup table value from main table record.

 

i am using following code but i am getting record id for the lookup table.

 

String value = null;

value = maintableRec.getFieldValue(fieldId).toString(); // Return R4 i.e record id.

 

I have read many thread and most of the thread suggest use getLookupDisplayValue()   i.e. value = maintableRec.getLookupDisplayValue(fieldId);

 

i tried it and it is giving me correct Value instead of record id.But most of thread many users failed to get correct value they are getting null value or Record id only.

 

So i just want to confirm that when we want to get field value of lookup table from main table record , so what is the correct method getFieldValue(fieldId) or getLookupDisplayValue(fieldId)?

 

I dont want write code in such impression that i am getting value from getLookupDisplayValue(fieldId); so this method is correct.

 

Please confirm.

 

Regards,

 

Aditi

 


Viewing all articles
Browse latest Browse all 1582

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>