–ms 在上面的代码中: BAL_LOG_CREATE:创建应用程序日志对象 BAL_LOG_MSG_ADD:它将消息添加到应用程序日志记录对象/子对象 BAL_DB_SAVE:将消息保存到数据库中。 可以使用事务代码SLG1来监视基于对象的应用程序日志记录。 汪子熙 185 次咨询 5.0 电子科技大学 计算机系统结构硕士 25188 次赞同 去咨询 思爱普 (SAP...
t_log_message-MSG_TEXT_3 t_log_message-MSG_TEXT_4 into l_dummy. * The parameters set by message statement will be used * Add the message in the log PERFORM msg_add. endloop. * save logs in the database CALL FUNCTION 'BAL_DB_SAVE' EXPORTING I_SAVE_ALL = 'X' EXCEPTIONS LOG_NOT...
常用的的3个function module: BAL_LOG_CREATE:创建 BAL_LOG_MSG_ADD: 写入一条log BAL_DSP_LOG_DISPLAY: 显示log 常用的demo程序: SBAL_DEMO_06 (最简单的create,save, delete) SBAL_DEMO_04 (花式display log): log可以display成不同的样式,例如单条log,多条log,树状显示,层级显示等等。 显示多条Log 多...
BAL_LOG_MSG_ADDPut message in log BAL_LOG_MSG_ADDPut message in log BAL_LOG_MSG_CHANGEChange message BAL_LOG_MSG_CHANGEChange message BAL_LOG_MSG_CHECKCheck message data for consistency BAL_LOG_MSG_CUMULATEAdd message cumulated BAL_LOG_MSG_DELETEDelete message ...
log_header_inconsistent=1others=2. if sy-subrc <>0. message id sy-msgid type sy-msgty number sy-msgno with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. endif. ”&--新增日志 callfunction'BAL_LOG_MSG_ADD'exporting i_log_handle= fv_loghd"创建日志时生成的日志句柄i_s_msg = ls_bal_msg...
CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING * I_LOG_HANDLE = i_s_msg = l_s_msg EXCEPTIONS log_not_found = 0 OTHERS = 1. IF sy-subrc <> 0. MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. ...
BAL_LOG_DELETE Delete log (from database also at Save) BAL_LOG_EXIST Check existence of a log in memory BAL_LOG_HDR_CHANGE Change log header BAL_LOG_HDR_CHECK Check log header data for consistency BAL_LOG_HDR_READ Read log header and other data BAL_LOG_MSG_ADD Put message in log BA...
Application log Tcode: SLG0 SLG1 Function module: BAL_LOG_CREATE BAL_LOG_MSG_ADD BAL_DB_SAVE BAL_DB_SEARCH BAL_LOG_MSG_READ BAL_DSP_TXT_MSG_READ Table: BALHDR BALDAT Class: cl_bali_object_handler(CRUD application log object) cl_bali_log / cl_bali_header_sett...
*"LOG_HEADER_INCONSISTENT *nLOGGING_ERROR Author:AshimChowdhury DESCRIPTION:Thisfunctionmoduleisusedinsertmessagesinthe applicationlog CONSTANTS:c_messageTYPEsyst-msgidVALUE^MESSAGE,c_999TYPEsyst-msgnoVALUE'999'. DATA: l_log_handleTYPEballoghndl,l_s_logTYPEbal_s_log,l_dummytypestring,l_ext_notype...
11、log_handle is not specified, we want to add to the default log.* if it does not exist we do not care =>exceptions log_not_found = 0)call function 'bal_log_msg_add'exporting* l_log_handle =i_s_msg = l_s_msgexceptionslog_not_f ound = 0others = 1.if sy-subrc <> 0.me...