‎2006 Aug 04 12:01 PM
hello frnds,
I hv to concatenate a character and hexadecimal into a character type, and while concatenate it is throwing the error that only type C D T I N can be concatenate.
Plz help me how to do this
Thanks in advance,
Navneet
‎2006 Aug 04 12:03 PM
HI,
if you are in SAP UNICODE enabled program, you cant use hexa decimal values.
i guess, you are using hexa decimal values as O9,0D ETc.. if so you can replace them with the class CL_ABAP_CHAR_UTILITIES.
this will have the alternatives to that.
regards
srikanth
‎2006 Aug 04 12:02 PM
Hi Navneet,
U have to convert that hexadecimal into character and then u can concatenate..
DATA:
myx TYPE X VALUE '80',
myt(20) TYPE C.
data myz type char10.
myz = myx.
concatenate 'Hallo' myz 'World'
into myt.
write myt.
<b>Can u send the code u r using ...</b>
Regards,
Sridhar
‎2006 Aug 04 12:03 PM
HI,
if you are in SAP UNICODE enabled program, you cant use hexa decimal values.
i guess, you are using hexa decimal values as O9,0D ETc.. if so you can replace them with the class CL_ABAP_CHAR_UTILITIES.
this will have the alternatives to that.
regards
srikanth
‎2006 Aug 04 12:05 PM
No Shridhar it is not possible b'coz I am using that as a line feeder and in hexadecimal it shld having 4 length but i am passing it to a character type of 2 length
‎2006 Aug 04 12:13 PM
data : v_hex1 type x value 'OD',
v_hex2 type x value '09'.
this way we use to define the hexadecimal values, i am not getting where you defined with length 4 ?
regards
srikanth