‎2005 Nov 11 10:42 PM
Hi,
I want to concatenate two strings. But I want those two to print in two seperate lines instead of seperated by space. Is there any way to do it.
Thanks
Veni.
‎2005 Nov 11 10:47 PM
‎2005 Nov 11 10:47 PM
‎2005 Nov 11 10:59 PM
Are you trying to do something like this?
report zrich_0001 .
data:
str1 type string,
str2 type string,
str3(1000) type c.
data: out_lines type table of string with header line.
str1 = 'Hi there. How are you?'.
str2 = 'Why am I working today, its my day off.'.
concatenate str1 str2 into str3 separated by space.
call function 'RKD_WORD_WRAP'
exporting
textline = str3
outputlen = 35
tables
out_lines = out_lines
exceptions
outputlen_too_large = 1
others = 2.
loop at out_lines.
write:/ out_lines.
endloop.
Regards,
Rich Heilman
‎2005 Nov 11 11:01 PM
Hi Rich,
I have a table called i_attach.
*Itab to hold data to be sent as email attachment
i_attach TYPE STANDARD TABLE OF solisti1
And I want to add three strings to this table. These 3 strings should print in seperate lines. How should I do it.
Thanks
Veni.
‎2005 Nov 11 11:06 PM
‎2005 Nov 11 11:10 PM
Oops, I noticed that you don't have a header line for you table, then try this.
data: wa_attach type SOLISTI1.
wa_attach-line = 'Hey, how are you?'.
append wa_attach to i_attach.
wa_attach-line = 'Im fine'.
append wa_attach to i_attach.
wa_attach-line = 'Not sure why Im working today, though'.
append wa_attach to i_attach.Regards,
Rich Heilman
‎2005 Nov 11 11:20 PM
‎2010 Feb 02 9:49 AM
Hello Rich,
I think there's somethig wrong:
why use
str3(1000) type c ?
It will be trunc by system at 250 digit (more or less) !!!!
There's a way to use something at 1000 digit ?
tks.