‎2012 Mar 09 8:02 AM
Can any one explain me when can and how can i make use of application log facility.
I have gone through SLG0 and SLG1 but i am not clear.
Can we get the logs of a database table by making use of this application logging facility?
Should logging check box be activated for this or we can get the log details even if logging in technical seetings is not active?
Please let me know the details.
Thanks and Regards,
Hyma
‎2012 Mar 09 8:08 AM
When you mark the check box in technical settings , the logs will be available in table DBTABLOG.
‎2012 Mar 09 8:08 AM
When you mark the check box in technical settings , the logs will be available in table DBTABLOG.
‎2012 Mar 09 8:14 AM
Hi Keshav,
Thanks for the reply.
That i know.When we mark check box we ca see the logs in scu3 as well.
My question is reagrding application log facility.
Thanks,
Hyma
‎2012 Mar 09 8:42 AM
Hi,
Did you try debugging program SAPLSLG3 ? Also, check out this function module - APPL_LOG_DISPLAY_WITH_LOGNO.
Regards,
Danish.
‎2012 Mar 09 8:46 AM
Application Log is not just for database table change log, for example, in SCM there are many jobs/process chains runs in the system with huge number of data for planning/ordering etc etc... Now if some of the job or process chain fails then you can have the perticular prodcut/location for which the error happned( not like back ground job failure) from that log.. it will give you all the record wise analysis.. based on configaration in application log , u can have details log, only header log etc.
‎2012 Mar 09 8:56 AM
I do not understand what your question is.
Basically, if you want to use it in the standard, it must have been implemented technically and you will need to look for a customizing setting to activate it (or it already is logging and you need object and sub-object to list log in SLG1).
Otherwise, if you want to implement it in a custom development you should look at examples using functions from function groups SLG0, SLG1, SLG2, SLG3, SLG9. These are functions for creating, modifying, and reading logs.
phillip
‎2012 Mar 09 9:03 AM
actually my question is,
whether i can catch the modifications done to a dbatable thru a custom program.
I have used the FM "APPL_LOG_READ_DB".
I have passed object,subobject etc.
But it returned nothing.
I am doing a modify to a database table using modify statement.
I am calling tis FM right down that.
My intention is to catch the logs.
Can i get logs using the above FM
‎2012 Mar 09 9:27 AM
That is a different story.
You want to log the modifications done to one or more custom tables. You should look into change documents. This system is used by SAP in all modules (look at changes on sales contract). The changes are written to tables CDHDR and CDPOS.
There is customizing to do in SCDO and function modules to integrate in your application.
Look [here|http://help.sap.com/saphelp_nw70/helpdata/en/c7/69bccff36611d3a6510000e835363f/frameset.htm] for a start.