Entering content frameMessages in Function Modules and Methods Locate the document in its SAP Library structure

Messages have two different functions in function modules and methods:

Normal Messages

If you use messages in function modules and methods without the RAISING addition in the MESSAGE statement, and the caller does not catch the message, the message is handled normally according to the context in which it is called within the function module or method.

Triggering Exceptions with Messages

If you use messages in function modules and methods with the addition

... RAISING <exc>

the way in which the message is handled depends on whether the calling program handles the exception <exc> or not.

Catching Message in the Calling Program

You can catch messages from function modules that are not sent using the RAISING addition in the MESSAGE statement by including the implicit exception ERROR_MESSAGE in the EXCEPTIONS list of the CALL FUNCTION statement. The following conditions apply:

Catching messages is not currently supported for methods.

 

 

Leaving content frame