Skip to Content
-2

How to get File attributes from a file on a PC

Nov 18, 2016 at 11:48 AM

114

avatar image

Hi Gurus

I am trying to get the last modification Time of a file that ist stored at the frontend (PC).

I habe tried many FM's like

ADS2KIPUPL_GET_FILE_ATTRIBUTES and EPS_GET_FILE_ATTRIBUTES.

But no one of this FM's can read the attributes from the frontend, it seems they are written for reading attributes from files stored in the application server.

Does anybody know a solution for my requirement?

Many thanks and best regards

Marco
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Raymond Giuseppi
Nov 18, 2016 at 12:36 PM
3

You didn't find class CL_GUI_FRONTEND_SERVICES=>FILE_GET_ATTRIBUTES during your search?

Regards,
Raymond

Share
10 |10000 characters needed characters left characters exceeded
Sandra Rossi Nov 18, 2016 at 05:48 PM
2

CL_GUI_FRONTEND_SERVICES=>DIRECTORY_LIST_FILES, but of course you have found it.

Show 3 Share
10 |10000 characters needed characters left characters exceeded

Hi

Thanks for your reply. But this method lists only the files in the directory. No "last modified Date" or other attributes of the files.

0

Not really. It lists the files, or one file if you filter, and many attributes, like the creation date, last access date, and last modification date (WRITEDATE, WRITETIME).

1

Aww.... Yes... in the Report its working! I tried this method in se24 instead call it in a report.

In SE24 I didnt see the attributes!

Thank you very much for the help!!

0
Marco Schwarz Nov 18, 2016 at 04:15 PM
0

Hi Raymond

Of course I hae found this class. But this class dont return the last modify date. This Method returns only:

READONLY
NORMAL
HIDDEN
ARCHIVE

which are abap_bool fields.

Regards,

Marco

Share
10 |10000 characters needed characters left characters exceeded