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

API for SAP syslog access

Former Member
0 Likes
991

Hello.

Is there any API to write into the syslog (see Txn SM21) of an SAP R/3 System?!

THX in advance ...

MIKE

8 REPLIES 8
Read only

Former Member
0 Likes
925

Try this Function Module: RSLG_WRITE_SYSLOG_ENTRY

Regards,

Ravi

Read only

0 Likes
925

@Ravi:

This FM already came across my way, but the question that still remains here is: Can this FM be considered as an API, that can be used by every ABAP developer or is the use of this FM restricted to SAP only?

Read only

0 Likes
925

HI Mike,

This can be used abappers and not restricted for internal use.

This is what the FM documentation says:

<i><b> Write an Entry into the Syslog

RSLG_WRITE_SYSLOG_ENTRY writes an entry in the SAP system log. A system

log message contains of four relatively independent parts:

1. Information about time, user, process, transaction and so on. This

information is automatically added.

2. The message ID. This is used during the analysis to identify the

message text and documentation. The message text may use place

holders. For information about how to replace them, see below as

well as in Transaction SE92.

3. The variable parts of the message. 32 bytes are available for these.

4. The pre-defined parameters. They are used by further hidden system

log entries. They are similar to the 'variable parts' of the message

in terms of the analysis in Transaction SM21. </b></i> Regards,

Ravi.

P.S: Please reward if it helps.

Read only

0 Likes
925

@Ravi:

Thanks for your advice!

Which basis release has the system from which you took thi documentation?

MIKE

Read only

0 Likes
925

Hi Mike,

The Basis release is 640.

I'm currently on SAP ECC 5.0.

Regards,

Ravi

Read only

0 Likes
925

BTW:

I started a SAP Service Request to request the state of the FM RSLG_WRITE_SYSLOG_ENTRY and to get an information in how far this FM can be considerd as an API.

I will update this thread, as soon as I hav feedback from SAP...

MIKE

Read only

0 Likes
925

Here the answer i got from SAP:

<i>RSLG_WRITE_SYSLOG_ENTRY can be used to write syslog entries. The

function module is only SAP internally released but this status ensures

documentation and continuity of the function. There is no restriction

about releases.

An official API does not exist.</i>

Read only

0 Likes
925

hi there,

can you tell me which is the table for SAP System Log? I'd like to perform queries against it, SM21 filters don't meet my requirements,

thank you.