SLG1: Display Application Logs 相关创建应用日志函数 BAL_LOG_CREATE --> Create log with header data BAL_LOG_MSG_ADD --> Put message in log BAL_DB_SAVE --> Save logs in the database 创建应用日志的处理步骤: 1: 使用TCODE:SLG0创建对象和子对象. 2: 创建对象,对象名以Z或Y开头. 3:?创建...
SAP ABAP Application Log 的使用场景: (1) 当你想记录应用程序的执行进度,以便以后在需要时重建它; (2) 当开发人员不确定/无法调试代码(前台/后台)并且想深入了解错误原因时,可以通过检查应用程序日志来确定问题所在的确切位置。 使用事物码SLG0 创建一个对象,该对象用于识别开发人员在 ABAP 代码里使用的 Appli...
BAL_GLB_SEARCH_MSG 的参数包括 I_MSGID(消息 ID)、I_MSGNO(消息编号)、I_MSGV1 到I_MSGV4(消息变量)、E_LOGNUMBER(日志编号)和 E_LOG_HANDLE(日志句柄)。当你使用这个 Function Module 查找消息时,你需要提供消息的 ID 和编号,你也可以选择性地提供消息变量。Function Module 会返回找到的消息的日志编号...
其实除了 SAP 系统自动记录的系统日志之外,ABAP 应用开发人员也能在自己编写的 ABAP 报表里,通过 ABAP Application Log,根据实际需要插入一些应用层面的日志。 当客户使用我们的 ABAP 程序遇到问题时,我们可以不需要单步调试,而是通过查看这些程序运行时产生的应用日志,初步分析可能的问题原因。 下图是 Application Log ...
i_t_log_header = lt_log_header IMPORTING e_t_msg_handle = lt_allmsgs EXCEPTIONS no_logs_specified = 1 log_not_found = 2 log_already_loaded = 3. CHECK sy-subrc = 0. DATA: lt_logh TYPE bal_t_logh, ls_mfil TYPE bal_s_mfil, ...
Choose transaction/SAPTRX/ASAPLOGfor the application log in the SAP system. For theSAP Event Managementapplication log, on theSAP Easy Accessscreen, choose Event Management Administration Logging Application Log: Display Logs . If you want to deactivate the application log in the application system,...
BALDAT-Application Log: Log data 表体 BALHDR-Application log: log header 表头 我想保持几个月是说的过去的,但是几年的数据都还在,估计是DBA偷懒,所以只能自己动手,丰衣足食了。 使用T-CODE:SLG2,进入删除界面。 因为表头有一个栏位存储了过期日期,所以在删除界面“Expiry Date” 是有连个选项,一个是只...
Managing Application Logs and Traces Set the verbosity for application and component logging, and the purge schedule for log and trace files. View all application logs or the subset of your choosing, and drill down to view detailed log and trace information if available. Setting...
Hi All, You could use the Program: /SDF/BAL_READ to download the SLG1 log. This report shows classified Logs with Errors, warning and successful. Follow below simple
DATA: l_mac_bal_logTYPEbal_s_log."定义log DATA: l_tab_loghndlTYPEbal_t_logh."Application Log: Log Handle Table *---* *2.赋值 *---* l_mac_bal_log-extnumber = i_log_extnumber."外部编号 l_mac_bal_log-object= i_log_object...