cancel
Showing results for 
Search instead for 
Did you mean: 

Capture Error in transformation Step and send it by email without Alerts

Former Member
0 Kudos

Hi all,

I have a problem in my BPM.

I need to capture an error in transformation Step and send it by email with a send step without alerts.

Is there a way to do this in BPM?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Mariano

Transformation step is not capable of creating alerts for errors. Use an Exception block to achieve this. Use need to do a Async Send step to send the exception message out of BPM. Send should pass message to Mail adapter service. If you are willing to use Mail Package/ Custom payload for this then you need to have mappings to be executed at runtime. These mappings are required to be used in ID pipeline steps for the mail adapter service.

Thanks

Gaurav

Former Member
0 Kudos

Ok, I will use an Exception block around my Transformation Step to achieve an error, but how i know what was the error exactly?

Thanks a lot,

Edited by: Mariano Vidal on Dec 18, 2008 7:30 PM

Former Member
0 Kudos

Hi Mariano

Exception block can catch generic exceptions and that you can send in Email. if you want to capture exact problem then you can access the payload as well.

If you give more information on your requirement we can think on what you need to send in emails.

Thanks

Gaurav

Former Member
0 Kudos

Thanks Guarav,

I need to know when the error happend if is because the XML file is not correct or any of mandatory fields are not complete.

Then complete a XML file with this information, and send it by email.

Is there a way to do this?

Former Member
0 Kudos

Hi Mariano,

Please check the standard pattern in IR under software component SAP BASIS ->Integration process

-->BpmPatternReqRespAlert.Hope this will help you for building the scenario.

In this process we define a deadline branch to monitor the deadline. If the deadline is missed, an alert is triggered and this can be sent to an email too.

Alert Configuration

http://help.sap.com/saphelp_nw04/helpdata/en/80/942f3ffed33d67e10000000a114084/frameset.htm

Alert Inbox

http://help.sap.com/saphelp_nw04/helpdata/en/80/942f3ffed33d67e10000000a114084/frameset.htm

Alert Notification Step-by-Step

http://help.sap.com/saphelp_nw04/helpdata/en/49/cbfb40f17af66fe10000000a1550b0/frameset.htm

Hope this helps.

Best regards,

Sharath

Edited by: sharath Girmaji on Dec 19, 2008 7:17 PM

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I need to capture an error in transformation Step

Can you please explain how are you capturing error from transformation step.If you can... then call the RFC which can trigger the mail.

Possible options which i think....

If you are using fault message in your BPM deign, you can define a UDF between the source & target of text feild (application error feild ) and pass the error into your UDF and call the RFC -->SALERT_CREATE (standard FM to trigger the alerts).

Please refer Blog:

Regards

Sunil.

Former Member
0 Kudos

Hi,

I didn´t explain me correctly. I´m new in BPM. I want to catch an error in a transformation step and then send it by email without using alerts. I don't know if is it posible.

If happend, send this error by email using a receiver mail adapter.

Am i clear?

Regards,

Former Member
0 Kudos

Hi Mariano,

Use an Exception block around your Transformation Step. In the Exception Block, put in a Asych send step. In the receiver determination for this Asych send call a Service that has a Email adapter as one of its channels. In the Interface Determination, call the Interface mapping that constructs the xml message that indicates the Error description.

Regards,

Balaji.M