CONVERSION OF CHAR STRINGS TO HEXADECIMALS AND VICE VERSA

Question: Hello all sapfans,

I need to convert a character string into hexadecimal and then back to character. I have tried with statements "WRITE TO", "MOVE" and "=" as follows but none of them worked as I can't convert the hexadecimal string back to a character one:

DATA:
v_typex(50) TYPE x.

PARAMETERS:
p_text(50) TYPE c.

WRITE p_text TO v_typex.

WRITE v_typex TO p_text.

MOVE v_typex TO p_text.


p_text = v_typex.


Please HELP!!

Answer:
CAPS LOCK is not allowed, read basic rules.
_________________
SapFans Moderator
NetWeaver ‘04–SAP Web AS for ORACLE certified

Search: /forums/search.php
SAP Notes: http://service.sap.com/notes
SAP Help: http://help.sap.com
Basic Rules: /forums/viewtopic.php?t=222759
Copyright ?2007 - 2008 www.jt77.com