04-13-2010 1:05 PM
hi there,
i have a problem reading the syslog with my program... i tried it like this but it doesnt work. any idea why it doesnt? there is no documentation for this function in my sap system.
DATA: BEGIN OF ta.
INCLUDE STRUCTURE rslgsel.
DATA: END OF ta.
DATA: entriestab LIKE rslgetab OCCURS 0 WITH HEADER LINE.
ta-user = 'TL79'.
ta-startdate = '20100412010000'.
ta-stop_date = '20100413010000'.
CALL FUNCTION 'RSLG_READ_FILE'
EXPORTING
file_info = syslog_file
selection = ta
IMPORTING
COUNTERS =
CUR_POS =
CUR_WC =
END_INFO =
END_REASON =
LOST_ENTRIES =
OLD_POS =
OLD_WC =
TABLES
syslog_in_table = entriestab
.
thx in advance.
EDIT (Forgot 3 lines. anyway id be happy if someone got a good sample code for this function)
Edited by: rafe b. on Apr 13, 2010 2:08 PM
04-13-2010 1:26 PM
Check the where-used-list of this function, it seems you need to call RSLG_FILEINFO_INIT before to get the name of the syslog files and fill "file_info" accordingly.
Thomas
04-13-2010 1:26 PM
Check the where-used-list of this function, it seems you need to call RSLG_FILEINFO_INIT before to get the name of the syslog files and fill "file_info" accordingly.
Thomas
04-13-2010 2:49 PM
still doesn't work and i cant find anything that could help me in the program SAPMSM21.
does really nobody has a simple code example of how i can read info out of the syslog from a certain user in a certain range of time?
04-13-2010 1:31 PM