2008 Feb 12 2:45 PM
hi folks ,
how to concatenate fields in internaltable into string if u have different field types like char,num etc can please clear me with example.
2008 Feb 12 2:48 PM
Hi,
You can do as below:
Loop at itab.
concatenate itab-field1 itab-field2 into itab2-text separated by space.
append itab2.
clear itab2.
endloop.
Now you have concatenated fields into one string that is stored in itab2.
Thanks,
Sriram Ponna.
Hi,
You can do as below:
Loop at itab.
concatenate itab-field1 itab-field2 into itab2-text separated by space.
append itab2.
clear itab2.
endloop.
Now you have concatenated fields into one string that is stored in itab2.
Thanks,
Sriram Ponna.
2008 Feb 12 2:48 PM
Hi,
You can do as below:
Loop at itab.
concatenate itab-field1 itab-field2 into itab2-text separated by space.
append itab2.
clear itab2.
endloop.
Now you have concatenated fields into one string that is stored in itab2.
Thanks,
Sriram Ponna.
2008 Feb 12 2:53 PM
If U have Character , Numc .. there is no problem ..
variables of type I cannot be concatenated ... It has to be
moved to a character variable and concatenated.
If your internal table has ...
Itab-f1 , itab-f2 , itab-f3 ...
If itab-f3 is of type i ..
move itab-f3 to v_f3.
concatenate Itab-f1 itab-f2 v_f3... into v_string
separated by <your wish>
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |