‎2020 Apr 06 1:29 PM
help me to fetch log data from slg1.
i have used appl_log_data_read. but it is put whole log data into a internal table and i couldn't get separate details for each one.
I want to fetch logs details for each log id with specified object,sub-object and date.
‎2020 Apr 06 9:01 PM
This is a frequently asked question, you can find dozens of existing posts on this by using the keywords from the question in Google, thusly: read data SLG1 site:sap.com
Look at SZAL package, everything log-related is there, including demo programs. There is also ABAP Logger project on GitHub that could be useful.
‎2020 Apr 06 1:30 PM
Thank you for visiting SAP Community to get answers to your questions. Since you're asking a question here for the first time, I recommend that you familiarize yourself with https://community.sap.com/resources/questions-and-answers (if you haven't already), as it provides tips for preparing questions that draw responses from our members. For example, you can outline what steps you took to find answers (and why they weren't helpful). The more details you provide, the more likely it is that members will be able to assist you.
Should you wish, you can revise your question by selecting Actions, then Edit (although once someone answers your question, you'll lose the ability to edit the question -- but if that happens, you can leave more details in a comment).
Also, if you're hoping to connect with readers, please consider adding a picture to your profile. Here's how you do it: https://www.youtube.com/watch?v=F5JdUbyjfMA&list=PLpQebylHrdh5s3gwy-h6RtymfDpoz3vDS. By personalizing your profile with a photo of you, you encourage readers to respond.
Kind regards,
--Jerry
‎2020 Apr 06 2:51 PM
Hi Nivetha
Please check this FMs - if it can help you
BAL_DB_LOAD
BAL_LOG_MSG_READ
Regards,
Venkat
‎2020 Apr 06 8:58 PM
Hi,
You can try APPL_LOG_READ_DB
By setting the importing parameter right such as object or sub-object etc., you can specify which logs are to be fetch.
Regards,
Teshan
‎2020 Apr 06 9:01 PM
This is a frequently asked question, you can find dozens of existing posts on this by using the keywords from the question in Google, thusly: read data SLG1 site:sap.com
Look at SZAL package, everything log-related is there, including demo programs. There is also ABAP Logger project on GitHub that could be useful.
‎2020 Apr 07 9:14 AM
sap_beginner98,
You could try with FM APPL_LOG_READ_DB_WITH_LOGNO, if you have the log Number with you. Table BALHDR will hold other details regarding the Log numbers.
Regards!