cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping to Mail Package Content

Former Member
0 Kudos

Hi,

I'm trying to get information from an IDoc into the "Content" tag of the Mail Package structure. The format of the content should be a few values separated by semicolons and then "End Of Line" character after each line of values. Ex.

<Content>VAL1;VAL2;VAL3 "EOL" VAL4;VAL5;VAL6 "EOL" VAL7;VAL8;VAL9</Content>

The semicolons can easily be created using the concat function, but how do I get the EOL character in there so that the end result of the content attachment out of the Mail adapter becomes:

VAL1;VAL2;VAL3

VAL4;VAL5;VAL6

VAL7;VAL8;VAL9

So, in other words the result should be CSV with EOL characters.

Solutions that work will be highly rewarded!!

Thanks,

Mattias

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

write a simple UDF...

the code in it would be just one line...

return (""+ ((char)10) );

i am assuming you want the "new line" at the end..right ?

for new line it is "((char)10)"...for carriage return it is "((char)13)"...

Answers (0)