cancel
Showing results for 
Search instead for 
Did you mean: 

Sender mail adapter - filter emails by attachment?

peter_wallner2
Active Contributor
0 Kudos
112

Dear experts,

I have a sender mail adapter that picks an XSL (EXCEL) attachment from an incoming email and converts it (with a custom adapter module) to XML.

But now how can I make the adapter only process emails with XLS - attachments? In that Inbox I also have emails with HTML-attachments for example. And now my adapter also wants to process those messages.

In my adapter module that makes XLS to XML I see an exception in RWB but the message still gets through to SXMB_MONI where it gets stuck with a red flag.

Can I somehow tell the adapter to only process emails with XLS attachments?

Or can I stop the processing in the adapter module that converts XLS to XML?

Thank you for any input or ideas on this!

Best regards,

Peter

PS: I am using this code to convert XLS to XML:

http://wiki.sdn.sap.com/wiki/display/ABAP/AdapterModuleToReadExcelFilewithMultipleRowsandMultiple+Columns

Accepted Solutions (1)

Accepted Solutions (1)

former_member192851
Active Participant
0 Kudos

Another way - make another folder in mail box and make rule to forward all xls files to this folder. Then configurate Sender Channel to this new folder...

peter_wallner2
Active Contributor
0 Kudos

Hello ChizzT,

Thank you for your idea. I went with this one and it worked.

Best regards,

Peter

Answers (0)