Skip to Content
avatar image
Former Member

Child to Parent Node Creation, Mapping Help required

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?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Oct 20, 2011 at 11:07 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 20, 2011 at 11:08 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 16, 2011 at 12:51 PM

    No Follow up Required

    Add comment
    10|10000 characters needed characters exceeded