Application Development 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: 

File size in MB

Former Member
0 Kudos

Hi Friends,

My requirement is to download the internal table value into

a notepad. For eg. Internal table my contain 1000 records. So initially before downloading i need to determine the size of the file which i am going to download.Means by calculating the no. of characters i need to determine what could be the size of my file.

Based on that if 1000 records make the size of file as 10MB. i need to break the file at every 1MB and make 10 files

and download it to desktop.

Please help me in this...

Thanks in Advance..

Srikanth

1 REPLY 1

Former Member
0 Kudos

Hi

You can try the following approach.

First you can download all the records to one file and than using the following

CL_GUI_FRONTEND_SERVICES => FILE_GET_SIZE

You can find the size, when you have size value.

You can do division as per your requirement and loop the internal table and download accordingly

Regards

Madhan