Code: Alles auswählen.
if p_objver = 'A'.
if lw_itab-cubetype = 'a'
add 1 to anzahl_a.
elseif lw_itab-cubetype = 'b'
add 1 to anzahl_b.
* und so weida...
endif.
Code: Alles auswählen.
case p_objver.
when 'A'.
if lw_itab-cubetype = 'a'.
add 1 to anzahl_a.
endif.
if lw_itab-cubetype = 'b'.
add 12 to anzahl_b.
endif.
* .... usw.
when others.
*Anweisung
endcase.