一个好用的SAP ABAP工作进程跟踪工具
As an ABAPer we have SAT, ST05 ( or sometimes ST12 ) for trace in our toolbox, and recently I find this report which could also do the trace job.
Although the trace information it generates is quite technical and perhaps more useful for those guys who are interested with the ABAP kernel.
How to use this report
(1) SE38, execute report RSTRC000, mark the checkbox “Keep Work process”, so that a free work process will be owned exclusively by you unless you release it via this report again. And change the trace Level to 2: Full trace. Select the component which you would like to trace, for example Database.
Click save button and you can see the work process 23 is locked.
you could observe that the work process 23 has status “halt” in tcode SM50.
(2) Now it is ready to run the program which you would like to trace ( just the similar process as SAT or ST05 ). Use /nse38 to go to ABAP editor starting from the current screen of report RSTRC000, and run your program. For me, I just run a report which will query material data from database table COMM_PRODUCT. Once the program finishes, run report RSTRC000 again.
click button “Default val.” so that trace Level is changed to 1 automatically,
then click save button and you could observe the previously locked work process 23 is released.
Now you could click “Display” button to review trace log:
You could export the trace locally to review it. For me I prefer to use my favourite text editor “sublime text” to review text file.
Here below I just list the trace review of several trace component which I have already tried myself.
Database log
from the log, I could find which database tables are involved in the report execution and which ABAP program triggers such access. Some C language call could be observed but due to security or authority reasons maybe, we could not review the source file like ablink.c in folder /bas/*.
We could also find the detail OPEN SQL statement from the log, however I could not find the value of query parameter as shown below – they are displayed as ? in the trace.
ABAP proc.
It just lists all the ABAP class which are involved in the report execution but without method name of those class. In my case from the trace I can just know there are totally 40 different ABAP class with prefix CL_CRM_PROD* ( which are responsible by me) involved in the execution.
Database (DBSL)
Since we are currently use HANA as our database, I could have a very draft understanding about how the OPEN SQL like SELECT XXX FROM table statement is executed in HANA.
Lock Management
This time I would like to trace the lock behavior in tcode COMMPR01. I switch to edit mode which triggers a lock request to enqueue server to lock the product and then I make changes on its description field.
in the trace this enqueue request is perfectly recorded:
- the enqueue object
- the database table on which the enqueue object is working
- the guid of the product instance being locked
- the tcode name COMMPR01
- the user which triggers the enqueue request
From my point of view this option is a good substitute for the enqueue trace in ST05.
Background
I run my report ZHANA_OBJECT_SEARCH in the background and
and I could see from the job log that it is successfully executed.
and this information is also available in RSTRC000 trace:
I didn’t try all the other trace options and maybe they are useful under some extreme use cases. If you are interested, you can start now try it yourself
要获取更多Jerry的原创文章,请关注公众号"汪子熙":
相关文章
- SAP UI5 SimpleForm 在 size XL 下的布局开发
- SAP UI5 sap.ui.layout.Grid 控件宽度百分比的设置原理
- 国产ERP有没有机会击败SAP ?
- SAP UI5 应用中的 sap.ui.require 使用场景
- 如何更详细查看SAP 系统版本信息
- SAP Java Connector 的配置指南
- SAP Purchase Order Release StrategySAP采购订单审批策略配置
- SAP ABAP 方法调用里传值(Pass Value)和传引用(Pass Reference)的区别试读版
- 通过一个具体的例子,深入了解 SAP UI5 控件数据双向绑定的工作原理和问题排查方法试读版
- SAP UI5 按钮的类型和背景色设置例子
- SAP Fiori Belize 主题应用在 SAPGUI 里的一些要点
- SAP UI5 sap.m.Table 实现响应式布局的两种配置模式
- SAP Fiori Launchpad url 参数 sap-app-origin-hint 的含义
- Oracle购买SAP: 开启新数据时代(oracle收购sap)
- SAP工单设置技术上已完成和取消技术上已完成详解编程语言
- 不靠谱企业的IT现状能糟糕到什么程度,气坏新来的SAP工程师
- 前SAP首席产品官加盟谷歌云,贯彻开放和多云战略
- 系统Oracle公司收购SAP系统开启新的商业时代(Oracle公司sap)
- 数据库解决方案如何使用SAP创建Redis数据库(sap怎么创建redis)
- Oracle与SAP金蝶谁更具竞争力(oracle sap金蝶)
- Oracle和SAP教程一步一步学习(oracle sap教程)
- Oracle 与 SAP深度对比分析(oracle sap对比)