Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Raise statement in Class method

Hi,

In my function module ztest I create the instance of the class and execute a public method of the class. Upon encountering a certain condition in the class method I want the program flow to stop and return back to the function module.

I try to raise an exception in the class method using .

raise ENDING_RUN.

But it gives a dump. How do I propagate control back to the function module from the class method when an if condition is met.

Thanks

Former Member
Not what you were looking for? View more on this topic or Ask a question