‎2009 Mar 22 12:42 PM
Hi all,
I have a requirement of sending the data in the form of table in mail thought me program.
Am sending the mail content form int table.
The issue is the table getting displayed like this(I used internal table of strings for this)-
Name | Old value | New value -->Heading string
_________________________________________________________________________
Description | Material for production of tractors | Material for tractors -->value string1
weight | 123 | 124 -->value string2
Value 124 should have been well below New value.
In short am not able to arrange the values (Because of variable length of values)well below table field so that i can distinguish various values in same row.Please guide me for this issue .
Thank you,
Edited by: sanu debu on Mar 22, 2009 1:43 PM
‎2009 Mar 22 12:58 PM
hi,
use UNDER option.
like
write:
/ 5 text-001(give text ele as carrid)
10 text-002(give as connid)
loop at itab into fs_itab.
write: / fs_itab-carrid under text-001,
fs_itab-connid under text-002.
endloop.
Regards,
jaya
‎2009 Mar 22 12:58 PM
hi,
use UNDER option.
like
write:
/ 5 text-001(give text ele as carrid)
10 text-002(give as connid)
loop at itab into fs_itab.
write: / fs_itab-carrid under text-001,
fs_itab-connid under text-002.
endloop.
Regards,
jaya
‎2009 Mar 22 1:13 PM
This is to be send through mail and not to be displayed on screen.so suggested solution isl not applicable.
‎2009 Mar 22 1:54 PM
Fix the lenth of each column by declaring it as character string. Concatenate each column values respecting spaces and append the same in your internal table before passing to the function module for sending mail.
Regards,
Guru
‎2009 Mar 22 2:03 PM
This doesnt work as the spaces will be given from last character of each value in first column and not from first character.And each value in first column doesnt has same length.
Thank you.