2006 Sep 13 5:17 PM
I have a workarea with many fields.
I need to concatenate '|' (pipe symbole) as a seperator and put those all the fields into work area (which is of 300 chars) ?
How to do this ?
I have a workarea with many fields.
I need to concatenate '|' (pipe symbole) as a seperator and put those all the fields into work area (which is of 300 chars) ?
How to do this ?
2006 Sep 13 5:20 PM
hi,
You need use
concatenate field1 field2 field3... fieldn into target separated by space.
Hope this helps.
2006 Sep 13 5:23 PM
There are so many fields . thats why m asking ...is there any way to achieve this
2006 Sep 13 5:40 PM
Clear lstr.
DO.
ASSIGN COMPONENT SY-INDEX OF STRUCTURE F TO <F>.
IF SY-SUBRC <> 0. EXIT.
ELSE.
if sy-index = 1.
lstr = <F>.
else.
concatenate lstr <F> into lstr separated by '|'.
endif.
ENDIF.
ENDDO.
Here F is your internal table and <F> is the field-symbol...while the final string is lstr
<b>It the problem has been resolved please close the thread and assign points for helpful answers.</b>
Message was edited by: Anurag Bankley
Message was edited by: Anurag Bankley
2006 Sep 15 2:26 PM
hi,
Do this way ..
<b>concatenate f1 f2 f3 into f4 separated by '|'.</b>
Regards,
Santosh
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |