Code: Alles auswählen.
Parameters p_mat TYPE matnr.
Parameters p_txt type MAKTX MODIF-ID anz.
Code: Alles auswählen.
AT SELECTION-SCREEN OUTPUT.
loop at screen.
if screen-group1 = 'ANZ'.
screen-input = '0'.
modify screen.
endif.
endloop.
Code: Alles auswählen.
AT SELECTION-SCREEN.
select single maktx from makt into p_txt where matnr = p_mat and spras = sy-langu.
if sy-subrc > 0.
p_txt = 'Material nicht vorhanden'.
endif.