Skip to Content

File size in MB

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 10, 2008 at 07:09 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.