Application Development 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: 

Problem with reading syslog / function RSLG_READ_FILE

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

ThomasZloch
Active Contributor
0 Kudos

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

3 REPLIES 3

ThomasZloch
Active Contributor
0 Kudos

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

0 Kudos

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?

Former Member
0 Kudos

Check Report SAPMSM21