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

User exit application log

martin_jonsson
Participant
0 Likes
1,080

Hello all,

Is there a way of acting on the creation of a message in the application log, other than with workflow (SWUY)?

I would like to write an entry in a Z-table if a certain message is written in the application log (SLG1). Doesn't seem to be a user-exit or customizing for this...

Any ideas would be appreciated.

Thanks

Martin

4 REPLIES 4
Read only

Former Member
0 Likes
689

Look at the function modules in function group SLG0 or function modules that have the pattern 'APPL_LOG*'.

Read only

martin_jonsson
Participant
0 Likes
689

Already did, no trace of something useful...

Read only

Former Member
0 Likes
689

Hi,

Are you looking for application log creation

try this function module

BAL_LOG_CREATE

BAL_LOG_MSG_ADD/BAL_LOG_MSG_ADD_FREE_TEXT

BAL_DSP_LOG_DISPLAY

Cheers,

Sasi

Read only

0 Likes
689

Hi Sasi,

1. I create a log instance using BAL_LOG_CREATE.

2. If I have an internal table it_messages which will have my error messages, should I loop through this and call BAL_LOG_MSG_ADD for each message?

3. Then I call BAL_DSP_LOG_DISPLAY.

My doubt is if my message which is in line is_message be added to the log, which of the fields should it be supplied to, to be added in the log? I mean.. BAL_LOG_MSG_ADD takes a parameter i_s_msg. Which field of i_s_msg needs to be supplied with the error message which needs to be added to the appl log?

Thanks & Regards,

Anoop