‎2008 May 28 2:05 PM
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
‎2008 May 28 2:10 PM
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
‎2008 May 28 2:10 PM
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
‎2008 May 29 11:52 AM