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

Problem with reading syslog / function RSLG_READ_FILE

Former Member
0 Likes
1,025

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
Read only

ThomasZloch
Active Contributor
0 Likes
845

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
Read only

ThomasZloch
Active Contributor
0 Likes
846

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

Read only

0 Likes
845

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?

Read only

Former Member
0 Likes
845

Check Report SAPMSM21