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

read 'last change' data & time from application server

Former Member
0 Likes
968

Hi all,

I'm looking for a way to read the following information from the application server

Last change Creator Name

17.07.2006 09:19:58 cbdadm file1.csv

27.05.2003 10:53:11 cbdadm file2.csv

13.07.2006 17:01:30 cbdadm file3.csv

I want to see for a number of filenames, when it was last changed, but I don't know where to get this data? Is it stored in a table? And how should I read this data?

I see that a program named RSWATCH0 is generating the required output for transaction AL11...maybe this is helpful?

thanks in advance! points will be rewarded for usefull answers

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
619

Hello Joris,

please check the below system function.

You have to call system function like this..

you can refer to the program RSWATCH0

CALL 'C_DIR_READ_NEXT'

ID 'TYPE' FIELD file-type

ID 'NAME' FIELD file-name

ID 'LEN' FIELD file-len

ID 'OWNER' FIELD file-owner

ID 'MTIME' FIELD file-mtime

ID 'MODE' FIELD file-mode

ID 'ERRNO' FIELD file-errno

ID 'ERRMSG' FIELD file-errmsg.

Reward if helps.

Thanks,

Krishnakumar

Message was edited by: Krishnakumar

4 REPLIES 4
Read only

andreas_mann3
Active Contributor
0 Likes
619

hi,

have a look to this link:

Andreas

Read only

Former Member
0 Likes
620

Hello Joris,

please check the below system function.

You have to call system function like this..

you can refer to the program RSWATCH0

CALL 'C_DIR_READ_NEXT'

ID 'TYPE' FIELD file-type

ID 'NAME' FIELD file-name

ID 'LEN' FIELD file-len

ID 'OWNER' FIELD file-owner

ID 'MTIME' FIELD file-mtime

ID 'MODE' FIELD file-mode

ID 'ERRNO' FIELD file-errno

ID 'ERRMSG' FIELD file-errmsg.

Reward if helps.

Thanks,

Krishnakumar

Message was edited by: Krishnakumar

Read only

Former Member
0 Likes
619

Hi,

Run this Program it will show the list of fiels with last changed date and time.

REPORT  ZTESTTTT.

data: begin of tabl occurs 500,
        line(400),
      end of tabl.
data: unixcom like   rlgrap-filename.
data: lines type i.
unixcom = 'ls -al'.
refresh tabl.

  call 'SYSTEM' id 'COMMAND' field unixcom
                id 'TAB'     field tabl[].

  describe table tabl lines lines.
  loop at tabl.
    write:/01 tabl-line.
  endloop.
  skip 2.
  if lines = 0.
    write:/ 'NO Occurances were found'.
  endif.

Regards

vijay

Read only

0 Likes
619

thanks a lot guys,

the link from andreas allowed me to adjust the program to list all information necessary.

I moved this topic to BSP programming, because now, I must enable this abap in BSP.

points have been rewarded. Topic closed!