2009 Mar 18 12:37 PM
Hi Gurus,
Please could any body tell what is the use/benefit of the 'BAL_LOG_CREATE' function module & how do we use it. I went thorugh the function module documentation but it confused me all the more. Please give eg. if possible.
thanks in advance
2009 Mar 18 1:14 PM
Hi Vinay,
we will use this FM to create an Application log.
Please go through this sample program to know how to use this.
SBAL_DEMO_01
2009 Mar 18 1:14 PM
Hi Vinay,
we will use this FM to create an Application log.
Please go through this sample program to know how to use this.
SBAL_DEMO_01
2009 Mar 19 9:12 AM
Hi Jyothi,
Thats fine. I know that it creates a log file.
But how do I access the log file.
Thanks
2009 May 27 4:06 AM
hi, you can access logs by tx SLG1 or you can write your own report program to access the logs.
Regards,
Vijaya
2011 Sep 19 8:19 AM
Hi Vinay
check out this little helper class:
http://www.web-dreamer.de/blog/2011/09/abap-logging-logger.html
JR
2011 Sep 19 10:28 AM
Hi,
Please use FMs to create Application Logs::
BAL_LOG_CREATE Create Application Log
BAL_LOG_MSG_ADD Add message in Application Log
BAL_DB_SAVE Save Application Log
1. Fill structure and pass to FM BAL_LOG_CREATE to receive log handle.
2. Now add message number, class and text and pass it to FM BAL_LOG_MSG_ADD along with log handle.
3. Finally, pass the same log handle to FM BAL_DB_SAVE to receive log number.
If you want sample code please refer below link: