Code: Alles auswählen.
READ TABLE LT_subtab INTO LS_subtab INDEX 1.
lv_start_date = LS_subtab-DATUM.
sort LT_subtab by DATUM DESCENDING.
READ TABLE LT_subtab into LS_subtab index 1.
LV_END_DATE = LS_subtab-DATUM.
lv_count = lv_end_date - LV_START_DATE.
lv_woche = lv_count / 7.