Application Development 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: 

Message to be displayed in next line.

former_member1716
Active Contributor
0 Kudos

Hello experts,

I have the following requirement.

Consider the below line of code,

   CONCATENATE text-002
              lwa_table-id
              text-003
              lwa_table-Name

   INTO wa_body_msg SEPARATED BY space.

Now i am displaying the message in wa_body_msg as a body of a mail, and send the mail using FM   "SO_NEW_DOCUMENT_ATT_SEND_API1"

Now my problem is when i see the body in mail i see the entire content in wa_body_msg in a single line.

What i want is I want the (text-002 and lwa_table-id) to display in first line and  (text-003 and lwa_table-Name) to display in next line.

Can you please help me in achievig this requirement.

Regards,

Satish

1 REPLY 1

Former Member
0 Kudos

Well you are filling a table for the body (solist*). So the same way you create a concatenated string, create two and append them to the table separatedly.

   CONCATENATE text-002
              lwa_table-id
   INTO wa_body_msg1 SEPARATED BY space.



   CONCATENATE text-003
              lwa_table-Name

   INTO wa_body_msg2 SEPARATED BY space.             


append wa_body_msg1 to lt_body.

append wa_body_msg2 to lt_body.


isn't this enough?