TYPES:
BEGIN OF ty_calday,
calday TYPE /bi0/oicalday,
END OF ty_calday.
DATA:
lt_calday TYPE SORTED TABLE OF ty_calday
WITH NON-UNIQUE DEFAULT KEY.
lt_calday = VALUE #(
FOR GROUPS <gr1> OF <line> IN result_package
GROUP BY (
calday = <line>-calday
) ASCENDING (
CONV #( <gr1>-calday )
)
).
BEGIN OF ty_calday,
calday TYPE /bi0/oicalday,
END OF ty_calday.
DATA:
lt_calday TYPE SORTED TABLE OF ty_calday
WITH NON-UNIQUE DEFAULT KEY.
lt_calday = VALUE #(
FOR GROUPS <gr1> OF <line> IN result_package
GROUP BY (
calday = <line>-calday
) ASCENDING (
CONV #( <gr1>-calday )
)
).
Спасибо за пример.
ОтветитьУдалитьВот ещё один пример с разбором группировки, может пригодится кому то https://youcoder.ru/group_by.html