cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP to FILE using BPM to catch exception and save error into the table

Former Member
0 Kudos

Hi All

My scenario SOAP to FILE using BPB is working fine but now I have a requirement to catch an exception if something wrong happened on a runtime and save it into the tracking table, is that possible, if it is please point me to the similar step by step scenario.

Thanks in advince,

Yonela

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

have a look into this, step by step - triggering alert in integration process. might be useful.

http://help.sap.com/saphelp_nw04/helpdata/en/43/1b9259fb002be8e10000000a11466f/content.htm

regards,

francis

Former Member
0 Kudos

Hi Guys

I follow these two blog to configure my Alert:

http://help.sap.com/saphelp_nw04/helpdata/en/43/1b9259fb002be8e10000000a11466f/content.htm

/people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step

when i went to the Alter-Configuration in the RWB i become:

404 Not Found

SAP J2EE Engine/7.01

The requested resource does not exist.

Details: Go to main page of this application!

What could be the problem ?

Thanks.

Yonela

Former Member
0 Kudos

Hi,

Refre this for raising an alert inside ur BPM:

/people/michal.krawczyk2/blog/2005/03/13/alerts-with-variables-from-the-messages-payload-xi--updated

Thanks

Amit

Former Member
0 Kudos

Hi

After I went through this blog:

/people/michal.krawczyk2/blog/2005/03/13/alerts-with-variables-from-the-messages-payload-xi--updated

Then i went to the Alter-Configuration in the RWB i get:

404 Not Found

SAP J2EE Engine/7.01

The requested resource does not exist.

Details: Go to main page of this application!

What do I need to configure?

Thanks.

Yonela

Former Member
0 Kudos

Hi,

No need to do alert configuration in this case(raising alerts from BPM only):

1) Create alert category using ALRTCATDEF.

2) Throw alert using Control step(AS SHOWN IN THE BLOG).

Regarding 404 NOT FOUND error , plz have a look:

Thanks

Amit

Former Member
0 Kudos

Hi Everyone

I would like to know if its possible for me to save the error message that I catch on the BPM to my SQL Tracking table.

If it is can u guide me.

Thanks,

Yonela

Former Member
0 Kudos

Hi All

Liang suggested that in my your excepetion branch, I must also have send step to call RFC to insert error data to a table.

I can do this using UDF and I believe it will work on scenario SOAP to RFC but mine is SOAP to FIle (spliting the file), and is (Sendere and Receiver are Async)

Must I make my Sender Sync and how am I going to get that error to my table if the sender failed?

Any suggestions.

Regards,

Yonela

Former Member
0 Kudos

Yonela:

As your original requirement is to save the eorr data into your database table, however, you was mis-leaded to alerting field.

You are using BPM now, then that is the reason that I suggested to use excpetion branch.

It does not matter SOAP to File seneario, it does not have to be SAP - RFC scenario, your BPM willl interact with database system.

First you have block which include all the steps that possible generate exception: like Transformation step, and your final Aync send step (which will send data to file).

Secondly, define a exception handler for that block.

3. Modify each steps that posssible generate exception: e.g. transformation step, send step, add exception handler to them.

4. Create exception branch in side the block

5. Add another send step inside your exception branch, which will call RFC, RFC will write data to your table.

6. If you want, you can add a control step in exception branch to trigger a alert, or terminate current process.

At run time, any steps that trigger exeption,will cause your exception branch executed, and RFC will be called to insert data into your database table.

Regards

Liang

Former Member
0 Kudos

Hi Liang

I step number 5. Add another send step inside your exception branch, which will call RFC, RFC will write data to your table.

So what u mean is that even if my scenario has nothing to do with RFC, I can always use RFC to write on SQL database table.

My scenario is SOAP - FILE.

Regards

Yonela

Answers (1)

Answers (1)

Former Member
0 Kudos

You need an exception branch to handle it:

In your exepception branch, you can also have send step to call RFC to insert error data to a table.

Regards

Liang