cancel
Showing results for 
Search instead for 
Did you mean: 

Attached file in receiver mail scenario and ConvertCRLFfromToLF

Former Member
0 Kudos

Hi,

I have a problem attaching a text file in a receiver mail channel.

I use mail package, and I've created a UDF to create field content with:

for (int j=0;j<a.length;j++)

b = b + a[j] + "\n" ;

result.addValue(b);

In my receiver CC, I have configurated:

SAP XI Sample/ConvertCRLFfromToLF

mode --> LFtoCRLF

But when I open file attached by mail, it has only one line and line feed it's not correct.

How to insert correctly CR LF ?

Thanks,

cARME

Accepted Solutions (0)

Answers (1)

Answers (1)

VijayKonam
Active Contributor
0 Kudos

I think the \n you used in the UDF should suffice the requirement. Check by removing the module..

VJ

Former Member
0 Kudos

I need CRLF at the end of every line in text file (windows end line).

I have tried

1) inserting \r\n t in the UDF and no module in CC. With this I see 0A 0A at the end of every line (it would be 0D 0)

2) inserting \n in the UDF and use module in CC to convert LF into CRLF. With this I see 0A at the end of every line.

How to do it?

Thanks,

Carme

Former Member
0 Kudos

Did you ever find a solution for this? I have the exact same problem now.