REPORT zsch_011_fuba.
DATA: gd_result TYPE string.
START-OF-SELECTION.
CALL FUNCTION 'ICON_CREATE'
EXPORTING
name = 'Schrdinger'
IMPORTING
RESULT = gd_result
EXCEPTIONS 
icon_not_found = 1 
outputfield_too_short = 2 
OTHERS = 3.
IF sy-subrc = 0.
WRITE: / 'Yippieh, alles ok'.
ELSEIF sy-subrc = 1.
WRITE: / 'Leider Icon nicht gefunden'.
ELSEIF sy-subrc = 2.
WRITE: / 'Leider war ich bei der Definition der',
'Ergebnisvariable nicht vorsichtig genug'.
ELSE.
WRITE: / 'Was da wohl passiert ist? ',
'Auf alle Flle eine Ausnahme'.
ENDIF.