SAP Function WRITE_MESSAGE - Writes a message from table T100 into a message field

Parameter Reference Type Length Default Optional Text
MSGID SYST-MSGID C 20 Message ID
MSGNO SYST-MSGNO N 3 Message number
MSGTY SYST-MSGTY C 1 Message type
MSGV1 0 SPACE X Message variable 1
MSGV2 0 SPACE X Message variable 2
MSGV3 0 SPACE X Message variable 3
MSGV4 0 SPACE X Message variable 4
MSGV5 0 SPACE X Message variable 5

Parameter Reference Type Length Text
ERROR 0 Indicator for error message
MESSG MESSAGE u 225 Message
MSGLN 0 Length of message