cancel
Showing results for 
Search instead for 
Did you mean: 

catching RFC exception and "moving" it to soapenvlp:Fault.faultcode

Former Member
0 Kudos

Hi,

i have a simple SOAP2RFC (sync) interface. my question is:

how can i catch an exception (thrown by RFC) and use it as soapenvlp:Fault.faultcode content?

Regards

Uri

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

very easy:

1. define "Fault Message Type"

2. create relevant "Message Mapping" (i.e., FRC exception to Fault Message)

3. use defined Fault Message at Interface objects

4. use defined Message Mapping at (already exsits) Interface Mapping.

throwns exceptions are now going to be catched .

In case of sync WS2RFC exception will be "moved" into soapenvlp:Fault.

Former Member
0 Kudos

Hi!

have a simple SOAP2RFC (sync) interface. my question is: 
how can i catch an exception (thrown by RFC) and use it as soapenvlp:Fault.faultcode content?

Yes I think you can catch an exception by using RFC EXception (Fault) Message instead of RFC Response in the mappings. and remaining all steps are same.

But that is mostly depends upon the RFC Function module that you are using and at which the logical coding of that Function module.

[https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/18dfe590-0201-0010-6b8b-d21dfa9929c9]

[https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40574601-ec97-2910-3cba-a0fdc10f4dce]

[https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/8c10aa90-0201-0010-98a0-f071394bc9ae]

[http://help.sap.com/saphelp_nw70/helpdata/EN/44/2a41f420323f0ee10000000a114a6b/frameset.htm]

[http://help.sap.com/saphelp_nw70/helpdata/EN/76/4a42f4f16d11d1ad15080009b0fb56/frameset.htm]

Regards::

Amar Srinivas Eli

Edited by: Amar Srinivas Eli on Apr 8, 2009 8:44 PM