一個好用的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的原創文章,請關注公眾號"汪子熙":
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24475491/viewspace-2719116/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 使用ABAP Channel實現一個訂單跟蹤工具,提高日常工作效率
- ActionView - 更好用的問題需求跟蹤工具View
- ABAP的許可權檢查跟蹤(Authorization trace)工具
- 一個非侵入式跟蹤分析程式
- Mac好用的時間跟蹤器Mac
- SAP CRM One Order跟蹤和日誌工具CRMD_TRACE_SET
- 好用的時間跟蹤定時器:Eon Timer for Mac定時器Mac
- SAP ABAP 程式之間的呼叫
- SAP ABAP RFC介面通用日誌工具:abap fm logger
- 高效的任務跟蹤管理工具
- 一個好用的畫圖工具 excalidraw
- SAP ABAP呼叫WEBAPI(一)WebAPI
- Qt - 原始碼跟蹤一個QtCreator就夠了QT原始碼
- SAP ABAP SM50的另類用途 - ABAP工作程式對資料庫表讀取操作的檢測資料庫
- 一些通過SAP ABAP程式碼審查得出的ABAP程式設計最佳實踐程式設計
- 如何分配和跟蹤專案工作量?
- SAP ABAP關鍵字語法圖和ABAP程式碼自動生成工具Code Composer
- 盤點2022年好用的專案進度跟蹤軟體
- JavaScript是如何工作的:使用MutationObserver跟蹤DOM的變化JavaScriptServer
- SAP ABAP Netweaver 容器化的一些前沿性研究工作分享
- 如何在SAP Cloud Platform ABAP程式設計環境裡建立一個employeeCloudPlatform程式設計
- 玩了一下 SAP Fiori ABAP程式設計模型程式設計模型
- 如何使用 ABAP 程式消費 SAP ABAP OData 服務
- 有效資源跟蹤的8個指標指標
- 有哪些好用的工作彙報工具
- 打造一個好用的 Windows 程式設計環境 0.準備工作Windows程式設計
- 一個好用的 SAP UI5 本地打包(build)工具,自動生成Component-preload.jsUIJS
- 微服務分散式跟蹤工具Brave簡介微服務分散式
- 使用 ABAP 開發的一個基於 Web Socket 的小工具,能提高程式設計師日常工作效率Web程式設計師
- 在SAP雲平臺ABAP程式設計環境上編寫第一段ABAP程式程式設計
- SAP ABAP 平臺新的程式設計模型程式設計模型
- 分享一個好用的線上工具箱
- 使用dbms_monitor.session_trace_enable跟蹤一個會話Session會話
- matlab練習程式(LQR路徑跟蹤)Matlab
- git的跟蹤分支和遠端跟蹤分支學習筆記Git筆記
- SAP ABAP Netweaver 裡的 ABAP 會話概念會話
- SAP SRM ABAP Webdynpro和CFCA usb key整合的一個原型開發Web原型
- 如何把一個ABAP檢視新增到SAP GUI的收藏夾裡GUI