ABAP程式碼分析工具 - 事務碼SQF
ABAP static analysis tool SQF is a static code analysis tool developed in package SUPPORT_QUERY_FRAMEWORK in software component SAP_BASIS. It contains lots of handy tool or short cut to other system utility tools. The most attractive function which is worthy to put it into my toolset is the static code analysis.
(1) use tcode SQF, double click on “Source code Analysis”
(2) Maintain the ABAP object which you would like to do static analysis.
In this example it is function module CRM_PRODUCT_GETLIST2. Specify the object type as well, which could be found in table TADIR. The Analysis Depth 6 means: for example in the implementation of the FM, it calls another FM or subroutine, these delegated calls will also be analyzed by the tool. Say FM calls A and A calls B, B calls C, C calls D, D calls E, E calls F and F calls G, depth = 6 means any further calls starting from F calls G will be ignored.
(3) Click save button and it is automatically navigated back to SQF main view. Click F8 to execute.
The progress will be displayed in the bottom, the bigger size of depth specified, the more time the analysis will take.
After execution, the color of icon changes from white to blue, which means the analysis result is available.
(4) The analysis results are categorized into four groups:
a. Call hierarchy, something like the one in SAT.
b. the table read access in static call. Those table read access done via dynamic coding will be listed in group d.
Compare with DB access list analyzed by runtime trace SAT, there are far more entries than the static one. This is not surprising, as in CRM product, the set type access is implemented in a highly dynamic way.
c. interface call:
d. Dynamic coding
Further reading
You could still achieve the same result but use different approach – use ABAP code inspector. For details please read this blog: A Small tip to get all transparent tables used in ABAP code . More detail about SQF could also be found from this wiki.
要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24475491/viewspace-2712088/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ABAP程式碼靜態分析工具SQF - Support Query FrameworkFramework
- spring事務管理原始碼分析(二)事務處理流程分析Spring原始碼
- 如何使用事務碼SMICM分析ABAP程式碼發起的HTTP請求的錯誤HTTP
- springboot 事務建立流程原始碼分析Spring Boot原始碼
- mybaits原始碼分析--事務管理(八)AI原始碼
- SAP Hybris的build callback和SAP ABAP的SGEN事務碼UI
- 程式碼分析工具小結
- Spring事務原始碼分析專題(一)JdbcTemplate使用及原始碼分析Spring原始碼JDBC
- ABAP 檢視webservice錯誤日誌事務碼:SRT_UTILWeb
- 如何減小ABAP業務程式碼的複雜度複雜度
- ABAP和Hybris的原始碼生成工具原始碼
- SAP ABAP關鍵字語法圖和ABAP程式碼自動生成工具Code Composer
- SAP HUM事務程式碼 HUMAT 之初探
- 使用ABAP程式碼生成二維碼(QR Code)
- Seata 分散式事務框架 TCC 模式原始碼分析分散式框架模式原始碼
- 介紹一款 ABAP 程式碼搜尋工具 RS_ABAP_SOURCE_SCAN 的使用方法
- spring事務管理原始碼分析(一)配置和事務增強代理的生成流程Spring原始碼
- 分散式事務 TCC-Transaction 原始碼分析 —— Dubbo 支援分散式原始碼
- PHP工具箱:PHPStan —— PHP 靜態程式碼分析工具PHP
- SAP 往一個角色裡增加事務程式碼
- SAP MM 事務程式碼MI31之思考
- golang如何優雅的編寫事務程式碼Golang
- SAP QM 事務程式碼QAC2的BUG?
- SAP MM 事務程式碼RWBE查詢庫存
- SAP PM 入門系列8 - PM事務程式碼
- SAP GUI裡的收藏夾事務碼管理工具GUI
- Spring 事務原始碼解析Spring原始碼
- SAP 事務碼記錄~
- 【spring原始碼】十一、事務Spring原始碼
- 判斷ABAP程式碼是否處於update模式下執行的工具類模式
- 如何使用ABAP程式碼建立SAP Product CategoryGo
- 如何使用 ABAP 程式碼解析 XML 檔案XML
- 《四 spring原始碼》spring的事務註解@Transactional 原理分析Spring原始碼
- 低程式碼和無程式碼的注意事項
- AFL二三事 -- 原始碼分析 1原始碼
- AFL二三事 -- 原始碼分析 2原始碼
- AFL二三事 -- 原始碼分析 3原始碼
- SAP HUM 事務程式碼HUMO為整託做Scrap