cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

mapping - repeat segment

Former Member
0 Likes
1,411

IDOC

+segment1 (0....unbound)

++field1

++field2

+node2 (0...unbound)

++keyfield1

++keyfield2

segment 1 can appear more than one time.

Based on the node2, the target structure gets repeated. For every repeatetion the segment1 occurrences should repeat. Both Segment1, node2 are at the same level under one single segment in IDOC.

Eg: If segment1 repeats 4 times, and node2 repeats, each repetitions of node2 should have 4 repetitions of the segments1 occurrences in node 2 repetition.

Tried with multiple options. help

Venkat.

View Entire Topic
VijayKonam
Active Contributor
0 Likes

A simple UDF at the context level should do the work here. Pass both Node2 and segment 1 to it. For each node2, add the length for segment one number of elements on the target. 

VJ