Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Function Module for Application Log(SLG1)

venkatasap
Participant
0 Likes
15,318

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

10 REPLIES 10
Read only

Former Member
0 Likes
6,464

Hi,

have you tried analysing program SAPLSLG3?

Read only

Former Member
0 Likes
6,464

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.

Read only

0 Likes
6,464

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

Read only

0 Likes
6,464

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.

Read only

0 Likes
6,464

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

Read only

0 Likes
6,464

Hi,

You cannot get the log without pressing the execute button right. Did you try running this report in background ?

Regards,

Danish

Read only

0 Likes
6,464

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

Read only

RaymondGiuseppi
Active Contributor
0 Likes
6,464

Try FM APPL_LOG_READ_DB (read also [Read application log|http://help.sap.com/saphelp_nw04/helpdata/en/2a/fa0264493111d182b70000e829fbfe/frameset.htm] and the whole tree of documentation)

Regards,

Raymond

Read only

Former Member
6,464

Thank you Danish Kazi My requirement got satisfied by the function module which you suggested

Read only

Former Member
0 Likes
6,464

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.