cancel
Showing results for 
Search instead for 
Did you mean: 

How to read LookUpTaxonomy filed values from Main table records

Former Member
0 Kudos

I am trying to read the taxonomy field value in the following way right now i have all the main table records and from them when i am reading taxonomy field value it is displaying as "Lcom.sap.mdm.ids.AttributeId;@4314ca71" how to get the exact value from these main table records, and when i am printing the attributeID size is getting 0, Please help me on this ASAP.




ResultDefinition resultDefinition = new ResultDefinition(schema.getTable(tableName).getId());



resultDefinition.setLoadAttributes(true);




RetrieveLimitedRecordsCommand retrieveLimitedRecordsCommand = null;




resultDefinition.addSelectField(schema.getField(tableName,"MDM_ITEM_CODE").getId());



retrieveLimitedRecordsCommand = new RetrieveLimitedRecordsCommand(myConnectionAccessor);



String session = null;




session = getAuthenticatedUserSession();



retrieveLimitedRecordsCommand.setSession(session);



retrieveLimitedRecordsCommand.setResultDefinition(resultDefinition);




retrieveLimitedRecordsCommand.execute();




RecordResultSet recordResults = retrieveLimitedRecordsCommand.getRecords();









FieldId fid1 = schema.getField(tableName,"GLOBAL_COMMODITY_CODE").getId();




AttributeId[] attId = retrieveLimitedRecordsCommand.getRecords().getRecord(i).getAttributes(fid1);

Thanks,

Ram.

Accepted Solutions (0)

Answers (1)

Answers (1)

xinjiang_li
Active Participant
0 Kudos