Skip to Content
author's profile photo Former Member
Former Member

MDM Java API 2 - update of qualifier fields


since I updated to the latest Patch SP5 Patch 2 of the MDM Java API, I cannot update any qualifier field values.

This is what I do:

QualifiedLookupValue qlv = (QualifiedLookupValue) record.getFieldValue(FIELD_ID_CATALOG);

qlv.setQualifierFieldValue(index, someFieldId, new IntegerField(someInt));

record.setFieldValue(FIELD_ID_CATALOG, qlv);

The ModifyRecordCommand then shows up with an exception: " Das Feld kann nicht bearbeitet werden" (The field cannot be modified, ErrorCode: -5631993, RC_CM_FIELDNOTEDITABLE).

Before I made the update, the update worked as expected. Has there been a conceptual change of how this must be done? Or is this just a bug?

Please help! Thank you

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 14, 2007 at 01:28 PM

    Still the same after applying HotFix 4 from 11.09.2007 (v5.5.42.65)!

    Can someone please try this?


    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 14, 2007 at 07:12 PM

    Hello Roger,

    We had same issue, as a work around this is how we updated qualifier fields.

    QualifiedLookupValue qlv = (QualifiedLookupValue) record.getFieldValue(FIELD_ID_CATALOG);

    LinkedHashMap map = new LinkedHashMap();

    map.put(FIELD_ID_CATALOG, new IntegerValue(someInt));

    QualifiedLinkValue[] qualifiedLinkValues = qlv.getQualifiedLinks();

    QualifiedLinkValue qLink = qualifiedLinkValues[0];

    QualifiedLinkValue qNlink = new QualifiedLinkValue(qLink.getLookupId(), map);

    QualifiedLookupValue qualifiedLookupValue = new QualifiedLookupValue();

    qualifiedLookupValue.addValue(1, qNLink);


    Then use


    record.setFieldValue(FIELD_ID_CATALOG, qlv);


    Add a comment
    10|10000 characters needed characters exceeded

    • No it didn't create new qualifier link in my case, as I am passing the id of the old qualifier link it does update the existing link not add new one. That is good to hear from SAP that we don't have to go round about to update qualifiers table with SP06. There are so many bugs SAP says that will be fixed in SP06.


Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.