on 06-13-2007 4:06 PM
Hello everyone,
We are trying to configure a sender mail adapter.
We have followed a number of sdn threads. What we are missing is how to incorporate the attachement in the payload.
In the mail adapter modules we have used the following;
localejbs/AF_Modules/MessageTransformBean = trans
localejbs/AF_Modules/PayloadSwapBean = swap1
localejbs/sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean = mail
and in module configuration
swap1 => swap.KeyName = Content-Description:
swap2 => swap.KeyValue = MailAttachement-1
The message bytes from MessageSyste monitor is
........
<xim:Mail xmlns:xim='http://sap.com/xi/XI/Mail/30'><Subject>Please process this product..</Subject><From>"Iacovos G. Molodanof" <iacovos.molodanof@omegatransport.com></From><To>"xitest xitest" <xitest@omegatransport.com></To><Content_Type>text/plain;charset="us-ascii"</Content_Type><Date>2007-06-13T14:57:25Z</Date><Message_ID><F4E91313FA6B0B4099F7D47ED67DE5885DB311@athemail.omgtrlg.com></Message_ID><Content></Content></xim:Mail>
--SAP_755e57b1-19be-11dc-abb9-0014c2595275_END
Content-ID: <payload-659c395519be11dc9dc80014c2595275@sap.com>
Content-Type: application/octet-stream;name="STKOPR (128).TXT-0701301121"
Content-Disposition: attachment;filename="MailAttachment-1.bin"
Content-Description: MailAttachment-1
2100 SA4005/02 8712581319021 MP3 0019.5 0013.5 0004.0 00000001053.0 ���������� 000001
SAP_755e57b1-19be-11dc-abb9-0014c2595275_END
.
Any help would be greatly appreicated.
Thanks a lot
Dimitris
Check this blog by Michal, it describes exactly what you want,
/people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
Regards
Bhavesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you all for your input.
DH
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In your case , the parametes to be used would be,
PayloadSwapBean TRANS
TRANS swap.keyName Content-Disposition
TRANS swap.keyValue attachment;filename="MailAttachment-1.bin"
TRANS swap.keyName Content-Description
TRANS swap.keyValue MailAttachment-1
You do not need MessageTransformBean here.
Regards
Bhavesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
This is the How to guide given by SAP..just try this
Regards
Hemant
Award points if find helpful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.