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

less fields in text file on application server

Former Member
0 Likes
1,006

Hi all,

I have created one report which downloads text file on application server, but when i am seeing output in text format on application server i am getting less number of fields . So i want to know whether there is restriction when we download files in text format on application server?? ...and if there is, can you please tell me how to extend the length so that i can see all my data??

Thanks.

Hi all,

I have created one report which downloads text file on application server, but when i am seeing output in text format on application server i am getting less number of fields . So i want to know whether there is restriction when we download files in text format on application server?? ...and if there is, can you please tell me how to extend the length so that i can see all my data??

Thanks.

5 REPLIES 5
Read only

Former Member
0 Likes
801

Hi!

Could you share your code with us?

When I faced a similar problem, I always passed a wrong internal table to the download part...

You might check out the table names as well.

Regards

Tamá

Read only

0 Likes
801

Hi,

My code :

DATA: W_LOGPATH(100) TYPE C VALUE 'zv206d.txt'.

DATA : BEGIN OF IT_OUTTAB OCCURS 0,

LINE(5000) TYPE C,

END OF IT_OUTTAB.

form download.

loop at it_display.

it_outtab = it_display.

append it_outtab.

endloop.

OPEN DATASET W_LOGPATH FOR OUTPUT IN TEXT MODE.

IF SY-SUBRC EQ 0.

LOOP AT IT_OUTTAB.

TRANSFER IT_OUTTAB-LINE TO W_LOGPATH.

ENDLOOP.

ELSE.

WRITE:/ 'Error in opening the Logical File Path'.

LEAVE PROGRAM.

ENDIF.

CLOSE DATASET W_LOGPATH.

IF IT_OUTTAB[] IS INITIAL.

WRITE:/ 'No data found for the sel.criteria'.

ELSE.

WRITE:/ 'Transaction executed successfully'.

ENDIF.

REFRESH IT_OUTTAB.

endform.

    • it_display is an internal table which contains all the data .

Read only

Former Member
0 Likes
801

Hello,

If you are viewing the file in AL11 there is a display limitation of 255 characters even though the whole data is written to the file. To confirm this use CG3Y and download the file to presentation server and check if the data is still missing

Vikranth

Read only

0 Likes
801

Hi Vikranth,

Actually our requirement is quite different, we are trying to access that whole text file on application server and displaying it on our local intranet. So is there any possible way so that i can view that whole file through AL11 only?

Thanks.

Read only

0 Likes
801

Hello,

If the line length extends 255 characters i am afraid its not possible to display the whole content in AL11. Why dont you get the AL11 data into a internal table use READ DATASET and write it to display?

Vikranth