07-08-2008 10:53 PM
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?
07-08-2008 10:57 PM
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
07-08-2008 10:57 PM
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