Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Query regarding function module

Former Member
0 Likes
536

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
513

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

4 REPLIES 4
Read only

sridharreddy_kondam
Active Contributor
0 Likes
513

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

Read only

Former Member
0 Likes
514

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

Read only

Former Member
0 Likes
513

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

Read only

0 Likes
513

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