cancel
Showing results for 
Search instead for 
Did you mean: 

Exception to RFC

Former Member
0 Kudos

Techies

working on FILE-WS-RFC ...BPM

Once WS is failed,Exception to be mapped to RFC.

How to catch the exception?

...

Derick

Accepted Solutions (0)

Answers (6)

Answers (6)

sunil_singh13
Active Contributor
0 Kudos

Hi Derick,

When you creat Synchronous Message interface (Inbound/OutBound/Abstract) you will alyas find an option to mention the fault message. To catch Application Error you have to mention Fault Message Type in MI.

As soon as you Mention the Fault Message Type and Assign this message Interface To your send step (In u r case it is Synchronous) you will Find another Option of Application Exception along with System Exception (System Exception Apperas by default while Application Exception only appears when u select Fault Message Type). Assign Error Message to the Application Exception And if required to System Exception

Now You would have defined the min 2 Exception for a block under which your Synch Step Resides.

Just Right Click on the Send step ->Insert->Add Exception Branch -> and assign it the Error Message you assigned to the Application Exception.

Now in Added Exception Branch which corresponds to the Application Exception you add one Trensformation Step which will convert the Web Service Fault to RFC REquest and then use Synch Send to Send it to RFC.

Thanks

Sunil Singh

aashish_sinha
Active Contributor
0 Kudos
Former Member
0 Kudos

Have a different Idea,

In one of the BPM patterns under Namespace: http://sap.com/xi/XI/System/Patterns , IP: BpmPatternReqTimeOut.

In Exception block Transformation and Send step is used,i feel we can use the same.

But in mapping y dont we use UDF(DynamicConfiguration) and get the Error message from WS/SOAP-Adapter and pass to tha target.

In proceeding Send Step use the RFC which u need to send the error message.

Note: I didn't implement this,just thought in mind.Please correcct me if am wrong.

Thanks

Prabhakar

dharamveer_gaur2
Active Contributor
0 Kudos

Hi

Use Fault message. Fault message types are designed for application-specific errors that occur on the inbound side and that are reported back to the sender or persisted in monitoring.

look document to implement fault message

http://help.sap.com/saphelp_nw04/helpdata/en/dd/b7623c6369f454e10000000a114084/content.htm

Former Member
0 Kudos

HI Derick

Use the Fault message type. When WS failed map the exception to RFC through this.

Thanks

Gaurav

Former Member
0 Kudos

Hi ,

Refer these blogs

take a look at this blog for RFC sender adapter.

Is this what you have done?

if you are on WAS6.40 check the following weblog on how to consume webservice using the wsdl file.

lower version of WAS use class cl_http_client.

if this case you have to manually build the soap message.

regards,

suryanarayana.M