Ansicht
Dokumentation
ABENIF_T100_MESSAGE_ABEXA - IF T100 MESSAGE ABEXA
BAL_S_LOG - Application Log: Log header data BAL_S_LOG - Application Log: Log header dataThis documentation is copyright by SAP AG.
- IF_T100_MESSAGE in a Regular Class
This example demonstrates how a regular class is linked with a message
Source Code
Description
Objects in the example class msg shown here can represent any messages from the table T100 and can be used in the statement MESSAGE. There are four attributes ATTR1 to ATTR4 for the content of four placeholders. The constructor provides input parameters for all necessary values. In the constructor, the message class and the message number are written directly to the associated components of the interface structure T100KEY. The identically named attributes are assigned to the components ATTR1 to ATTR4 and filled with the passed values.
After the class is instantiated, the message text is obtained using the interface method GET_TEXT, which is implemented appropriately in the class and for which an alias name is declared. The object of the class is used directly as an operand of the statement MESSAGE. A message type must be specified here.
Note
See also the executable example System Interface IF_T100_DYN_MSG in Regular Class.
ABAP Short Reference BAL Application Log Documentation
This documentation is copyright by SAP AG.
Length: 1803 Date: 20240419 Time: 152345 sap01-206 ( 34 ms )