11-14-2018 11:51 AM
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
11-14-2018 1:31 PM
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
11-14-2018 1:49 PM
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 else11-14-2018 3:19 PM
How are you "entering ENTER"?
Are you sure that #### is not CR+LF?
11-14-2018 3:35 PM
hi Tomas,
i am writing the email in a parameter type string then a pass it to the
gv_txt_string.
11-15-2018 9:04 AM
Dear Jennifer
you have to set the drlf axplicitly and than format the file with eg so_raw_to_rtf fm.
Best regards
JozsefH