Exception Handling in Function Modules [with message class]


Step1. So here we have the message class with two message texts 000 and 001.

Step2. FM importing parameters.

Step3. FM exporting parameters.

Step4. FM exceptions.

Step5. Fm source code, When as exception is aligned with a message class text, it should be  raised in the RAISING clause not RAISE.

Step6. Here we have the program and the FM mapping when an exception is raised with  a message class .

Step7. Execute the program and here in the debugger we have the certain values of the sy-subrc and message details.

Step8.  Though we raised a warning message type , on the UI it appears as error type.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s