Application Development 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: 

Send Email without #

former_member586174
Participant
0 Kudos

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

keremkoseoglu
Contributor
0 Kudos

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

0 Kudos

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

Tomas_Buryanek
Active Contributor
0 Kudos

How are you "entering ENTER"?

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

-- Tomas --

former_member586174
Participant
0 Kudos

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

jozsef_hegyi
Active Participant
0 Kudos

Dear Jennifer

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

Best regards

JozsefH