CL_AGGREGATION_POC - Domain Model: Table Aggregation

TXBHW - Original Tax Base Amount in Local Currency   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Functionality

An aggregation is a function performed on the column of a table. The aggregations SUM (sum of all elements) and COUNT (number of lines) are implemented.

Aggregation functions are instanced dynamically and must have a name in the form CL__AGGREGATION_POC.The name <AGGREGATE> can then be used in the control recipe. If a name is used for which there is no class, the system executes a dump as a result of a non-catchable system exception.

The method AGGREGATE must be defined at a higher level in class CL__AGGREGATION_POC. The method contains a string table as a parameter and supplies a string for export.

Aggregations are operations performed on a table column. It can take any form. Any aggregations can be added by the customer.

Procedure for creating an aggregation:

1. Create class with CL__AGGREGATION_POC ( can then be used as the suffix for variables, cf. SUM, COUNT)

2. Derive from CL_AGGREGATION_POC

3. Transfer method AGGREGATE

4. Transfer COPY_CREATE

5. Transfer method IS_INDEPENDENT if the result of aggregation does not match the format of the delivered values. The system then choses type INT4. Cf. COUNT

Relationships

Example

Notes

Further information



CL_GUI_FRONTEND_SERVICES - Frontend Services   BAL Application Log Documentation  
This documentation is copyright by SAP AG.


Length: 1393 Date: 20120526 Time: 084006     triton ( 56 ms )