Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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.

Tags:
Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question