Group Result by Columns
Use the GROUP BY tab to specify a list of columns for which you want to combine output.
The Aggregation and ABAP Aggregation transforms require that you specify columns to use to group the result set. All columns must either be included in a Group By or must be aggregated. To aggregate, add new columns to output with appropriate type and other info, then type in the mapping and choose an aggregate function.
To create a Group By statement:
When source columns are used, they must descend from the source schema in the current iteration rule. In addition, the path from the source schema to the column must contain no repeatable nodes.
When target columns are used, they must descend from the selected target schema. In addition, the path from the selected target schema to the column must contain no repeatable nodes.
If you specify a grouping list, then all columns in the selected output schema must be either in the grouping list or mapped to an aggregate function such as avg, count, max, min, or sum.