‎2005 Aug 25 10:26 PM
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
‎2005 Aug 25 10:37 PM
Look at the function modules in function group SLG0 or function modules that have the pattern 'APPL_LOG*'.
‎2005 Aug 25 10:39 PM
‎2005 Aug 26 2:37 PM
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
‎2005 Sep 01 6:15 AM
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