Application Development 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: 

BAL_LOG_CREATE

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

5 REPLIES 5

Former Member
0 Kudos

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

0 Kudos

Hi Jyothi,

Thats fine. I know that it creates a log file.

But how do I access the log file.

Thanks

0 Kudos

hi, you can access logs by tx SLG1 or you can write your own report program to access the logs.

Regards,

Vijaya

Former Member
0 Kudos

Hi Vinay

check out this little helper class:

http://www.web-dreamer.de/blog/2011/09/abap-logging-logger.html

JR

0 Kudos

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:

http://www.sap4.com/index.php?title=ZBCIBAL