Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Making a User Defined Function for Mapping in XI

Hi folks..

I knw how to make User defined Function in XI,

i was wondering about can we have any room for making a function for Initializing Purpose, which intializes few fields in source Message to some Global variables, and later we can use these Global Variables to set the the Target field

My Doubt is this...

i have Source & target Structure like this Structure like this....

SOURCE TEST DATA IS...

Parentsrc

child1src a

child2src b

child3src c

child4src hi

child4src hello

child4src hey

(On the basis of instances of child4src the istance of the Parentdst will be generated)

TARGET DATA SHUD BE LIKE THIS....

Parentdst

child1dst a

child2dst b

child3dst c

child4dst hi

Parentdst

child1dst a

child2dst b

child3dst c

child4dst hello

Parentdst

child1dst a

child2dst b

child3dst c

child4dst hey

Former Member
Former Member replied

Hi Jeet,

root root

Parentsrc <splitbyvalue><collapsecontext> Parentdst

child1src a <copy value> child1dst

child2src b <copy value> child2dst

child3src c <copy value> child3dst

child4src hi <splitbyvalue> child4dst

child4src hello parentdst

child4src hey root

parentsrc

root

This will work

Regards

vijaya

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question