Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8937

Answered - Download a file larger than 2 to the 31 power

$
0
0

Hello all,

 

We have a process that allows users to save a query file out to the application server in their own directory. We then created a program that presents a pop-up with all of the files in their directory, allowing them to select one  for download to their PC. The application server file is read into an internal table  that is passed to function module GUI_download. This has worked very well for the many years that we have been using this process.

 

Now we have users that are creating such large query files that the SAP function module we are using,  GUI_download, is abending with a numeric data overflow error. The function module  has a variable that is a type integer that is calculated by multiplying the number of lines by the number of characters per line. The integer data type has a limitation of 2 to the 31st power.

 

See the attached screen print of the code line where it abended

 

Is anybody aware of some other process of downloading a file to a PC that does not have this same size limitation, 2,147,483,647?

 

Thanks

Bruce

 

 

Answer:

 

We zipped the file before copying file to presentation server.  But there are still files when zipped that still run into the size limit.


Viewing all articles
Browse latest Browse all 8937

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>