SAP MESSAGE INTERFACE ABEXA

Get Example source ABAP code based on a different SAP table
  

Warning: Undefined variable $prev in /customers/b/9/9/trailsap.com/httpd.www/sap-help/index.php on line 54
ARTICLE

Sending a Message Using an Interface Reference Variable
This example demonstrates how to send a message using an interface reference variable.

ABAP_SOURCE_CODE
ABAP_EXEC

ABAP_DESCRIPTION
The operand msg of the statement MESSAGE is passed a functional method meth whose return code is a reference variable of the type IF_T100_MESSAGE. The method fills this reference variable with a reference to an exception object of a local exception class.
The local exception class lcx_exception implements the interface IF_T100_MESSAGE. It fills the attribute T100KEY of this interface with values that take a certain message from the table T100 and that replace the placeholder '<(> <)>' in the message with the content of the attribute text. The attribute text is filled when the exception is raised.