‎2007 Mar 01 3:46 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 7:38 PM
You have to call a couple of function module in a sequence..
Please see the following code:
call function 'APPL_LOG_INIT'
EXPORTING
object = w_object
subobject = w_sub_obj
EXCEPTIONS
others = 0.
call function 'APPL_LOG_WRITE_HEADER'
EXPORTING
header = wa_prot_head
EXCEPTIONS
others = 0.
call function 'APPL_LOG_WRITE_MESSAGES'
EXPORTING
object = w_object
subobject = w_sub_obj
TABLES
messages = it_prot_mess
EXCEPTIONS
object_not_found = 0.
call function 'APPL_LOG_WRITE_DB'
TABLES
object_with_lognumber = it_prot_nr
EXCEPTIONS
others = 0.
Hope this helps...
‎2007 Mar 01 8:55 PM
Hi Abaper,
Thanks for the reply.
Could you please also mention the various parameters being passed in the form of an example ( like object, subobject etc ), so that it makes it easier to follow. Your first answer was pretty helpful in the first instance.
Cheers,
Jaydeep.