Code: Alles auswählen.
IF wa_soha-zdlkz = space.
wa_soha-zahler = 1.
ELSE.
wa_soha-zahler = 0.
ENDIF.
wa_soha-erg = sum(wa_soha-zahler).
MESSAGE s206(inst_msg) WITH sum(wa_soha-erg).
* Ergebnis .................................. &
Code: Alles auswählen.
CLEAR wa_soha-erg.
LOOP ....
IF wa_soha-zdlkz = space.
ADD one TO wa_soha-erg.
*(oder wa_soha-erg = wa_soha-erg + 1.)
ENDIF.
...
ENDLOOP.
MESSAGE s206(inst_msg) WITH wa_soha-erg.
Code: Alles auswählen.
CONCATENATE 'Normale Übnerschrift' ' ( ' zaehlervariable
'Datensätze selektiert )' INTO l_title .
* BEI CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
* bei EXPORTING noch das mitgeben
i_grid_title = l_title