cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping in XI

0 Kudos

Hello,

I have a special mapping situation in XI.The problem is that I have 2 instances of the same node and I have target node.What I need is to get the value of the second instance of the source in the target node.I am not able to achieve this using simple mapping techniques.

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Hello Prakash,

Thanks for the suggestion.I was also thinking on the same lines.But the problem is that I am not very much comfortable with UDF in XI.Most of the times it does not work for me.Do you have any useful links to understand how to code an UDF within XI.

Sandeep

bhavesh_kantilal
Active Contributor
0 Kudos

Sandeep,

You can avoid an Advanced UDF.

Use GLOBAL variables of Java Section.

Write an UDF , that will set the status of a Global FLAG the first time it is executed and then map the correct value the next time.

This blog on Java Section ,

/people/sap.user72/blog/2005/10/01/xi-new-features-in-sp14

Regards,

Bhavesh

former_member206604
Active Contributor
0 Kudos

Hi,

Write a UDF to which you pass the entire queue of the source field with context from the root node. Inside the UDF get the second value and add to the ResultList.

Hope this helps.

Thanks,

Prakash

Former Member