Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I use tab and enter characters in Unicode programs

Former Member
0 Kudos

Hi,

We are enforcing unicode hence I m not able to concatenate hex type variable for tab and enter characters to string type variable. Which is a big problem for me. For example previously. The following code was working, but now it doesnt

CONSTANTS: g_con_cret TYPE x VALUE '0D', "OK for non Unicode

g_con_tab TYPE x VALUE '09'. "OK for non Unicode

CONCATENATE 'Sold To' 'PO Number' 'Order No' 'Part No' 'Qty' 'Prms Dte' 'Order Date'

INTO g_i_attach SEPARATED BY g_con_tab.

Is there an equivalent of tab and enter characters in char or string data types which I can use?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Check the class: cl_abap_char_utilities.

DATA: ws_c_nline TYPE c VALUE cl_abap_char_utilities=>cr_lf.

You have different attributes:

BYTE_ORDER_MARK_LITTLE

BYTE_ORDER_MARK_BIG

BYTE_ORDER_MARK_UTF8

CHARSIZE

ENDIAN

MINCHAR

MAXCHAR

HORIZONTAL_TAB

VERTICAL_TAB

NEWLINE

CR_LF

FORM_FEED

BACKSPACE

SPACE_STR

SPACE_STR_LANGU

Regards,

Subramanian

1 REPLY 1

Former Member
0 Kudos

Hi,

Check the class: cl_abap_char_utilities.

DATA: ws_c_nline TYPE c VALUE cl_abap_char_utilities=>cr_lf.

You have different attributes:

BYTE_ORDER_MARK_LITTLE

BYTE_ORDER_MARK_BIG

BYTE_ORDER_MARK_UTF8

CHARSIZE

ENDIAN

MINCHAR

MAXCHAR

HORIZONTAL_TAB

VERTICAL_TAB

NEWLINE

CR_LF

FORM_FEED

BACKSPACE

SPACE_STR

SPACE_STR_LANGU

Regards,

Subramanian