SY-UCOMM enthält den aktuellen Funktionscode. In der Regel ist der in Upper Case.
Code: Alles auswählen.
at selection-screen output.
if p_zahl = 'X'.
so_hkont[] = hkont_z[].
elseif p_boni = 'X'.
so_hkont[] = hkont_b[].
elseif p_gesamt = 'X'.
so_hkont[] = hkont_g[].
endif.
at selection-screen.
if sy-ucomm = 'CHG' or sy-ucomm = 'ONLI'.
if p_boni = 'X'.
hkont_b[] = so_hkont[].
elseif p_zahl = 'X'.
hkont_z[] = so_hkont[].
elseif p_gesamt = 'X'.
hkont_g[] = so_hkont[].
endif.
endif.
form set_fuell.
hvorg_z[] = value #( ( sign = 'I' option = 'EQ' low = '0008' high = '' ) ).
hkont_b[] = value #( ( sign = 'I' option = 'EQ' low = '0104124320' high = '' ) ).
hkont_g[] = value #( sign = 'I' option = 'EQ' ( low = '0290' high = '' )
( low = '0530' high = '' )
( low = '5200' high = '' )
( low = '5220' high = '' )
( low = '5230' high = '' ) ).
endform