Beruflich Dokumente
Kultur Dokumente
type-pools : TPIT.
DATA : W_BSEG
TYPE BSEG,
W_message TYPE T100-TEXT.
data :
&
Form generate_message
&---FORM generate_message .
CLEAR W_message.
read table it_errtab index 1.
if sy-subrc <> 0.
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
id
= it_errtab-ERR-MSGID
lang
= sy-langu
no
= it_errtab-ERR-MSGNR
v1
= it_errtab-ERR-MSGV1
v2
= it_errtab-ERR-MSGV2
v3
= it_errtab-ERR-MSGV3
v4
= it_errtab-ERR-MSGV4
IMPORTING
msg
= W_message
EXCEPTIONS
not_found = 1
OTHERS
= 2.
endif.
ENDFORM.
" generate_message