Ansicht
Dokumentation

ABENFOR_GROUP_BY_METHOD_ABEXA - FOR GROUP BY METHOD ABEXA

ABENFOR_GROUP_BY_METHOD_ABEXA - FOR GROUP BY METHOD ABEXA

RFUMSV00 - Advance Return for Tax on Sales/Purchases   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.
SAP E-Book

- Grouping with FOR Using a Method

This example demonstrates the construction of the group key using the assignment of return values.

Source Code

Execute

Description

This example works in the same way as the corresponding executable example for LOOP AT ... GROUP BY, but uses the expression FOR GROUPS ... OF for a table reduction with REDUCE instead of the group loop. In both cases, the group key after GROUP BY is constructed in exactly the same way.

The result of the table reduction is a reference to an object of the class CL_DEMO_OUTPUT to which the results of the grouping are written. The group members are written to a local auxiliary table members using a table comprehension with VALUE. This table comprehension could also be used in the executable example for LOOP AT ... GROUP BY instead of the member loop. loop.






ROGBILLS - Synchronize billing plans   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 2086 Date: 20240420 Time: 020811     sap01-206 ( 23 ms )