Skip to Content

Mapping an element from only the first source child node to target header element

Hi,

I need some direction on how to properly implement this mapping.

I have a mapping source with header node and several children nodes and a target with a similar layout. I need to populate an element in the target header with the a value from an element in only the first source child.

In this case each line item in the source may be populated with a different business unit and I need to map the business unit from only the first line item from the source to the business unit in the target header.

regards

Julian

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jun 01, 2012 at 05:32 AM

    Hi Julian,

    you try this mapping

    source element ---->removecontext (set context to point to source xml header node)--->copyvalue[0]------>target element

    Regards

    Anupam

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 01, 2012 at 01:16 AM

    Copy value standard function works in your case, try below mapping .

    input--copyvalue(0)------------->

    child note segment---->useoneAsMany---->Splitbyvalue(eachvalue)------>Traget field

    child note segment----->

    If you have any difficulties paste your source structure.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.