Skip to Content
author's profile photo Former Member
Former Member

How can I use tab and enter characters in Unicode programs

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?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 08, 2008 at 09: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.