ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

ABAP代码静态分析工具SQF - Support Query Framework

2020-05-04 11:58:20  阅读:319  来源: 互联网

标签:access calls analysis will Framework ABAP static Query SQF


如果系统里没有SQF这个tcode,可以参考note 1814328: SQF: Plug-In for Source Code Scans进行安装。

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”

  1. 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.

  1. 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.

  1. 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

要获取更多Jerry的原创文章,请关注公众号"汪子熙":

标签:access,calls,analysis,will,Framework,ABAP,static,Query,SQF
来源: https://www.cnblogs.com/sap-jerry/p/12825934.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有