美文网首页SAP
ABAP代码静态分析工具SQL - Support Query

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

作者: 华山令狐冲 | 来源:发表于2020-05-03 10:58 被阅读0次

如果系统里没有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的原创文章,请关注公众号"汪子熙":


相关文章

  • ABAP代码静态分析工具SQL - Support Query

    如果系统里没有SQF这个tcode,可以参考note 1814328: SQF: Plug-In for Sour...

  • 静态代码分析工具对比

    静态代码分析工具 一、 什么是静态代码分析工具 二、 Findbugs 三、 Checkstyle 四、 Pmd ...

  • 常用程序类型

    报表程序 1.工具报表Query 工具报表Query适用于简单的查询报表开发,无需具有ABAP编程知识,但...

  • Android 静态代码分析工具

    Android 静态代码分析工具 静态代码分析是指无需运行被测代码,仅通过分析或检查源程序的语法、结构、过程、接口...

  • 静态代码分析工具

    PVS-Studio 配置路径 扫描 解决错误

  • Python性能优化Tips

    代码性能分析工具 pylint:不执行代码,静态分析。 profile:执行代码,统计各个函数的调用次数以及耗时。...

  • ABAP Code Inspector 的一些高级功能分享

    ABAP Code Inspector 是每一位 ABAP 开发人员工具箱里必备的代码检测工具之一。使用 ABAP...

  • iOS测试实践

    静态代码分析工具: Clang的Scan-Build工具下载地址 FaceBook的Infer工具下载地址

  • 内存分析(Analyze)

    一. 静态内存分析 所谓静态内存分析, 是指在程序没运行的时候, 通过工具对代码直接进行分析根据代码的上下文的语法...

  • OCLint 代码静态分析

    OCLint 代码静态分析 为了提高代码质量和代码走查的效率,软件开发过程中一般会使用静态代码分析工具来对程序正确...

网友评论

    本文标题:ABAP代码静态分析工具SQL - Support Query

    本文链接:https://www.haomeiwen.com/subject/abcdghtx.html