on 06-26-2015 1:50 PM
Hi All,
We are sending email when PO create/changed from SRM portal, Email body build using smart form but when I am forwarding email from SOST eamil body is splitting into lines and having some break in the content.
In smart form I put the body content in text module and tried out other way created a text in SO10 and called in smart form in both cases email body is having some breaks in the text
Is there any way to get the correct format.
Thank you in advance.
HI Ravi
Can you try this ?
DATA: ls_lines TYPE tline,
ls_soli TYPE soli,
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = 'ST'
language = 'E'
name = 'XXX'
object = 'TEXT'
TABLES
lines = gt_lines
EXCEPTIONS
not_found = 4
OTHERS = 8.
IF sy-subrc EQ 0.
LOOP AT gt_lines INTO ls_lines.
MOVE ls_lines-tdline TO ls_soli-line.
APPEND ls_soli TO e_mail_message.
ENDLOOP.
ENDIF.
IF ls_soli-line IS INITIAL.
APPEND '<br>' TO e_mail_message.
ELSE.
lv_linelen = strlen( ls_soli-line ).
IF lv_linelen LT 50.
CONCATENATE ls_soli-line '<br>' INTO ls_soli-line.
ENDIF.
CLEAR lv_linelen.
* Normal text line.
APPEND ls_soli TO e_mail_message.
ENDIF.
Let me know if this works ..
Regards
Vinita
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.