cancel
Showing results for 
Search instead for 
Did you mean: 

How to trigger a mail from Mail Adapter once file is generated at target FTP Server ?

Former Member
0 Kudos

Hi,

My requarement is : A Flat file is generating at Receiver side on FTP and now i have to trigger a mail from PI once it is generated.

What are the possible ways ?

needs suggestion.

Regards

Accepted Solutions (1)

Accepted Solutions (1)

udo_martens
Active Contributor
0 Kudos

Hi,

you can build a Business Process where you request an acknowledgment in the send step (to the file adapter). Once the adapter has written the file the process will continue and you can send the mail. Errors are catched with an exception / exception branch. If you build in parallel a timeout and a control step jumping into the exception branch you can control the situation the adapter returns nothing (message in queue). In the exeption branch send an failure information mail.

Regards,

Udo

Answers (3)

Answers (3)

Former Member
0 Kudos

Trigger event from option "run operating system command after message processing"

based on even execute batch job which will send abap-email or batch job will launch rfc to email scenario

baskar_gopalakrishnan2
Active Contributor
0 Kudos

>What are the possible ways ? There are many ways to achieve this.

1) Use unix script to check whether file exists or not. Call abap program to run the script and based on the script return value trigger a proxy call to PI. PI in turn sends message to email receiver. This is proxy to mail scenario.

Message was edited by: Baskar Gopalakrishnan

rajasekhar_reddy14
Active Contributor
0 Kudos

Simple way is develop one more scenario and using sender file adapter poll to FTP folder then develop dummy mapping and add mail receiver.

File to Mail scenario,but dont delete file from FTP using this interface, just read it.

If you think about approach not feasible then you need use ccBPM .