Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Data transfer to application server

Former Member
0 Likes
786

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
563

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

3 REPLIES 3
Read only

Former Member
0 Likes
563

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

Read only

Former Member
0 Likes
564

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

Read only

Former Member
0 Likes
563

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.