Skip to Content

Since MDM SP6 Patch1 was recently released for all customers, i thought it would be a good idea to point you to some resources that describe the new features that were introduced in the MDM Java API. 

The first one is a Know How Network Call (KHNC) that was given back in December.  The presentation and the recording can be found here.

The second one is the Data Unification How-to Guides for SAP NetWeaver  7.0 how to guide.  It contains code samples to perform all kinds of tasks in MDM e.g. search, insert, update, delete, check-out/check-in, etc… and it uses some of the new features that were introduced in SP06 Patch1 so you’ll be able to run these code samples and see for yourself how it works!

To report this post you need to login first.

17 Comments

You must be Logged on to comment or reply to a post.

    1. Hi Dagfinn,

      Unfortunately this is still not supported directly.  You can however create an External Library DC and use it this way.

      Regards,
      Richard

      (0) 
    1. Richard LeBlanc
      Yes this is possible.  Please have a look at the CRUDMainTableRecordWithQualifiedLookupFieldProgram class.  In it, i modify the values for two qualifier fields.

      Richard

      (0) 
      1. Alan Leal
        Is it possible to modify a Qualified Field when it has a Calculated Field?

        We are getting a Server Error.

        With any other case where there is a Qualified Field without a calculated field, it works fine.

        Thanks.

        (0) 
        1. Richard LeBlanc
          Hi Alan,

          The whole purpose of a calculated field is to get it’s value from a formula (expression) so it’s impossible to set it’s value directly.  This is true for calculated fields in any table.

          Best Regards,
          Richard

          (0) 
          1. Alan Leal
            Hi Richard,

            Thanks for your reply.

            The thing is we are trying to modify any other value from that Qualified Lookup, NOT the calculated value.

            When we remove that calculated value from the table and then run the same code for modifying any other value, works perfectly.

            Any idea what could be happen?
            The exception we are getting is:

            CommandException: Server error (0xffaa1006)

            (0) 
            1. Richard LeBlanc
              Is the calculated field a qualifier or non-qualifier field?  Also, if you’re modifying a record then you retrieved prior to the modification.  When you retrieve it, are you retrieving the calculated field?
              (0) 
              1. Alan Leal

                The calculated field is a qualifier field.<br/><br/>And yes, when I retrieve the record I am removing all the non-editable fields with this method:<br/><br/>     public static FieldId[] getFieldsIdByTable(String table, RepositorySchema repositorySchema){<br/>          <br/>          FieldProperties fProperties[] = repositorySchema.getFields(table);<br/>          <br/>          FieldProperties _fp = null;<br/>          List lista = new ArrayList();<br/><br/>          for(int i=0;i<fProperties.length;i++){<br/>               fp = fProperties[i];<br/>               if(fp.isEditable()){<br/>                    lista.add(_fp.getId());<br/>               }<br/>          }<br/>          FieldId[] fIds = (FieldId[]) lista.toArray(new FieldId[lista.size()]);<br/>          return fIds;     <br/>     }<br/><br/><br/>

                (0) 
                1. Richard LeBlanc
                  The error you mention (0xffaa1006) is due to an unsupported field type so maybe the qualifier field is returned despite the code you put in for non-editable fields.  Can you call Record.contains(field id of qualifier) to see if it’s in there?

                  Richard

                  (0) 
                  1. Alan Leal
                    Hi Richard,

                    I just made a test with Record.contains(field id of qualifier(non-editable)) that you mention, and it is returning false. 🙁

                    Any ideas what else can it be?

                    Thanks,
                    Alan

                    (0) 
  1. Elisabeth Reinprecht
    Hi Richard,

    your blog is really very helpful, but I have got problems with the images I saved via the API. When we try to create a thumbnail with the data manager it shows no errors, but it also does NOT create any thumbnail. As descirbed in the note 1235244 it should work somehow. Could you give me a hint, what I might have done wrong?

    Kind regards,
    Lissi

    (0) 
  2. Bishnu Priya Sahoo
    Hi Richard,

    I am facing problem while updating a qualifier value for a given non-qualifier. Like I want to update an ID (qualifier) for a given country ( non-qualifier) from a1 to a2.

    Can you help me is this regard?

    I need to get the index for the given non- qualfier so that I can update the qualifier.

    I was going through your Code,but there your are hardcoding the index,how can I get the index value using api and then update the qualifier field

    Cheers
    Priya

    (0) 

Leave a Reply