cancel
Showing results for 
Search instead for 
Did you mean: 

Insert data on node message mapping

brian_briones
Participant
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

former_member184720
Active Contributor
0 Kudos

Hi Brain - This is the best possible option and this way you are not chaging the IDOC structure too..

Answers (2)

Answers (2)

Harish
Active Contributor
0 Kudos

Hi Brian,

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

regards,

Harish

rhviana
Active Contributor
0 Kudos

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-m...

The best link:

Explain node functions - Process Integration - SCN Wiki

Regards,

BR.

Ricardo Viana.