How to get Excel File size

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

Post Reply
Gladiator
Posts: 797
Joined: Wed Dec 18, 2002 5:55 am
Location: Hyderabad, India

How to get Excel File size

Post by Gladiator » Wed Mar 10, 2010 9:31 pm

Hi Friends,

I have a requirement where an Excel file needs to be attached. However, we should first check for the size of the file to decide whether to upload or not. We have restriction for max 2MB.

Is there any FM to know the size of the Excel file that we're going to upload?

Please advise.

Best Regards,
Gladiator.

VLozano
Posts: 5142
Joined: Mon Sep 13, 2004 8:17 am
Location: Idiocity
Contact:

Re: How to get Excel File size

Post by VLozano » Thu Mar 11, 2010 12:37 am

Check method FILE_GET_SIZE of class CL_GUI_FRONTEND_SERVICES
Tuly Idiots
Because we know we are part of the problem

Gladiator
Posts: 797
Joined: Wed Dec 18, 2002 5:55 am
Location: Hyderabad, India

Re: How to get Excel File size

Post by Gladiator » Thu Mar 11, 2010 1:29 am

VLozano...Thanks much! :-)
Gladiator.

Post Reply