Skip to Content
author's profile photo Former Member
Former Member

Insert data on node message mapping

Hi friends,

I have the next problem.

my source structure is :

<DATA1>0..1

<DATA2>0..1

<DATA3>0..1

<DATA4>0..1

and my target structure is:

<DATAS>0..unbounded

I must generate the target structure 4 times in this case.

<DATAS>

<DATA1>

</DATAS>

<DATAS>

<DATA2>

</DATAS>

<DATAS>

<DATA3>

</DATAS>

<DATAS>

<DATA4>

</DATAS>

I did this with a UDF with condition FOR(..i<4...) and no problem,

but I need pass de DATA1 in the first structure generated, the DATA2 in the second...and so on.

note: always are 4 node, the target is IDOC and cant modify.

regards.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Jan 03, 2014 at 04:04 PM

    Hello,

    Use duplicate subtree and map each source field with target element.

    Edited - Hope i understood ur issue correctly, in case u want something else then paste ur mapping screenshot.

    Thanks

    Amit Srivastava

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 03, 2014 at 04:06 PM

    Brian,

    I recommend you to use or Split-By-Value node function for Graphical Mapping or java mapping.

    Check this out:

    http://www.saptechnical.com/Tutorials/XI/NodeFunctions/Page7.htm

    http://scn.sap.com/people/claus.wallacher/blog/2006/04/17/replication-of-nodes-using-the-graphical-mapping-tool

    The best link:

    Explain node functions - Process Integration - SCN Wiki

    Regards,

    BR.

    Ricardo Viana.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 03, 2014 at 04:40 PM

    Hi Brian,

    try the option given by Amit and select the option return as XML in source field (in graphical map).

    regards,

    Harish

    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.