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

Tab carachter at the end of line

Hello!

I am trying to upload a text file separated by Tab into SAP by an Abap program, but I have the following problem:

- Code:

constants: l_tab type x value '09'.

split vl_line_file at

l_tab

into

vl_type_h

vl_cod_fla.

- Problem: in the vl_cod_fla, I always get ## after data.

I have tried to change l_tab to cl_abap_char_utilities=>horizontal_tab but the problem persists.

Any suggestion would be appreciate,

Thanks!

Michel Khouri

Mars, Inc

Add comment
10|10000 characters needed characters exceeded

2 Answers

  • Best Answer
    Posted on Aug 01, 2006 at 06:07 PM

    These may be carriage returns. This may get rid of them for you.

    data: another_field(10) type c.
    
    split vl_cod_fla at  cl_abap_char_utilities=>cr_lf into vl_cod_fla another_Field.

    Regards,

    Rich Heilman

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 01, 2006 at 06:05 PM

    HI,

    IF U R USING GUI_UPLOAD...

    DID U GIVE HAS_FIELD_SEPARATOR = 'X'.

    Add comment
    10|10000 characters needed characters exceeded