cancel
Showing results for 
Search instead for 
Did you mean: 

Writing To Application Logs From Custom Code

Former Member
0 Kudos

Hi,

We've activated a lot of different BADIs in our extended classic scenario implementation.

I'm wanting to add logic to these BADIs to write to the different application logs to capture errors that are preventing the process from completing. At this point I don't really understand or know which logs I should be writing to in order to see the errors from RZ20.

Can some please provide me with some information as to what logs I can or can't write to and what functions should be used.

Thanks,

Jerry

Accepted Solutions (1)

Accepted Solutions (1)

pvanhoove
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Jerry,

To write a log in a application log (SLG1), you need first to define an object and suboject for log with transaction SLG0 (or use an existing).

Then use functions from function group SLG0 to

1) Init Log

2) write log header

3) Write message(s)

4) save to DB

Rgds,

Pierre

Answers (0)