You are on page 1of 5

Community

(http://www.sap.com/)
(https://community.sap.com)

Ask a Question (https://answers.sap.com/questions/ask.html) Write a Blog Post (https://blogs.sap.com/wp-admin/post-new.php)

Not what you're looking for? Search community questions.

Former Member
File-File-Mail Scenario
Feb 24, 2015 at 02:18 PM | 12 Views

Follow RSS Feed

Hi Experts,
We have a requirement (File-File-Mail) like we pick the file from source location and placed into target location. if the file have been placed into target
location or delivered from PI then we need to send an email to particular group saying that message delivered. if the message not delivered due to some
error then we wont send any email.
Could you please help me on this.highly appreciated.
Regards,
Sanjay.

SAP Process Integration (/tags/01200615320800000719)

Comment Alert Moderator Actions

Related questions
File---Mail Scenario (https://answers.sap.com/questions/3978021/ le---mail-scenario.html)
By Former Member ( https://people.sap.com/former.member) , Apr 25, 2008
/
How can I send csv le as attachment to outgoing mail from mail adapter? (https://answers.sap.com/questions/5822234/how-can-i-send-csv- le-as-attachment-to-outgoing-.html)
By Former Member ( https://people.sap.com/former.member) , Apr 16, 2009

3 Answers

Sort by: Votes | Newest | Oldest

Best Answer

Praveen Gandepalli ( https://people.sap.com/praveen.kumar49)


(/users/2420/praveenkumar49.html)

Feb 25, 2015 at 04:45 AM

Hi Sanjay,
2 You can do this by using maintain order at run time option in interface determination like below then PI will send the mail if the le
successfully delivered otherwise mail message will be in waiting status (If the le failed for some reason). I have implemented this in my
project and it works pretty well.

Regards,
Praveen.

 MaintainOrderAt.PNG (/storage/attachments/1294291-MaintainOrderAt.PNG) (10.9 kB)


Comment Alert Moderator Share

1 Comment
/
Iñaki Vila ( https://people.sap.com/iaki.vila)

Feb 25, 2015 at 06:56 AM (/comments/11553650/view.html)


Hi Praveen,
Good idea!, easier than do two scenarios and i think it ts completely with Sanjay requirements.

Regards.

Like 0 Share Alert Moderator

Former Member

Feb 25, 2015 at 07:26 AM

Hi Sanjay,
1 I agree with the solution provided by praveen.
But what if the receiver channel fails to deliver for any reason(as the technical routing and call adapter happens after interface determination).
Then mail will be triggered as delivered but the le will not reach the destination.

So you may pick the le from the destination in the 2nd scenario (as per Inaki).
Suman
Comment Alert Moderator Share

1 Comment

Praveen Gandepalli ( https://people.sap.com/praveen.kumar49)

Feb 25, 2015 at 07:48 AM (/comments/11553871/view.html)


Hi Sanjay,
When you use Maintain order at run time option the messages will be processed in EOIO in adapter engine so if the le message failed to deliver then the next mail message
will be in the queue until the predecessor message went into nal status (successfully delivered).
Conclusion: If the le message failed the mail will not be triggered. if the le message successfully delivered then only the mail message will be delivered.
I hope i clari ed your doubt. you can go ahead and implement my suggestion it will de nitely work because i already implemented in my project and it is working.
Regards,
Praveen.

Like 0 Share Alert Moderator


/
Iñaki Vila ( https://people.sap.com/iaki.vila)
(/users/3484/iakivila.html)
Feb 24, 2015 at 05:15 PM

Hi Sanjay,
0 Why dont do two scenarios?:
1. File to File

SAPTechnical.COM - File-to-File Scenario without creating Repository Objects (http://saptechnical.com/Tutorials/XI/File2File/Demo1.htm)


2. File to mail. (You do the poll in the path with the rst scenario the PI deposited the le)
You can nd some examples: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6d967fbc-0a01-0010-4fb4-91c6d38c5816?
QuickLink=index&… (http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6d967fbc-0a01-0010-4fb4-91c6d38c5816?
QuickLink=index&overridelayout=true&5003637178687)
or http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/5083371b-5bd2-2e10-3f8b-ad877d24c9ce?overridelayout=t…
(http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/5083371b-5bd2-2e10-3f8b-ad877d24c9ce?overridelayout=true)

Regards.
Comment Alert Moderator Share

Your answer
Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please
leave a comment instead, requesting additional details. When answering, please include speci cs, such as step-by-step instructions, context for the solution, and links to useful
resources. Also, please make sure that you answer complies with our Rules of Engagement.

Rules of Engagement (https://www.sap.com/community/resources/rules-of-engagement.html)

Please provide a distinct answer and use the comment option for clarifying purposes.

/
Submit your Answer

Find us on

(https://www.facebook.com/sapcommunity) (https://twitter.com/SAPCommunity)

(https://www.youtube.com/c/SAPCommunities) (https://www.linkedin.com/company/sap) (https://instagram.com/sap/)

(http://www.slideshare.net/SAP) (mailto:?subject='SAP Community')

Privacy (http://sap.com/about/legal/privacy.html) Terms of Use (http://sap.com/corporate/en/legal/terms-of-use.html)

Legal Disclosure (http://sap.com/about/legal/impressum.html) Copyright (http://sap.com/about/legal/copyright.html)

Trademark (http://sap.com/about/legal/trademark.html) Cookie Preferences

Newsletter (https://www.sap.com/cmp/nl/sap-community-voice/index.html) Support (mailto:sapnetwork@sap.com)

You might also like