2007 Mar 01 3:55 PM
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.
2007 Mar 01 4:02 PM
Can u look the following table for application log,
TVIMV
VCLDIR
VCLDIRT
Use BAPI_APPLICATIONLOG_GETDETAIL to get app log details.
Award if useful
2007 Mar 01 4:11 PM
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.
2007 Mar 01 8:29 PM
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