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

Former Member
0 Kudos

Hello Friends,

How to get the file size or length of a particular table or file i.e. number of bytes.

my requirement is to get the lengh of the file i am sending to application server.

because i need to send a check file along with the data to application server which will contain the name of the file and number of bytes of that particualar file

4 REPLIES 4

Former Member
0 Kudos

CALL METHOD cl_gui_frontend_services=>file_get_size
  EXPORTING
    file_name            = str
   IMPORTING
     file_size            = size.
 
CALL METHOD  cl_gui_cfw=>flush( ).
WRITE: / file(50), size.

0 Kudos

hello santosh,

i will be scheduling my report,

and as per my knowledge we can not use GUI's in back groud

correct me if i m wrong

0 Kudos

ya ... you cannot make use of this then ...

0 Kudos

you have any other idea dear