Skip to Content
0

message mapping query

Jun 23, 2017 at 12:46 PM

54

avatar image

Input Field is A,B

Output is orders idoc

If Input field A value is 1,2,3 then 3 idoc are created in mapping and every idoc will have their own E1EDP01 segments.

If input field A value is same like 1,1,1 then 1 idoc need to be created with 3 E1EDP01 segments.

If input field A value is same like 1,2,1 then 2 idocs need to be created - 1 idoc with 1st and 3rd (1,1)'s E1EDP01 segment and another with 2nd value 2's idoc with 1 E1EDP01 segment.

So, idoc need to created on field A's value which can come N number of time in the input. If value of A is same X no of times, then 1 doc with X E1EDP01 segment will be created. If value of differs then different idocs with different E1EDP01 segment need to be created.

How this can be achieved in message mapping.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Evgeniy Kolmakov Jun 23, 2017 at 01:05 PM
3

Hi Vijay!

Regards, Evgeniy.


Show 2 Share
10 |10000 characters needed characters left characters exceeded

My source structure is different

MT_Test01 -> Field1 -> 1
MT_Test01 -> Field1 -> 2
MT_Test01 -> Field1 -> 1
MT_Test01 -> Field1 -> 3
MT_Test01 -> Field1 -> 3

Field1 is under MT_Test01 but it will have different context. Can you please provide solution on this structure.

0

Simply add RemoveContexts function after Field1 to move all of your elements to one context.

Or provide the example of your source XML.

Regards, Evgeniy.

0