Skip to Content
0

MAIL To File Scenario Error

Apr 27 at 12:22 PM

80

avatar image

Hello Experts,

I am working on a Mail to File scenario wherein the txt file attachment needs to be read using sender MAIL adapter. I have built the scenario using this blog

https://blogs.sap.com/2012/04/12/handling-attachments-in-mail-to-file-scenario-using-payload-swap-bean/

I triggered the mail from the mailbox I mentioned in the sender mail channel but the mail is neithere being shown unread in case of IMAP not it is being deleted as in case of POP3

So there are no messages in PO. Please note that the attached text file is a comma separated file while the source and target structure I created is having only four fields that is To,From.Subject and Input.

Do I need to create the source and target structure as per the attached text file

Really appreciate your quick help on this

Thanks in advance

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

BRM Fresher Apr 27 at 01:09 PM
0

Hello Experts,

Getting this channel error

unexpected login response read 001f no login failed

Can you please help me on this?

Thanks in advance

Share
10 |10000 characters needed characters left characters exceeded
dhivakar muthusamy Apr 30 at 09:36 AM
0

Hi,

Could you share the screenshot of your mail Sender channel configuration? It could be a logon credentials error.

Regards,

Dhivakar

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Thanks Divakar, my credentials were not working I have asked them to reset it. But still yet to develop and test the scenario end to end. Really appreciate your help.

Thanks in advance

1

Just to confirm. Please inform here if this is working after the credentials are reset.

Thanks!

0
Dilip Kumar KrishnaDeo Pandey May 02 at 09:43 AM
0

Hi BRM Fresher

Please refer below blog to cross verify Sender Mail config

https://blogs.sap.com/2017/10/10/sap-pi-download-multiple-mail-attachments/

There may be two case per mail:

  1. To read single atatchment
  2. To read multiple attachment

Both solution, you can find in that blog

Regards,

Dilip

Show 3 Share
10 |10000 characters needed characters left characters exceeded

Thanks Dilip.

There will be only one attachment per email. I am configuring the channels as per your blog too but can you please tell me what needs to be there in source and target structures? Also, as I am doing mail scenario for the first time , can you please tell me how to test the end to end scenario? In my case we are being provided with one outlook email id we can to which vendor will send the emails.

Really appreciate your help on this.

Thanks in advance

0

Dear BRM Fresher

No need to maintain any specific message format for Source and Target.

Your core requirement seems to be only read mail and extract single attachment in some sap's application directory (accessible to SAP-PI off-course). please go through my blog, you will get answer.

As a pre-requisites,

  • Your SAP-PI server should have connectivity to mail-SMTP-server else get help from Basis team.
  • Mail-id which you will refer, should have sufficient authorization for read/write, can be checked with Mail-server team, either you first give a try with correct config, you should receive error, which you can forward to us for more drill down.

For Testing:

  • There should be one unread mail in your mail box with attachments.
  • Start/stop the sender (MAIL) channel time to time for each unit test analysis.

Regards,

Dilip

0

Thanks for the quick reply Dilip

0