Code: Alles auswählen.
DATA: lv_beleg TYPE DOC_NUMBER,
lv_position TYPE /BI0/OIS_ORD_ITEM,
lv_calmonth TYPE /BI0/OICALMONTH,
wa_result_package TYPE _ty_s_TG_1.
SORT RESULT_PACKAGE BY CALMONTH DOC_NUMBER S_ORD_ITEM ASCENDING.
Code: Alles auswählen.
"sortieren
SORT RESULT_PACKAGE BY CALMONTH DOC_NUMBER S_ORD_ITEM ASCENDING.
" NUR sinnvoll, wenn Tabelle sortiert, ggf. weitere Schlüssel beim comparing zusatz ergänzen
delete adjacent duplicates from result_package comparing doc_number s_ord_item.