cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to send a message from PI if there is no file?

Former Member
0 Kudos

Hi All,

I have a scenario where SAP PI is polling a directory for a file every day.. If the file exist then PI will process if there is no file then PI has to send a mail to user.. Is it possible?

Thanks,

Rajeev

Accepted Solutions (1)

Accepted Solutions (1)

sunilchandra007
Active Contributor
0 Kudos

There is no standard solution for this in PI. You can schedule OS level script once a day to monitor such cases and send mail in case directory is empty.

Regards,

Sunil Chandra

Former Member
0 Kudos

Hi All,

So is it possible to send an email or atleast create a blank file at the target end if there is no file comming on a particular day??

Business requirement is to create a empty file atleast on the day there is no file from source system...

Thanks

Rajeev

stefan_grube
Active Contributor
0 Kudos

There is no standard solution for this.

The file adapter polls files and creates messages.

no file - no message.

As Sunil Chandra has already proposed, you have to use an OS script.

Answers (2)

Answers (2)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Yes that is possible. Use context object condition in the reciever determination and check if the file exist if so regular target system. iF not use email as the target receiver.

Former Member
0 Kudos

Hi,

You can refer this link for a similar discussion.

Regards