2005 Aug 20 3:39 PM
Hi Friends,
I am trying to send a mail using a standard Function Module. I should restrict the length of a line to say 200 characters. Once the 200 char limit is reached i got to get the next 200 chars on the next line. The message content is passed through an internal table. How to include a carriage return within the content?
Prompt replies would be rewarded.
Thanks in advance.
Tamilarasan.
Hi Friends,
I am trying to send a mail using a standard Function Module. I should restrict the length of a line to say 200 characters. Once the 200 char limit is reached i got to get the next 200 chars on the next line. The message content is passed through an internal table. How to include a carriage return within the content?
Prompt replies would be rewarded.
Thanks in advance.
Tamilarasan.
2005 Aug 20 3:45 PM
2005 Aug 20 3:45 PM
Hi,
search for cr_lf in the forum. there you´ll find several examples.
Best regards.
2005 Aug 22 7:49 AM
2005 Aug 22 8:22 AM
Hi, if you want to achieve it, don't fill the attach table using your internal table directly.
Concatenate all of the lines of internal table to be a long string, seperate with the cl_abap_char_utilities=>newline or '0D0A'.
Then split the long string into the attach table, fully fill every line of the attach table, except the last one.
E.G.
internal table (line length 7)
AAAAAAA
BBBBBBB
CCCCCCC
attach table (line length 10)
AAAAAAA(0D)(0A)B
BBBBBB(0D)(0A)CC
CCCCC
And don't forget the flag on TRANSF_BIN = 'X'.
Hope it will be helpful
thanks a lot