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

HEX to CHAR conversion

Former Member
0 Likes
2,029

Does anyone have any ideas as to why I receive a pound symbol as the result on a HEX to CHAR conversion?

Does anyone have any ideas as to why I receive a pound symbol as the result on a HEX to CHAR conversion?

5 REPLIES 5
Read only

Former Member
0 Likes
823

hi Fan,

Try with FM <b>STPU1_HEX_TO_CHAR</b>

Regards,

Santosh

Read only

0 Likes
823

That FM gives me '##' as a result.

Read only

0 Likes
823

hi Fan,

Check out this thread ...

if you are unable to open the thread remove the boxes at the end of the url and press go

Regards,

Santosh

Read only

Former Member
0 Likes
823
REPORT ychatest LINE-COUNT 50.


DATA : line(16) TYPE x VALUE '000102030405060708090A0B0C0D0E0F',
       v_char(50).

FIELD-SYMBOLS : <hexa> TYPE x,
                <char> TYPE c .

ASSIGN  line TO <hexa> CASTING TYPE x.
ASSIGN <hexa> TO <char> CASTING TYPE c.
v_char = <char>.

WRITE : v_char.
Read only

0 Likes
823

Chandrasekhar Jagarlamudi, you code gives me: v_char = &#256;&#770;&#1284;&#1798;&#2312;&#2826;&#3340;&#3854;

Not correct.

Message was edited by:

ColtsFan