cancel
Showing results for 
Search instead for 
Did you mean: 

How to Triggering an exception / Fault Message from service interface

Former Member
0 Kudos

Hi all , plz provide ur valuable opinions on the following issue.

I want to trigger the exception from one of the methods of the service interface (to be caught from the soa ) , how to do that any soution. The method has got the Exception in its signature , but i am not aware of how to trigger the exception in the implementation of the method. Plz provide the solution.

Thanx

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

If you generate a proxy for your service interface, you can see there the name of exception class generated.

You just need to raise an exception against that class in your proxy code and catch the same.

Before raising the exception, fill the data structure or exception class.

You search on SAP help for sample code for raising ABAP exception.

Regards,

Vikas