OO Exception: Global Exception with Function Module


 

Step1. Here we have the Exception class created in SE24 which is inherited form CX_STATIC_CHECK.


Step2. Here we have the methods inherited form super class.


Step3. Below are exception text IDs of the exception class.


Step4. Here are the attributes of the exception class. All the TEXT IDs defined under the TEXT tab of the class become the attribute of the class.


Step5. So here we have a function module with importing parameter. Go to the Exceptions tab.


Step6. Select the Exception Classes Check box and provide the above created exception class name .


Step7. So here we have the source code which raises the Exception with particular text ID.


Step8. Here is the Report which calls the above created FM and handles the raises exception  and display the message.


Step9. RUN the report.

Step10. So here we above the output.

 

 


 

Advertisements

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 )

w

Connecting to %s