Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Send Email without #

Former Member
0 Likes
1,145

Hi Experts,

I am writing a program to send Email, the Problem that I am facing is when I am entering 'ENTER' to start a new line in the Email the program not responding and write every this together by debugging I found the blow Symbol # in the coding which refers to the enter or space.

Please do the test####There is an error

Do you know How I can replace it with a new line,
I am saving the data in the internal table by Append.

ls_objtxt-line = |{ gv_txt_string }| .
APPEND ls_objtxt TO it_objtxt.

Best Regards

Jenie

5 REPLIES 5
Read only

keremkoseoglu
Contributor
0 Likes
1,047

Here is a generic E-Mail class which might help you sending multi-line E-Mails: https://github.com/keremkoseoglu/ABAP-Library/blob/master/zcl_bc_mail_facade.abap

Read only

0 Likes
1,047

THANKS A LOT for sharing, but i think I will have the same problem since I will do the same steps again.

in the doc was mentioned:

ls_objtxt-line = '<body bgcolor = "#FFFFFF">'.

APPEND ls_objtxt TO lt_objtxt.
or did I miss something else
Read only

Tomas_Buryanek
Product and Topic Expert
Product and Topic Expert
0 Likes
1,047

How are you "entering ENTER"?

Are you sure that #### is not CR+LF?

-- Tomas --
Read only

Former Member
0 Likes
1,047

hi Tomas,
i am writing the email in a parameter type string then a pass it to the
gv_txt_string.

Read only

jozsef_hegyi
Product and Topic Expert
Product and Topic Expert
0 Likes
1,047

Dear Jennifer

you have to set the drlf axplicitly and than format the file with eg so_raw_to_rtf fm.

Best regards

JozsefH