‎2006 Jul 17 9:44 AM
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
‎2006 Jul 17 10:15 AM
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
‎2006 Jul 17 9:54 AM
‎2006 Jul 17 10:15 AM
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
‎2006 Jul 17 10:29 AM
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
‎2006 Jul 17 10:40 AM
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!