2008 Apr 23 10:20 AM
hi guyz,
this is the code:
DATA: lv_wa TYPE solisti1,
lv_output(150) TYPE c.
CONCATENATE
lv_wa-line
into lv_output
SEPARATED BY '|'.
error : "CHARLIKE-FIELD" EXPECTED AFTER "LV_WA-LINE".
plz advise..
regds
2008 Apr 23 10:22 AM
Hi,
Concatenate can be used only for two more values of character data type. Thats why you got the error. Just make it the code as like follows.
DATA: lv_wa TYPE solisti1,
lv_output(150) TYPE c.
CONCATENATE lv_wa-line ' ' into lv_output SEPARATED BY '|'.
Regards,
Sankar.
Hi,
Concatenate can be used only for two more values of character data type. Thats why you got the error. Just make it the code as like follows.
DATA: lv_wa TYPE solisti1,
lv_output(150) TYPE c.
CONCATENATE lv_wa-line ' ' into lv_output SEPARATED BY '|'.
Regards,
Sankar.
2008 Apr 23 10:22 AM
hi
you must use minimum of two fields to concatenate like dobj1 and dobj2
CONCATENATE {dobj1 dobj2 ...}|{LINES OF itab}
INTO result
[IN {BYTE|CHARACTER} MODE]
[SEPARATED BY sep]
[RESPECTING BLANKS].
regards
prasanth
2008 Apr 23 10:22 AM
Hi,
Concatenate can be used only for two more values of character data type. Thats why you got the error. Just make it the code as like follows.
DATA: lv_wa TYPE solisti1,
lv_output(150) TYPE c.
CONCATENATE lv_wa-line ' ' into lv_output SEPARATED BY '|'.
Regards,
Sankar.
2008 Apr 23 10:22 AM
U should have atleast 2 variables to concatenate ..
CONCATENATE
lv_wa-line lv_wa-line1
into lv_output
SEPARATED BY '|'.
2008 Apr 23 10:22 AM
2008 Apr 23 10:24 AM
hi Sudheer,
You have to give at least two fields for concatenate.
I guess you are concatenation only one filed in concatenate.
If you dont have one, you can use it this way.
CONCATENATE
lv_wa-line
' '
into lv_output
SEPARATED BY '|'.
Hope this helps you.
Thanks,
Arun
2008 Apr 23 10:25 AM
hi,
The syntax for CONCATENATE is
CONCATENATE SOURCe1 SOURCE2 into TARGET.
You are using only one source .
Please check and let us know.
Reward points if helpful.
Thanks and regards.
2008 Apr 23 10:29 AM
DATA: lv_wa TYPE solisti1,
lv_output(150) TYPE c.
Concatenate lv_wa into iv_output seperated by '|'.
reward if its useful
2008 Apr 23 10:31 AM
Hi Sudheer,
Check this one.
Regards,
Venkat.O
DATA: lv_wa TYPE solisti1,
lv_output(150) TYPE c.
"CONCATENATE lv_wa-line INTO lv_output SEPARATED BY '|'.
1
" CONCATENATE commnad is used to concatenate to character strings. you have to specify another char variable.
2
"Above statement is not advisable because Length of lv_wa-line is greater
"than lv_output.
3.
"try this way
CONCATENATE lv_output ',' INTO lv_wa SEPARATED BY '|'.
2008 Apr 23 10:34 AM
Hi,
you need to concatenate atleast two fields,it will not work for a single value.
Check this
DATA: lv_wa TYPE solisti1,
lv_output(150) TYPE c.
lv_wa-line = 'suresh raja'.
CONCATENATE
lv_wa-line 'suresh'
into lv_output
SEPARATED BY '|'.
write: / lv_output.
output: suresh raja | suresh
Regards,
Raj.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |