Skip to Content
avatar image
Former Member

Data transfer to application server

Hi,

I am trying to download data from an internal table line by line to application server. My table has 49 columns, I am passing the a single row to a variable of type c length 350 delimited each column data by '|'. But only 253 characters of variable is tranfered to the application server file.

DATA: lf_data(350).

LOOP AT IT_DATA.

DO.

ASSIGN COMPONENT sy-index OF STRUCTURE

it_tab TO <fs>.

IF sy-subrc <> 0.

*- No more component.

EXIT.

ELSEIF <fs> IS ASSIGNED.

CLEAR: gf_len, lf_decln.

DESCRIBE FIELD <fs> LENGTH gf_len

DECIMALS lf_decln.

gf_len = gf_len + lf_decln.

MOVE <fs> TO lf_data+lf_offset(gf_len).

lf_offset = lf_offset + gf_len.

MOVE '|' TO lf_data+lf_offset(1).

lf_offset = lf_offset + 1.

ENDIF.

ENDDO.

IF NOT lf_data IS INITIAL.

*- Moved data to application server.

CATCH SYSTEM-EXCEPTIONS

dataset_too_many_files = 1

dataset_write_error = 2

open_dataset_no_authority = 3.

TRANSFER lf_data TO if_filename LENGTH 350.

ENDCATCH.

ENDLOOP.

When I see the file in AL11, each line is truncated after 253 character.

Please help.

Thanks.

-A.Singh.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 29, 2006 at 07:30 AM

    Hi Amarjit,

    AL11 shows truncated data...

    Try reading the file and displaying it..

    It shall show you complete data...

    Regards,

    Tanveer.

    Please mark helpful answers

    If your query is solved, please close the thread and mark the helpful answers.

    Message was edited by: Tanveer Shaikh

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 29, 2006 at 08:04 AM

    Hi Amarjit,

    AL11 displays only 255 characters in its output .U can download it in ur local machine using CG3Y and verify the data.

    rgds,

    Latheesh.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 29, 2006 at 07:28 AM

    Hi Amarjit,

    AL11 actually is a list output and the base report which is used to display AL11 displays only 255 characters.

    Download the file to the front end and check the contents i think it should download the characters and should not turncate.

    download the file using the tcode CG3Y.

    Cheers

    VJ

    Add comment
    10|10000 characters needed characters exceeded