on 07-20-2012 8:10 AM
Hi All,
While generating the email attachment(csv file ) through PI using Java Mapping/UDF, CRLF is replaced by LF(seen as box character in notepad) being on Unix platform.
Following things have been tried -
1. running unix command through Java Map.
2. Setting different char encodings
3. Setting Server Parameter to UTF - 8
4. We also have tried using ASMA and then setting the end seperator in channel. In this case it works but then we are unable to have email body content which is a mandatory requirement.
None of them worked .
Any pointers will be helpful.
Thanks ,
Piyusha
Hi,
there is a standard SAP adapter module - ConvertCRLFfromToLF
which can be used to do the changes in both directions but I don't know if it works on attachments - maybe you can give it a try ? if not you can always have a look at it's code and implements yourself
http://help.sap.com/saphelp_nwpi711/helpdata/en/96/f04142099eb76be10000000a155106/content.htm
Regards,
Michal Krawczyk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Michal,
I have tried using the module but it do not seem to be working with Attachment.
Following config was done - Not sure if missed anything -
Processing seq -
1 | SAP XI Sample/ConvertCRLFfromToLF | Local Enterprise Bean | 1 |
2 | sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean | Local Enterprise Bean |
Module config
1 | mode | LFtoCRLF |
Meanwhile , I'll try to extract the code from module.
Thanks,
Piyusha
Hi Piyusha,
Use =0D=0A for CRLF and define the Content transfer encoding as Quoted-printable in your MIME message.
String CRLF = "=0D=0A";
Content-Transfer-Encoding: quoted-printable
http://www.w3.org/Protocols/rfc1341/5_Content-Transfer-Encoding.html
Cheers,
Anish
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.