cancel
Showing results for 
Search instead for 
Did you mean: 

Doubt with File->Proxy scenario, email to be sent in case of error in Proxy

zameerf
Contributor
0 Kudos

Hi,

We have a scenario File->PI->Proxy.

There is a requirement to send notification through email to sender if any error occurs in Proxy side.

I had gone through few links in sdn and found options like usage of Fault message,BPM

If PI is receiving a fault message from ECC in the Inbound/Sync Proxy interface, how should we proceed further in PI to send email?

Can anyone suggest the better way to handle this?

Regards,

Zameer

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Zameer,

Check the option with your ECC Team to send an Email with error details from Inbound proxy code itself. As Debashih said you may use BPM to get response of Inbound proxy. This option may cause further issues. You can have two scenarios without BPM.

1) File - PI - Inbound Proxy - Inbound proxy would execute the data sent by PI

2) To send error/status of message processing of IB proxy details, use another Outbound Proxy Interface and call that in your IB proxy. You can configure OB Proxy To Mail interface.

When the OB Proxy triggered by your IB proxy, those details can be sent to email.

Cheers

Veera

Answers (1)

Answers (1)

former_member854360
Active Contributor
0 Kudos

Hi,

You may want to use Alert functionaliry.

Option1:

If any error occured in Proxy then in error code raise a alert by calling function module 'SALRT_CREATE_API' in the proxy code itself. So alert will automatically send email

http://help.sap.com/saphelp_nw04/helpdata/en/d0/5e073c8e56f658e10000000a114084/content.htm

Option 2:

Create fault message

refer this

/people/shabarish.vijayakumar/blog/2006/11/02/fault-message-types--a-demo-part-1

zameerf
Contributor
0 Kudos

Hi,

Option 1 we have discussed with ECC team and may or may not use it.

Just wanted to know the option in PI also, Option2 I have already read, but my case will be to send email after receiving the Fault Message in Inbound/Sync Proxy. How should we go ahead?

As the scenario turns to be,

Outbound async File-> PI -> Inbound Sync Proxy

Whether BPM is the only option?

former_member854360
Active Contributor
0 Kudos

Hi,

In INBOUND proxy response ask the ECC team to send the SUCCESS or FAIL status.

You configure a mappuing between Proxy Response to Mail. Ans configure a Mail receiver channel.

create a BPM.

Steps:

Receive(Receive the file asynchronus)

transformation(Inbound File to Proxy Request)

Send(Synchronus send Proxy request and response)

Send(Send Proxy response asynchronus)