2009 Dec 08 10:34 AM
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.
2009 Dec 08 10:41 AM
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á
2009 Dec 08 10:46 AM
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 .
2009 Dec 08 10:47 AM
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
2009 Dec 08 11:04 AM
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.
2009 Dec 08 11:07 AM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |