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: 

CL_BCS Create Document Email Body

Former Member
0 Kudos

Hello,

I am trying to send email with email body text but every time the email body is blank, any help would be greatly appreciated.

I am setting the text as below and the t_mailtext has the data in it but still does not go to email body.

Subject is there but not email body.

I have also tried changing i_type to 'RAW' and 'TXT' but neither of those has worked.

data: lo_document TYPE REF TO cl_document_bcs.

data:  t_mailtext TYPE soli_tab.

lo_document = cl_document_bcs=>create_document(

      i_type = 'ASC'

      i_text = t_mailtext

      i_subject = lv_subject ).

1 ACCEPTED SOLUTION

roberto_vacca2
Active Contributor
0 Kudos

Hi.

Did you define   i_length parameter?

Once you declare your table with text

DATA:       f_text          type bcsy_text with header line

DATA:  f_n10           type i.


then you should define :


describe table f_text lines f_n10.


f_n10 = ( f_n10 - 1 ) * 255 + strlen( f_text ).

i_lenght = f_n10.

and use   i_type    = 'RAW'

This should works.

Hope to help

Bye

1 REPLY 1

roberto_vacca2
Active Contributor
0 Kudos

Hi.

Did you define   i_length parameter?

Once you declare your table with text

DATA:       f_text          type bcsy_text with header line

DATA:  f_n10           type i.


then you should define :


describe table f_text lines f_n10.


f_n10 = ( f_n10 - 1 ) * 255 + strlen( f_text ).

i_lenght = f_n10.

and use   i_type    = 'RAW'

This should works.

Hope to help

Bye