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: 

Application log

Former Member
0 Kudos
259

Hello friends,

I have a query regarding the application log ( Transaction SLG0, SLG1 etc ). I would like to be able to write to the application log and at the same time be able to read and siplay the application log. Want to know the function modules for doing the same. It would be nice if the same could be shown with some example.

Useful answers will be rewarded.

Cheers,

Jaydeep.

3 REPLIES 3

alex_m
Active Contributor
0 Kudos
114

Can u look the following table for application log,

TVIMV

VCLDIR

VCLDIRT

Use BAPI_APPLICATIONLOG_GETDETAIL to get app log details.

Award if useful

Former Member
0 Kudos
114

Hello,

Take a look at the FMs in group SLG0:

APPL_LOG_INIT

APPL_LOG_INIT_MESSAGES

APPL_LOG_READ_INTERN

APPL_LOG_READ_INTERN_LONGTEXT

APPL_LOG_SET_OBJECT

APPL_LOG_WRITE_DB

APPL_LOG_WRITE_HEADER

APPL_LOG_WRITE_LOG_PARAMETERS

APPL_LOG_WRITE_MESSAGES

APPL_LOG_WRITE_MESSAGE_PARAMS

APPL_LOG_WRITE_SINGLE_MESSAGE

Regards,

John.

Former Member
0 Kudos
114

Hi Jaydeep

I have used BAL_LOG_CREATE, BAL_LOG_MSG_ADD and BAL_DB_SAVE in that order to create app log entries. The APPL_* fm's mentioned earlier will work as well. You can also create your own object and subobjects which make it easier to find the messages in SLG0/1. I haven't created an object in a while but the subobject has a view V_BALSUB which can be maintained. You may want to look in SPRO for the object creation - I remember there being a screen to create objects.

hope this helps

Andy