Get Example source ABAP code based on a different SAP table
• GROUPING SELECT
ABAP_SQLAGG > - GROUPING>
ABAP_SYNTAX ... GROUPING( col> )>
What does it do? The result of the grouping function GROUPING> indicates whether a specific column is part of the aggregation>. After the grouping function GROUPING>, a column name in parentheses is expected as an argument. The return value of the grouping function GROUPING> has the data type INT1>>. The following return values of the grouping function are possible here: Value>Meaning> 0The column is not> part of the aggregation. 1The column is part of the aggregation. The columns that are part of the aggregation contain the null values as placeholders in the corresponding results. More specifically, the grouping function GROUPING> determines whether the column that contains a null value in the result was part of the aggregation or whether it was already the null value in the data source>.