We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

RE: [sap-dev] Unicode: Convert HEX Via INT to Char?

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Reply from MASchumacher on Oct 20 at 11:29 AM
Depending on your release you can try the class CL_ABAP_CHAR_UTILITIES

CONSTANTS:
lc_tab TYPE c VALUE cl_abap_char_utilities=>horizontal_tab,
lc_nwln TYPE c VALUE cl_abap_char_utilities=>newline,
lc_cret TYPE c VALUE cl_abap_char_utilities=>cr_lf.

---------------Original Message---------------
From: Monika
Sent: Tuesday, October 20, 2015 3:34 AM
Subject: Unicode: Convert HEX Via INT to Char?

Hi Experts,
I have to check our Z-Programs whether they have set the Unicode-flag and change them if necessary.
One of the programs changes Special character hex 0c.

Here's the coding of non-Unicode program:

DATA: gv_xstring TYPE x.
DATA: ff_cstring TYPE c.
DATA: BEGIN OF gv_struc,
gv_struc_val TYPE counter1,
END OF gv_struc.

gv_xstring = '0C'.
gv_struc-gv_struc_val = gv_xstring.
ff_cstring = gv_struc.

Debugging:
Variable: Value hex-value
GV_XSTRING 0C 0C
GV_STRUC-GV_STRUC_VAL 12 0C
FF_CSTRING # 0C

With "Unicode active" it is not allowed to make ff_cstring = gv_struc.
How can I change the coding so that the hex-value remains the same, 0C?
In all variants I've tried the hex value changes, even if the value remains #
Can you please help me?

Thanks so much,
Monika

 
Reply to this email to post your response.
 
__.____._
Manage Settings | Unsubscribe | Create FAQ | Send Feedback
  
Copyright © 2015 Ziff Davis, LLC. and message author.
Ziff Davis, LLC. 28 E 28th Street New York, NY 10016
MASchumacher  

achievements
 
Mark as helpful
View this online
Ask a new question
 
In the Spotlight
Have a technical question? Need to find IT solutions? Ask your peers in the Toolbox for IT community.

_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language