‎2012 Mar 09 8:28 AM
HI SapAll.
may i know what is the Function Module to read the data for Applicaiton Log (tcode-SLG1).
waiitng for your response.
regards.
Varma
‎2012 Mar 09 8:31 AM
‎2012 Mar 09 8:40 AM
Hi,
Try to debug the program as stated by SAP_WIZ above. Also, check out this function module - APPL_LOG_DISPLAY_WITH_LOGNO.
Regards,
Danish.
‎2012 Mar 09 9:23 AM
Hi Danish.
i have checked all the 3 function modules (APPL_LOG_DISPLAY_INTERN,APPL_LOG_DISPLAY,APPL_LOG_DISPLAY_WITH_LOGNO) displayed in the program 'SAPLSLG3' but i dont see any Export Paramter or TABLE Structure through which i can get the Log Messages .
using the FM'APPL_LOG_DISPLAY' -when i ran this FM it displayed me the LOG Screen with all the messages in it but iam not usre how to get them into my program to write into SPOOL.
waiting for your response.
regards.
Varma
‎2012 Mar 09 9:34 AM
Hi,
Please run program SBAL_DISPLAY. The function module BAL_DSP_LOG_DISPLAY consists the final data to be displayed. Check table type i_t_log_handle of this function module. Also, this function module is present inside FM - APPL_LOG_DISPLAY.
Regards,
Danish.
‎2012 Mar 09 9:50 AM
Hi Danish.
running the program 'SBAL_DISPLAY' is similar to running the FM'APPL_LOG_DISPLAY' .However when i run any one of these i have to manually press the 'Execute button' to display the log(there is no option to save the log into spool or to get into some Internal table)
i have tried running the program 'SBAL_DISPLAY' by putting the Break point at the line ( CALL FUNCTION 'BAL_DSP_LOG_DISPLAY'
EXPORTING
i_t_log_handle = l_t_log_handle)
,while debugging the values are as below:
L_T_LOG_HANDLE : Sorted Table[1x1(44)]
1 ZoDNJw4vg3BX0000h1GOdm.
could you please help me in getting the log into spool wihtout having to press the execute button and without having to look at the Log.
regards.
Varma
‎2012 Mar 09 10:41 AM
Hi,
You cannot get the log without pressing the execute button right. Did you try running this report in background ?
Regards,
Danish
‎2012 Mar 09 10:57 AM
Call the below functions in sequence and get it in your program.
BAL_DB_SEARCH - Provide the values to I_S_LOG_FILTER and get the header data
BAL_DB_LOAD - Pass the header data and get the log & message handle
BAL_LOG_MSG_READ - Pass the message handle and get the text
BAL_DSP_TXT_MSG_READ - To get the message text
BAL_LOG_REFRESH - Refresh the contents
‎2012 Mar 09 1:23 PM
‎2015 Feb 12 9:17 AM
Thank you Danish Kazi My requirement got satisfied by the function module which you suggested
‎2015 Feb 12 9:29 AM
Hi,
You can try calling DBLOG_READ_WITH_STATISTIC function module in your code to get the log messages into an internal table.
Regards,
Emrah.