2007 Jan 22 9:46 PM
Hi all. I'm trying to use FM <b>STPU1_HEX_TO_CHAR</b> to convert a hexadecimal value (0B, or 11) to a character value.
This FM seems to be doing NOTHING for me! I've passed it every combination of 0B or 000B that I can think of. It returns in the CHAR field exactly what I passed it in the HEX field.
Has anyone used this FM with any luck?
2007 Jan 22 9:54 PM
Hello,
try this exp if anyinfo plz buzz me .
data:
_c type c,
_i type i,
_l type i,
a type I,
_o type i,
t1_ type c,
a1 type c.
field-symbols : <n> type x.
field-symbols : <pn> type c.
field-symbols : <dn1> type x.
data : rn type i.
data : rn1(4) type c.
data : n type c.
describe field P_I_UPLOAD type _c.
if _c eq 'u'.
l = strlen( PI_UPLOAD ).
_i = _l div 2.
do _l times.
a = sy-index - 1.
a1 = P_I_UPLOAD+a(1).
assign a1 to <n> casting.
move <n> to rn.
move <pn> to rn1.
*if rn1+0(1) EQ '#'.
n = rn1+3(1).
A1 = n.
P_I_UPLOAD+a(1) = A1.
enddo.
endif.
Vasanth
Hi all. I'm trying to use FM <b>STPU1_HEX_TO_CHAR</b> to convert a hexadecimal value (0B, or 11) to a character value.
This FM seems to be doing NOTHING for me! I've passed it every combination of 0B or 000B that I can think of. It returns in the CHAR field exactly what I passed it in the HEX field.
Has anyone used this FM with any luck?
2007 Jan 22 9:54 PM
Hello,
try this exp if anyinfo plz buzz me .
data:
_c type c,
_i type i,
_l type i,
a type I,
_o type i,
t1_ type c,
a1 type c.
field-symbols : <n> type x.
field-symbols : <pn> type c.
field-symbols : <dn1> type x.
data : rn type i.
data : rn1(4) type c.
data : n type c.
describe field P_I_UPLOAD type _c.
if _c eq 'u'.
l = strlen( PI_UPLOAD ).
_i = _l div 2.
do _l times.
a = sy-index - 1.
a1 = P_I_UPLOAD+a(1).
assign a1 to <n> casting.
move <n> to rn.
move <pn> to rn1.
*if rn1+0(1) EQ '#'.
n = rn1+3(1).
A1 = n.
P_I_UPLOAD+a(1) = A1.
enddo.
endif.
Vasanth
2007 Jan 22 9:57 PM
Hi,
Please check this FM.
NLS_STRING_CONVERT_TO_SYS ( Hex to Char)
NLS_STRING_CONVERT_FROM_SYS (Char to Hex)
Regards,
Ferry Lianto
2007 Jan 22 10:20 PM
Hi Ferry,
I'm passing this FM 000B for the value of 11 but it seems to want 3131 for the value of 11.
Can you shed any light on that?
2007 Jan 22 10:26 PM
I think it I'm not passing the right value in TO_FE. Any idea what you can pass here besides MS?
2007 Jan 22 10:38 PM
To any following this thread. I'm using the FM NLS_STRING_CONVERT_FROM_SYS to convert 000B. The system returns '##' as the result.
Any idea why I get double pounds instead of the correct value? (11).
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |