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

Problem in formatting text while sending mail

Former Member
0 Likes
395

Hello Experts,

I want to send a table record through mail using function module SO_NEW_DOCUMENT_SEND_API1. I want the field values to be displayed exactly below the corresponding heading in the mail.

eg: Name PS No Address

abc 123 wsdjwdw

pqrst 345 tjgjjhfgsdff

I'm using the concatenate statement to get all the fields in string and then appending that to an internal table.

How can I get the values aligned with the headings?

Thanks in advance.

Radhika

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
368

Hi,

Use offset values while concatenate the values. Check the below code...

lv_string(18) = 'Material Number'.

lv_stirng+18(6) = 'Plant'.

lv_string+24(12) = 'Company Code'.

Append lv_string to your internal table.

lv_string(18) = internal table-Matnr.

lv_stirng+18(6) = internal table-Werks.

lv_string+24(12) = internal table-Bukrs.

Append lv_string to your internal table.

Rgds,

Bujji

Edited by: Bujji on May 28, 2008 3:10 PM

2 REPLIES 2
Read only

Former Member
0 Likes
369

Hi,

Use offset values while concatenate the values. Check the below code...

lv_string(18) = 'Material Number'.

lv_stirng+18(6) = 'Plant'.

lv_string+24(12) = 'Company Code'.

Append lv_string to your internal table.

lv_string(18) = internal table-Matnr.

lv_stirng+18(6) = internal table-Werks.

lv_string+24(12) = internal table-Bukrs.

Append lv_string to your internal table.

Rgds,

Bujji

Edited by: Bujji on May 28, 2008 3:10 PM

Read only

0 Likes
368

Hi Bujji,

My problem is solved. Thanks a lot !!!