cancel
Showing results for 
Search instead for 
Did you mean: 

Child to Parent Node Creation, Mapping Help required

Former Member
0 Kudos

Hi Guys,

I need some suggestions on the following mapping problem, kindly suggest some solution if possible:

I have a sender structure as:

ParentNode

..........RecordSet (0 to 1)

................ SValue1 (0 to 1)

................ SValue2 (0 to 1)

.................SValue3 (0 to 1)

For the receiver Structure I have following:

ParentNode

..........RSet (0 to unbounded)

............. RValue (0 to 1)

..............RField (0 to 1)

Now my mapping conditions requires for every SValue1, SValue2, SValue3 source fields, I should generate at receiver side a new RSet and the value of SValue1/SValue2/SValue3 field(s) should be Provided into RValue, and RField should have the respective field name.

I am trying this with PI Graphical mapping, is there any better solution for it?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

No Follow up Required

PriyankaAnagani
Active Contributor
0 Kudos

Hi,

What is the occurrence of parent node in your source ???...If it is 0...1, the max you'll get 3 Rset in your target. Am I right....If so this can be achieved with UDF....Please post your sample source and target data so that I can provide you the mapping.

Regards,

Priyanka

Former Member
0 Kudos

Thank you for your solutions, I have solved this problem using UDFs.

Regards,

Nipun.

Former Member
0 Kudos

Hi,

As source structure occurence is 0..1 in this case duplicate the target structure and use create if function with source as SValue1 ...so that for each of Svalues...a corresponding target node will get generated...

With graphical mapping you should be able to do this...else need to go for UDF...

HTH

Rajesh