on 11-16-2006 2:56 PM
Hi,
I have the following scenario, Proxy ABAP-XI -Mail. I have configured my scenario, and the payload is correctly sent to the email address that i have configured in the mail adapter, but in xml format, the point is that I have to send the attached message as txt format.
I have done the following configuration in the receiving mail adapter channel, in the module section:
<b>Processing sequence</b>
localejbs/sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean Local Enterprise Bean mail
localejbs/AF_Modules/MessageTransformBean Local Enterprise Bean XML2Plain
<b>Module configuration</b>
XML2Plain Transform.Class com.sap.aii.messaging.adapter.Conversion
XML2Plain Transform.ContentDisposition attachment;filename="Gen.txt"
XML2Plain Transform.ContentType text/plain;charset=utf-8
XML2Plain xml.REGISTRO_CABECERA.fieldFixedLengths 52
XML2Plain xml.REGISTRO_DE_DATOS.fieldSeparator ;
XML2Plain xml.REGISTRO_PIE.fieldFixedLengths 10
XML2Plain xml.addHeaderLine 0
XML2Plain xml.conversionType StructXML2Plain
XML2Plain xml.recordsetStructure REGISTRO_CABECERA,REGISTRO_DE_DATOS,REGISTRO_PIE
Maybe i missed something in my configuration, or maybe this is not the right way for doing it, can anyone help me with this??
Thanks a lot in advanced,
Luis
Hi,
You can also check out this blogs and see if you can use it
/people/community.user/blog/2006/09/07/email-reporting
/people/community.user/blog/2006/09/08/email-report-as-attachment-excelword
Regards,
Prakash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prakash,
Thanks for your answer, but your has not too much to do with my needs, i dont know how to convert the xml payload into text with the mail adapter, Ive done something wrong in my module configuration, because is still sending the attachment as xml...maybe I missed something in the module configuration, because is so strange that it doesnt try to do any kind of conversion.
Thanks,
Luis
Hi,
In the modules you need to change the content type as Text. If you do that I think it should work.
http://help.sap.com/saphelp_nw04s/helpdata/en/57/0b2c4142aef623e10000000a155106/content.htm
In the above link check for MessageTransformBean Parameters
Actually you can achive that with the method mentioned in that blog by setting the content type.
Regards,
Prakash
Hi,
1. localejbs/AF_Modules/MessageTransformBean Local Enterprise Bean XML2Plain
l2. ocalejbs/sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean Local Enterprise Bean mail
Check out the page 13 in the following URL
Page 8 in the following
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.