`
JerryWang_SAP
  • 浏览: 1025872 次
  • 性别: Icon_minigender_1
  • 来自: 成都
文章分类
社区版块
存档分类
最新评论

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的原创文章,请关注公众号"汪子熙":

0
0
分享到:
评论

相关推荐

    《ABAP开发要点---PP模块》

    ### ABAP开发要点——PP模块 #### 概述 在SAP系统中,PP(Production Planning)模块主要用于处理企业的生产规划与控制业务。对于从事ABAP(Advanced Business Application Programming)开发的技术人员而言,掌握...

    -----ABAP FAQs--------------------------------------------

    -----ABAP FAQs--------------------------------------------

    ABAP官方教程--- BC400_EN_Col32

    教程的英文名称“Introduction to the ABAP Workbench”直译为“ABAP工作台介绍”,意味着教程主要围绕ABAP开发工具ABAP Workbench进行介绍,ABAP Workbench是进行ABAP程序开发和维护的重要环境。 2. ABAP语言和SAP...

    ABAP751 ABAP - Keyword Documentation

    ABAP - Keyword Documentation This documentation describes the syntax and meaning of the keywords of the ABAP language and its object-oriented part ABAP Objects. Alongside this, language frameworks ...

    ABAP官方教程---BC400_EN_46D_FV

    3. ABAP Workbench: ABAP工作台是SAP ABAP开发的核心环境,提供了开发、测试、调试ABAP程序的各种工具和功能。 4. Foundations and Concepts: 这部分强调了基础和概念的重要性,表明教程可能主要集中在基础知识点和...

    ABAP Programming (BC-ABA)

    - SAP Workbench提供了图形化的开发工具,如SE38用于编写和调试ABAP代码,SE16用于查看和编辑数据库表。 - 了解如何使用Transaction Codes进行开发和测试。 7. **ABAP Objects**: - ABAP Objects引入了面向对象...

    ABAP-学习笔记-通用

    ABAP-学习笔记-通用

    CD260-ABAP-in-Eclipse-开发-CN

    CD260-ABAP-in-Eclipse-开发-CN CD260-ABAP-in-Eclipse-开发-CNCD260-ABAP-in-Eclipse-开发-CNCD260-ABAP-in-Eclipse-开发-CN

    ERP系统信息化资料:abap+测试题--不带答案.doc

    ERP系统信息化资料:abap+测试题--不带答案.doc

    abap实例讲解----SAP学习好帮手

    - 包括ABAP程序代码、用户对话、图形用户界面(GUI)以及事务代码。 - GUI组件包括菜单栏、标准工具栏、应用程序工具栏及标题栏。 - 通过事务代码触发程序运行。 #### 报表程序结构详解 报表程序的核心在于其...

    CD262-CN-CD262-调准你的定制化ABAP代码-–-为SAP-HANA做准备.pdf

    5. 使用ABAP测试主控室(ABAP Test Cockpit)和SQL监视器:文档提到ABAP测试主控室和SQL监视器是重要的工具,它们帮助开发者为SAP HANA准备定制化的ABAP代码。这些工具可以进行静态代码检查,以及监控和调试SQL性能,...

    ABAP上传下载工具-SAPLINK

    3、在SAPlink项目中Bulid文件夹下,zsaplink_installer.txt是安装器代码。 4、在SAPlink项目中Bulid文件夹下,SAPLink_daily.nugg:是saplink 的源码包。 5、激活时,安装顺序很重要:先激活ZSAPLINK等类,再激活...

    ABAP常用事务码

    ABAP的T-CODE事物码、描述、以及备注 标注红色的为常用事物码需要记忆

    ABAP read 和 line-exists 的使用方法

    ABAP read 和 line-exists 的使用方法

    ABAP程序调优报告-附代码.pdf

    ABAP程序调优报告-包含运行时间对比,源代码,可调试运行, SE38创建程序后,粘贴代码,如有语法报错,根据报错消息调整代码即可,因为存在SAP系统的自定义差异。

    ABAP-根据T-CODE找用户出口

    在ABAP开发环境中,了解如何根据事务代码(T-CODE)查找用户出口对于系统维护、功能定制和增强具有重要意义。用户出口(User Exits)是SAP系统提供的一种机制,允许开发者在特定事务处理过程中插入自定义逻辑,从而...

    eclipse-abap-keywordcolors-master.rar

    eclipse-abap-keywordcolors eclipse-abap-关键字颜色

    ABAP4培训手册-SAP_ABAP开发顾问专用手册.pdf

    - **掌握ABAP4基础语法**:熟悉ABAP4的基本结构和语法规则,能够编写简单的程序代码。 - **掌握SQL与函数的使用**:熟练运用SQL查询语句以及内置函数,有效处理数据库操作和数据变换。 - **DIALOG基础与高级开发**:...

    从实例学SAP ABAP编程(1-19章).pdf

    15. ABAP测试工具:学习如何使用SAP提供的工具进行ABAP代码的测试和调试,如ABAP调试器、ABAP测试工具等。 16. 开发实践:通过案例学习将理论知识应用到实际的SAP ABAP开发项目中。 17. 最佳实践和设计模式:学习...

    Intro to ABAP-----一套挺有意思的abap教材

    01. Introduction to ABAP 02. Introduction to ABAP Programming 03. Simple Output Statements 04. Data Declarations 05. Retrieving Data with Select Statements 06. Control Statements 7. Data ...

Global site tag (gtag.js) - Google Analytics