Skip to Content
0
Former Member
Feb 15, 2011 at 09:52 AM

Using SORT function in mapping

556 Views

Hi,

I am having trouble getting my head around using the SORT function.

My interface is IDOC to File, The IDOC has a repeating segment (PAYLOAD) that can be of 3 types, either type A, B or C (this is set using a "TYPE" field).

In my file structure I have a repeating "ROW" element which has all of the fields for each row.

I want to group all the Type A data together, the Type B together and the Type C.

I have tried the following mapping on the "ROW" element but it doesn't seem to work:

"TYPE"-- "sort" Split By Value (Value Change) -- collapseContext --"ROW"

for each of the mappings under ROW I just have fields copied directly.

I think I am doing something wrong.

Thanks.