smartform long text
I am facing a small problem in displaying the long text in smartform.
I used the following code
loop at g_line.
concatenate str g_line-tdline into str separated by CL_ABAP_CHAR_UTILITIES=>NEWLINE.
shift str left deleting leading '#'.
the output i am getting is like this
#this is material long text
1#this is more info on line
2#and more details here.
But the way output should look as
this is material long text1
this is more info on line2
and more details here.
can any suggest