Application Development and Automation 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: 
Read only

get file file attributes

Former Member
0 Likes
1,648

hi!

i need to get a file attributes like date and time of creation

and use them in sap system

thanks

hi!

i need to get a file attributes like date and time of creation

and use them in sap system

thanks

5 REPLIES 5
Read only

Former Member
0 Likes
834

there is ws function for set file attributes , but i didnt see any function for getting the attributes

yifat

Read only

ssimsekler
Product and Topic Expert
Product and Topic Expert
0 Likes
834

Hi

Check out the class <b>CL_GUI_FRONTEND_SERVICES</b>, you may find there.

Regards

*--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a>

Read only

0 Likes
834

hi!

i am working with version 46c.

the fm doesnt exist.

yifat

Read only

0 Likes
834

Hello,

you can use Function to know attributs of files in SAP server. It's little hard, but that's work.

data : itab_list_file type standard table of zfi_exp1
                      with non-unique key ztype zname
                      with header line.
data : begin of struct_dir ,
         dir(75)    type c,            " Directory
         file(75)   type c,            " File
         errno(3)   type c,            " Error number
         errmsg(40) type c,            " Error message
       end of struct_dir.

* Start read directory
  call 'C_DIR_READ_START' id 'DIR'    field struct_dir-dir
                          id 'FILE'   field struct_dir-file
                          id 'ERRNO'  field struct_dir-errno
                          id 'ERRMSG' field struct_dir-errmsg.

*   Read next line.
    call 'C_DIR_READ_NEXT'
      id 'TYPE'   field itab_list_file-ztype
      id 'NAME'   field itab_list_file-zname
      id 'LEN'    field itab_list_file-zlen
      id 'OWNER'  field itab_list_file-zowner
      id 'MTIME'  field itab_list_file-zmtime
      id 'MODE'   field itab_list_file-zmode
      id 'ERRNO'  field itab_list_file-zerrno
      id 'ERRMSG' field itab_list_file-zerrmsg.

if you need complete exemple, debug AL11 transaction.

Regards

Read only

andreas_mann3
Active Contributor
0 Likes
834

Hi ,

look at function group <b>EPSF</b>

and fm EPS_GET_FILE_ATTRIBUTES

regards Andreas