Skip to Content
avatar image
Former Member

RAISE EXCEPTION TYPE cx_xms_syserr_proxy

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,

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Nov 17, 2009 at 02:33 PM

    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%29ID1218624250DB01042214191197116785End?blog=/pub/wlg/3069

    Code:

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

    youWillFail.substring(0,100);

    Add comment
    10|10000 characters needed characters exceeded