cancel
Showing results for 
Search instead for 
Did you mean: 

RAISE EXCEPTION TYPE cx_xms_syserr_proxy

Former Member
0 Kudos

Hi,

I am working on an inbound proxy wherein I am calling a FM within. And if i get some error in that FM then I want to raise an exception explicitly so that i get error in sxmb_moni.

I think i should use RAISE EXCEPTION TYPE cx_xms_syserr_proxy but can anybody suggest how exactly to use it.

thanks,

Accepted Solutions (0)

Answers (1)

Answers (1)

abhay_rajhans2
Contributor
0 Kudos

Hi ,

Following blog may help u

/people/michal.krawczyk2/blog/2007/04/26/xipi-throwing-generic-exceptions-from-any-type-of-mapping

Or otherwise if you dont want any specific message as error and u just want that mapping should fail then you can use followng blog.

In that when your RFC call fails then trigger the code given in the below blog.

http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3414900%29ID1218624250DB0104221419119711678...

Code:

String youWillFail = new String("not.enough.long");

youWillFail.substring(0,100);