Skip to Content
author's profile photo Former Member
Former Member

CL_BCS Create Document Email Body

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 ).

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Nov 12, 2015 at 03:30 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.