–ms 在上面的代码中: BAL_LOG_CREATE:创建应用程序日志对象 BAL_LOG_MSG_ADD:它将消息添加到应用程序日志记录对象/子对象 BAL_DB_SAVE:将消息保存到数据库中。 可以使用事务代码SLG1来监视基于对象的应用程序日志记录。 汪子熙 184 次咨询 5.0 电子科技大学 计算机系统结构硕士 25100 次赞同 去咨询...
证实了上面结果中的第三个是我们寻找的地方: 方法2:使用函数模块 BAL_LOG_MSG_ADD 这个由Fabian Geyer提出的技巧也非常好。在函数模块BAL_LOG_MSG_ADD中设置断点,然后重复服务合同中的场景。断点会被触发(你可以观察到这个函数模块处于调用栈的最顶点),并且我们发现代码的位置和方法1中找到的位置完全一样。 在这...
BAL_GLB_MSG_CURRENT_HANDLE_GET Get current message handle BAL_GLB_MSG_DEFAULTS_GET Get message defaults BAL_GLB_SEARCH_LOG Find logs in memory BAL_GLB_SEARCH_MSG Find messages in memory BAL_LOG_CREATE Create log with header data BAL_LOG_CREATE Create log with header data BAL_LOG_DELETE De...
BAL_DSP_LOG_DISPLAY Display messages in memory BAL_DSP_LOG_DISPLAY Display Log BAL_DSP_LOG_PARAMETERS Either output extended long text or call a callback routine (based on the data in BAL_S_LOG-PARAMS) BAL_DSP_LOG_TECHNICAL_DATA Output all log header data BAL_DSP_MSG_LONGTEXT Display me...
* structure BAL_S_LOG and BAL_S_MSG). * There is already an example in Report SBAL_DEMO_02 for this * (see FORM msg_add_with_context). * * But sometimes a simple, flat DDIC-structure is not sufficient. * If you want to add more complex data (like an internal table, ...
a breakpoint in FM BAL_LOG_MSG_ADD can help. “ Actually in CRM application the error message handling logic is the same. Let me just use the example of Service Contract processing as example: How to find the code where the message CRM_ORDERADM_I with number 505 is raised? Approach1:...
BAL_LOG_MSG_ADD . Where can I view the log. Which tcode? I have seen SM21 but there is no entry for my transaction. 2) What is the suitable way of writing log to SAP. My program is Posting goods movements with the help of fn module BAPI_GOODSMVT_CREATE. Code realted to poi...
BAL_DSP_LOG_TECHNICAL_DATAOutput all log header data BAL_DSP_MSG_LONGTEXTDisplay message long text BAL_DSP_MSG_PARAMETERSEither output extended long text or call a callback routine (based on the data in BAL_S_MSG-PARAMS) BAL_DSP_MSG_TECHNICAL_DATAOutput technical data of a message such as...
BAL_DSP_LOG_TECHNICAL_DATAOutput all log header data BAL_DSP_MSG_LONGTEXTDisplay message long text BAL_DSP_MSG_PARAMETERSEither output extended long text or call a callback routine (based on the data in BAL_S_MSG-PARAMS) BAL_DSP_MSG_TECHNICAL_DATAOutput technical data of a message such as...
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_set...