2012 Jun 16 7:20 AM
Hi All,
I am getting text in ITAB using READ_TEXT FM in the below format.
Table - lt_lines[]
LINE TDFORMAT TDLINE
1 * Hello
2 * World
I want to pass the text into an variable like below and finally pass it to final display for ALV.
Hello World.
Please suggest.
Thanks,
VB
Hi All,
I am getting text in ITAB using READ_TEXT FM in the below format.
Table - lt_lines[]
LINE TDFORMAT TDLINE
1 * Hello
2 * World
I want to pass the text into an variable like below and finally pass it to final display for ALV.
Hello World.
Please suggest.
Thanks,
VB
2012 Jun 16 7:51 AM
Hi vikas ,
U can simply use Concatenate to concatenate the two text and pass it into a variable.
whats the big deal here ?
regards ,
Yogendra Bhaskar
2012 Jun 16 9:17 AM
HI,
data : char1(10) type c value 'Hello'.
data : char2(10) type c value 'World'.
data : char(25) type c.
concatenate char1 char2 into char separated by space.
Pass Veriable 'CHAR' to ALV through internal table you pass to alv.
You will get the desired output.
Regards,
Ravi Singh
2012 Jun 16 11:29 AM
Hi vikas,
TDformat * means new paragraph (including line break). If you know, where a new line is waned and where not, you can use concatenate as suggested.
Regards,
Clemens
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |