‎2006 Dec 11 5:31 AM
hello Friends,
I have to concatenate Four variables A B C and D.In this four variables three of them are Characters.The last one is currency field.I am not able to concatenate this field.for this I declared one variable in character fomat and i moved this currency variable into this character variable.but i am not able to get that variable.
Please give me solution for my problem.
Thanks in advance.
Regards,
Ashok.
‎2006 Dec 11 5:35 AM
CONCATENATE is only at FIELD level for CHAR type fields and not records.
ur approch is write.
go to debugger mode and try to check what is the problem. i think there is any silly mistake....gud luck.
‎2006 Dec 11 5:41 AM
Hi Ashok
Please check this example:
data: fld1(10) type c value 'ABC',
fld2(10) type c value 'DEF',
fld3 type wrbtr value '123.45'.
data: str type string.
move fld3 to str.
concatenate fld1 fld2 str into str separated by space.
write:/ str.Kind Regards
Eswar
‎2006 Dec 11 5:46 AM
hi ashok,
concatenate statement is to merge the charecter fields...there is nothing with regards to the type of the field...i do think there must be some prob while using the currrency field...hope u can get it in watch mode..
‎2006 Dec 11 5:53 AM
hi ashok,
check the following eg code.
data : var1 type c value 'h',
var2 type c value 'i',
var3 like vbrk-netwr ,
var5(20) type c,
var4(30) type c.
var3 = '20.0'.
var5 = var3.
concatenate var1 var2 var5 into var4.
write var4.
try using above code its working.
regards,
Ravi Kumar Gunda.
‎2006 Dec 11 6:02 AM
hi
good
you cant concatenate character with curreency fiels, so what you have done is correct but after storing that currencly field in a character datatype you can do the concatenate .check the length of the character field in which you r storing the value and try again.
thanks
mrutyun^
‎2006 Dec 11 7:08 AM
Hi
The currency value has to move one string initially and concatenate other values.
It will work
‎2006 Dec 11 7:31 AM
hi ashok,
I think this may overcome your problem. If you need you can directly initiate the values or else you can give like this.
parameters: str1 type field,
str2 type field ,
str3 type field .
data: str type field.
concatenate str1 str2 str3 into str separated by space.
write:/ str.
with regards,
magesh.