‎2021 Jun 02 12:12 PM
I am new to ABAP and have been wanting to get log number from log handle using FM BAL_DB_SEARCH. Can someone help me by telling me how to do it?
Thanks in advance!!
‎2021 Jun 02 12:12 PM
Welcome and thanks for visiting SAP Community to get answers to your questions. Check out our tutorial to get started in SAP Community: https://developers.sap.com/tutorials/community-start.html By adding a picture to your profile you encourage readers to respond to your question. Learn more about your profile here: https://developers.sap.com/tutorials/community-profile.html
‎2021 Jun 02 12:32 PM
Hello,
There is a nice wiki that explains this - please see https://wiki.scn.sap.com/wiki/display/Snippets/Using+Application+Log
‎2021 Jun 03 9:34 AM
‎2021 Jun 02 12:49 PM
I don't understand your issue, you have both the log number and log handle in BAL_DB_SEARCH.
‎2021 Jun 02 3:44 PM
From BAL_DB_SEARCH with somer filter criteria passed to i_s_log_filter you get an internal table of log header in e_t_log_header (BALHDR)
so you could for example
and then (in a loop)
What is your exact requirement?
‎2021 Jun 03 9:35 AM
The exact requirement is to enter a specific log handle and get log number as the output in a variable. I have managed to get the log number, now it needs to be put inside a variable.
‎2021 Jun 03 3:04 PM
‎2021 Jun 03 6:43 AM
Not a direct answer to your question, but this repository may make your Application Log access a little easier: https://github.com/keremkoseoglu/simbal
‎2021 Jun 03 9:35 AM