‎2013 Dec 20 7:06 AM
Hi All,
I have one query which is, i am appending some email data through Work area in an internal table and i want every append statement to be start from next line although when i sending the mail in development server it is showing that every append statement is getting start from next line but in the production when the mail gets trigger in outlook it get combined like an paragraph.
This is a little bit sample i am sending to you :
CONCATENATE 'Incident details:' wa_data-ialid ':' lv_usexnam ':' lv_event INTO wa_message.
APPEND wa_message TO it_message.
CLEAR: wa_message.
CONCATENATE 'Location:' lv_name1 ':' lv_wanam ':' lv_aclocdesc INTO wa_message.
APPEND wa_message TO it_message.
CLEAR: wa_message.
CONCATENATE 'Safety Measure Details-' i_wa_buftab1-acid ';' lv_actypenam ';' i_wa_buftab1-acdescr INTO wa_message .
APPEND wa_message TO it_message.
CLEAR: wa_message.
Please let me know how to fix this.
Regards,
Deepak kansal
‎2013 Dec 20 7:13 AM
Hi Deepak
How are you sending the email..Can you please post that sample code also
Nabheet
‎2013 Dec 20 7:17 AM
Hi Nabhjeet ,
i am sending it through function module as mentioned below :
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = wa_doc_data
put_in_outbox = 'X'
sender_address = ' '
sender_address_type = ' '
commit_work = 'X'
IMPORTING
sent_to_all = wa_sent_all
TABLES
packing_list = it_packing_list
contents_txt = it_message
receivers = it_receivers
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
IF sy-subrc = 0.
* lv_check = 'X'.
ENDIF.
‎2013 Dec 20 7:20 AM
Hi,
you could also check the scot converter configuration --> note OSS 762670
regards
Fred
‎2013 Dec 20 7:49 AM
‎2013 Dec 20 8:37 AM
Trans. SCOT
menu -- Settings -> Device type for format conversion
if the prod and the dev are not customized in the same way that could have impact of the output of the mail
regards
fred
‎2013 Dec 20 8:38 AM
hi Deepak
when you create the packing list, do you caculate the num of the content?like this
it_pack_list-body_start = 1.
describe table i_contents_text lines it_pack_list-body_num. "the body_num will decide how many row in your content.
regards,
Archer