on 03-20-2009 4:46 AM
Hi,
I am trying to save records in Multi value look up table. The problem is that only the last record is getting saved.
Can anyone please help?
Regards,
Sruti
Hi Deepti,
Qualified Lookups are always Multivalued and no specific property has to be enabled atleast within MDM to make it Multivalued.
By selecting The Qualified Lookup table Multivalued,It should allow you to save Multiple NQ values for a given record.
You can have a look at the below link to know about the Java methods provided to work with MDM:
http://help.sap.com/javadocs/MDM/SP05/(Java api programs)
https://help.sap.com/javadocs/MDM/current/index.html (java api codes)
Hope It Helped
Thanks & Regards
Simona Pinto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you made the field value of multi-valued = yes?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Deepti,
Please find the sample code for updating the multiple value lookup field through Java API.
MdmValue multiValue = new MultiValue();// Represents the Multivalued lookup field
MdmValue lookupValue = new NullValue();// Represents each lookupvalue in multivalued lookup field
{
lookupValue = new LookupValue(recid);// recid --> Recordid of the lookup value
((MultiValue)multiValue).addValue(lookupValue);
}
Loop the code in braces to add each lookup value to the multivalued field.
Now pass the the multivalued field (multiValue) to the create / update Record command.
Hope it helps.
Regards,
Neeharika
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.