Skip to Content
0
Former Member
Oct 12, 2007 at 04:28 PM

CL_DOCUMENT_BCS=>CREATE_DOCUMENT Email Body Text not correct

3254 Views

Hi All,

I am creating an email using CL_DOCUMENT_BCS=>CREATE_DOCUMENT with the I_TEXT parameter.

Here is the relevant code:

. . .

  • convert email body string to SOLI table

CALL FUNCTION 'SO_STRING_TO_TAB'

EXPORTING

content_str = l_emailbody_str

TABLES

content_tab = tab_emailbody.

. . .

  • create email document, with body of email

obj_document = cl_document_bcs=>create_document(

i_type = 'RAW'

i_sensitivity = 'O'

i_importance = '1'

i_text = tab_emailbody

i_subject = l_emailsubject ).

The email body string is a long string (> 510 characters).

Here is the problem: At exactly every 255 characters (the line length of table SOLI_TAB) the email body has an extra space inserted.

For example: a portion of the original email body string will look like this . . .

" . . .This could be caused by failure of the external web service . . ."

But the resulting email body will look like this . . .

" . . .This could be caused by failure of the externa l web service . . ."

[NOTE: the EXTRA space in the word external]

-


Does anyone know how to solve this problem? - how to prevent the extra spaces from being inserted?

Thanks,

Eddie