Application Development and Automation 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: 
Read only

Line Break Statement

Former Member
0 Likes
774

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

6 REPLIES 6
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
741

Hi Deepak

How are you sending the email..Can you please post that sample code also

Nabheet

Read only

0 Likes
741

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.

Read only

FredericGirod
Active Contributor
0 Likes
741

Hi,

you could also check the scot converter configuration --> note OSS 762670

regards

Fred

Read only

0 Likes
741

Hi,

This document is not released yet...

Regards,

Deepak kansal.

Read only

0 Likes
741

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

Read only

Former Member
0 Likes
741

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