10-15-2008 8:17 PM
Hi,
Is there any SAP defined Fm to convert hexadecimal value to Strting.
I tried this . It didn't work for me.
AIN_EPC_HEX_TO_CHAR
I will give max points.
10-15-2008 8:19 PM
10-15-2008 8:38 PM
10-15-2008 8:21 PM
Hi,
Try FM STPU1_HEX_TO_CHAR. Alternatively you can try moving the hex value to a string variable.
thanks,
Senthil
10-15-2008 8:45 PM
I tried this.
The values are same
HEX_STRING 00310031003000300030003000300030003000300030003000300034003000300000006F002000300030003000300030003000300030
Export parameters Value
CHAR_STRING 00310031003000300030003000300030003000300030003000300034003000300000006F002000300030003000300030003000300030
10-15-2008 8:51 PM
I tried HR_RU_CONVERT_HEX_TO_STRING - the o/p is wrong
Import parameters Value
XSTRING 0031003100300030003000300030003000300030003000300030003400300030000000
Export parameters Value
CSTRING #1#1#0#0#0#0#0#0#0#0#0#0#0#4#0#0###o# #0#0#0#0#0#0#0#0
I tried STPU1_HEX_TO_CHAR -- the o/p value is same as i/p.
Import parameters Value
HEX_STRING 00310031003000300030003000300030003000300030003000300034003000300000006F002000300030003000300030003000300030
Export parameters Value
CHAR_STRING 00310031003000300030003000300030003000300030003000300034003000300000006F002000300030003000300030003000300030
10-15-2008 9:21 PM
Hi,
Check whether this FM Solves your purpose.
NLS_STRING_CONVERT_TO_SYS
Thanks,
Senthil
10-15-2008 9:11 PM
10-15-2008 9:24 PM
10-15-2008 9:58 PM
None of this worked for me. Few FM I did not find it. Any one has code to covert it.
10-15-2008 10:16 PM
To convert XSTRING to STRING I am using this one and works fine:
DATA: xstr TYPE xstring VALUE '20', "as an example for space character
str TYPE string.
CALL FUNCTION 'HR_KR_XSTRING_TO_STRING'
EXPORTING
in_xstring = xsep
IMPORTING
out_string = sep.