Skip to Content
avatar image
Former Member

XI 7.0 Message mapping - Get Value from other node

Hello experts,

my problem is as shown below.

- Source message has n items.

- Each item contains an item number (MATERIAL) Language (LANGU) and description (MATL_DESC)


- There should be a fallback language "English".

- MATL_DESC contains NO vlaue and language is DE, then value of MATL_DESC with the same material number and language EN should be selected.

- see below picture: for the empty field MATL_DESC the value of the "English" material (same MATERIAL) is to be used.

Who has an idea to solve this with graphic mapping?

Thank you in advance.

Best regards

pastedImage_1.png (19.6 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Jun 10, 2015 at 02:45 PM

    Hi Fabian,

    I would prefer writing a udf for this requirement, as it becomes complicate or not possible using normal graphical functions.

    I have written the udf for this requirement, please find below the code, check this and let me know if you struck anywhere.

    String desc="";

    for(int i=0;i<Matdes.length;i++)


           desc = Matdes[i];

           if(((Matdes[i]=="NULL") || (Matdes[i]=="")) &&  (Lang[i]=="DE"))


                 for(int j=0;j<Matnum.length;j++)

                          if((Matnum[i]==Matnum[j]) && (Lang[j]=="EN"))

                               desc = Matdes[j];






    Desc.PNG (7.6 kB)
    Add comment
    10|10000 characters needed characters exceeded

    • Hi all,

      From my point of view it is better to try with graphical mapping, you should consider that the XSLT solution needs to call a XSLT processor from the JVM, and if you don't use a bad code in the UDF you are following a usual resolution without extra-classes load, GM solution should have a better performance.