We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!
... ${ tn $}
$| ${ tn(id) $}
$| ${ ID mid TYPE mtype NUMBER num $}
$| ${ oref $[TYPE mtype$] $} ...
1. ... tn ...
2. ... tn(id) ...
3. ... ID mid TYPE mtype NUMBER num ...
4. ... oref $[TYPE mtype$] ...
msg specifies a message from the database table T100 either by specifying id and n directly or by using the content of the data objects mid and num for the message class and the message number. Alternatively, an object reference variable oref is specified whose dynamic type implements the interface IF_T100_MESSAGE. One of the possible message types A, E, I, S, W, or X must be specified, either by specifying t directly or as content of the data object mtype. This controls the behavior of the message. An invalid type produces a syntax error or runtime error.
If the specified message is not found for the logon language of the current user, a search is made in the secondary language in AS ABAP and then in English. If it is still not found, the specified message type, message class, and message number are used as short text in uppercase letters and separated by a colon ":".
The system fields of the statement MESSAGE are always supplied with the specified values.
... tn ...
t and n are used to specify the single-character message type and the three-digit message number directly one after another (static short form). The message class must be specified with the addition MESSAGE-ID in the statement that introduces the program.
Display of the short text of the message with the number 014 from the message class SABAPDOCU as an
information message.
... tn(id) ...
The same applies to t and n as to the static short form. In the static long form, the message class is specified directly in parentheses using id.
Specifying the message class explicitly overrides the addition MESSAGE-ID of the statement that introduces the program. Specifying the message class in parentheses does not mean here that the content of id is used. Instead, the message class is used that has the name that was specified directly with id.
As in the example for alternative 1, with the message class specified explicitly.
... ID mid TYPE mtype NUMBER num ...
The message class, the message type, and the message number are specified as content of the data objects mid, mtype, and num (dynamic form). mid and mtype expect character-like data objects that must contain the message class or the message type in uppercase letters. Invalid message types raise an uncatchable exception. num expects a data object of the type n and length 3.
Specifying the message class explicitly overrides the addition MESSAGE-ID of the statement that introduces the program.
As in the example for alternative 2, with the message and the message type specified dynamically.
... oref $[TYPE mtype$] ...
For oref, an object reference variable can be specified which, when the statement MESSAGE is executed, points to an object whose class implements the system interface IF_T100_MESSAGE. This in turn contains the component interface IF_MESSAGE. oref is a functional operand position. If oref is specified, the addition WITH and the variant with INTO are not allowed.
The statement MESSAGE evaluates the components of the structured attribute T100KEY of the interface IF_T100_MESSAGE in the referenced object:
The message type is either specified explicitly or determined implicitly.
Sending of a messages using an object of the class cls created using the instance operator NEW that implements the system interface
IF_T100_DYN_MSG. The message is specified completely by interface attributes of the object.
Leave us your contact details and we will call you back. Fields marked with * are mandatory.
We offer holistic SAP solutions from a single source to shape digital change and develop new business areas.
Switzerland
Schaffhausen
Germany
Mannheim, Düsseldorf, Munich
USA
Haverhill
Greece
Thessaloniki