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

Regarding string operations and value alignment below heading

Former Member
0 Likes
595

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
568

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

4 REPLIES 4
Read only

Former Member
0 Likes
569

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

Read only

0 Likes
568

This is to be send through mail and not to be displayed on screen.so suggested solution isl not applicable.

Read only

Former Member
0 Likes
568

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

Read only

0 Likes
568

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.