This commit is contained in:
danrega
2023-08-25 15:16:35 +02:00
parent 8f8a3a6a10
commit ebbd9675a2
18 changed files with 1241 additions and 163 deletions

View File

@@ -64,6 +64,8 @@ The member loop is executed using the group represented by `wa`
and its members are assigned to `member` and are available in
the member loop.
<p align="right">(<a href="#top">⬆️ back to top</a>)</p>
## Grouping by More than One Column
To group by more than just one criterion, a structured group key is
@@ -83,6 +85,8 @@ This is also a representative binding in which the work area
To access the members of the groups, the exact same member loop can be
inserted as when grouping by one column.
<p align="right">(<a href="#top">⬆️ back to top</a>)</p>
## Group Key Binding when Grouping by One Column
By explicitly specifying an [output
@@ -129,6 +133,8 @@ LOOP AT spfli_tab INTO wa 
ENDLOOP.
```
<p align="right">(<a href="#top">⬆️ back to top</a>)</p>
## Group Key Binding when Grouping by More than One Column
Finally, the group key binding for structured group keys:
@@ -165,6 +171,8 @@ INDEX`](https://help.sap.com/doc/abapdocu_cp_index_htm/CLOUD/en-US/index.htm?fil
[`GROUP
SIZE`](https://help.sap.com/doc/abapdocu_cp_index_htm/CLOUD/en-US/index.htm?file=abaploop_at_itab_group_by_key.htm).
<p align="right">(<a href="#top">⬆️ back to top</a>)</p>
## Executable Example
[zcl_demo_abap_sql_group_by](./src/zcl_demo_abap_sql_group_by.clas.abap)