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

Type X to C

Kinsbrunner
Active Contributor
0 Likes
474

Hi all!

I'm working with Unicode and I need to pass a value from a type C variable to a type X variable.

¿Does anyone knpow how to do this?

Regards,

Alejandro.

Hi all!

I'm working with Unicode and I need to pass a value from a type C variable to a type X variable.

¿Does anyone knpow how to do this?

Regards,

Alejandro.

2 REPLIES 2
Read only

Former Member
0 Likes
459

This seems to work in a Unicode environment:

DATA: f1 TYPE x,
      f2(2) TYPE c VALUE '00'.
f2 = f1.

Rob

Read only

0 Likes
459

I meant C to X.

I found out the FM

CALL FUNCTION 'CHAR_HEX_CONVERSION'

EXPORTING

INPUT = C

IMPORTING

HEXSTRING = X.