Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  User Dialogs →  Messages 

System Interface IF_T100_MESSAGE for Messages

The interface IF_T100_MESSAGE associates classes with messages. To do this, IF_T100_MESSAGE contains a structured attribute T100KEY of the type SCX_T100KEY, which specifies a message in the table T100. In the variant MESSAGE oref of the statement MESSAGE, an interface reference variable of the type IF_T100_MESSAGE or a class reference variable of a class that implements this interface can be specified to display the message in question. To do this, the statement MESSAGE evaluates the content of the structure T100KEY.

To replace placeholders "&1" to "&4" and "&" in the short text or "&V1&" to "&V4&" of the long text of the message with content, their components ATTR1 to ATTR4 reference attributes of the class whose content is used, rather than using the content of structure components in T100KEY directly.

The interface IF_T100_MESSAGE includes the interface IF_MESSAGE (which should not be used as a standalone interface). This interface contains the methods GET_TEXT and GET_LONGTEXT, which must be implemented by a class with the interface IF_T100_MESSAGE in such a way that they return the short text and long text of the current message. This can be done using the corresponding methods of the class CL_MESSAGE_HELPER.

Other versions: 7.31 | 7.40 | 7.54


Notes

  • The interface IF_T100_MESSAGE is mainly designed for use with exception texts in exception classes. If the interface is included in regular classes and in local exception classes, the filling of the interface structure T100KEY must be programmed here separately. The implementation of the interface methods GET_TEXT and GET_LONGTEXT, however, is already contained in the superclass CX_ROOT and alias names are declared for these methods here. When creating global exception classes, tool support is provided for filling the structure T100KEY and for mapping attributes to placeholders. This is done using structured constants that can be specified when an exception is raised.

  • The interface IF_T100_MESSAGE does not have any attributes for the message type.

Examples

See

Continue

System Interface IF_T100_MESSAGE in a Regular Class - Example

System Interface IF_T100_MESSAGE in a Local Exception Class - Example

System Interface IF_T100_MESSAGE in a Global Exception Class - Example