cancel
Showing results for 
Search instead for 
Did you mean: 

MAIL To File Scenario Error

Former Member
0 Kudos

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-be...

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

Accepted Solutions (0)

Answers (3)

Answers (3)

dilipkkp2412
Contributor
0 Kudos

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

Former Member
0 Kudos

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

dilipkkp2412
Contributor
0 Kudos

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

Former Member
0 Kudos

Thanks for the quick reply Dilip

dhivakar
Participant
0 Kudos

Hi,

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

Regards,

Dhivakar

Former Member

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

dhivakar
Participant
0 Kudos

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

Thanks!

Former Member
0 Kudos

Hello Experts,

Getting this channel error

unexpected login response read 001f no login failed

Can you please help me on this?

Thanks in advance