06-04-2009 2:16 AM
Because in different kind of systems, the ASCII code is represent by different ways,
for example, in single system, it is represented by '08', while on a unicode system, it is represented by '0008'.
How to do with this case?
Best regards,
Blake
06-04-2009 7:35 PM
Blake,
Please try this:
DATA : d1 TYPE char1 VALUE 'A'.
DATA : d2 TYPE i.
FIELD-SYMBOLS : <fs> TYPE x.
ASSIGN d1 TO <fs> CASTING.
MOVE <fs> TO d2.
WRITE d2.
Regards
Sabu
06-04-2009 7:35 PM
Blake,
Please try this:
DATA : d1 TYPE char1 VALUE 'A'.
DATA : d2 TYPE i.
FIELD-SYMBOLS : <fs> TYPE x.
ASSIGN d1 TO <fs> CASTING.
MOVE <fs> TO d2.
WRITE d2.
Regards
Sabu
06-04-2009 8:51 PM
Hi ,
check class CL_ABAP_CHAR_UTILITIES in that chcek attributes in that the first two represents
Unicode and what it is replaced..
and also check class CL_ABAP_CONV_UC_NUMBER
Prabhu