2007 Jul 24 7:18 AM
Hi all ,
Our requirement is to convert internal table to a stirng .
Suppose internal table is like this
-
123
456
789
XXX
-
Each entry in the table shdl have a fixed length in the output . Suppose it is 5 , then the output will be
'123 456 789 XXX '
Is there any ABAP class /FM can handle this ???
Regards
Goutam
Hi all ,
Our requirement is to convert internal table to a stirng .
Suppose internal table is like this
-
123
456
789
XXX
-
Each entry in the table shdl have a fixed length in the output . Suppose it is 5 , then the output will be
'123 456 789 XXX '
Is there any ABAP class /FM can handle this ???
Regards
Goutam
2007 Jul 24 7:22 AM
Hi,
Go on concatenating the strings
loop at itab.
concatenate itab str into str
Endloop.
2007 Jul 24 7:25 AM
Use this code.
data: v_fix type i value 5,
v_index type i.
data: output(2000).
clear: v_index, output.
loop at itab.
output+v_index(v_fix) = itab-fld.
v_index = v_index + v_fix.
endloop.Regards,
Manoj
2007 Jul 24 7:26 AM
loop at itab.
concatenate itab-field to w_string separated by SPACE.
endloop.
If you need a FM, then you can use the above logic to develop a FM of your own.
Regards,
Pavan
2007 Jul 24 7:26 AM
2007 Jul 24 7:26 AM
2008 Jul 21 9:40 PM
2008 Jul 21 11:09 PM
Hi,
You dont need func.module,
CONCATENATE LINES OF itab INTO str separated by space.
Regards,
Subramanian
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |