`
jgtang82
  • 浏览: 401972 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

SAP System Program Debug

    博客分类:
  • ABAP
阅读更多

场景:

系统程序某个screen中的数据字段异常,其值是经过系统程序多次处理得到,这种情况下要求分析出数据的来源。

 

Debug方法(逐步逼近法):

1. 在screen的 PAI 起始处设断点

2. 在screen PAI处开始单步调试,找到目标数据变化的位置从而界定初始Debug范围,在变化前一位置设断点

3. 重启新一轮调试, 从上次最后设的断点处开始debug

4. 重复步骤2,3 直到找到最后的具体变化点

 

若数据在进入PAI之前数据已经变化成不期望的数据,可能过Call Stack上溯到以前的调用处并设断点,然后按上述debug方法操作. 另设断点时要善用ST05, (Field, Subroutine) Where-used, FIND来辅助找出可疑位置。

 

其它一些技术手段:

Watch-Point的使用(当变量=某值时进入Debug状态, 分析系统程序时非常有用!感谢波波):

Sometimes, an SAP process will stop working with an error message, or an abend. Unlike with a dump, it can be difficult to find exactly where the problem occured. What you should do, is get the technical name and number of the message - e.g. RS 100. Set a breakpoint at the start of the process (or run the process with the debugger switched on). As soon as the debugger is in some abap code, set a watchpoint for sy-msgno. In this example, you should set a watch point for sy-msgno = 100. Then hit F8.

The process will continue to run until sy-msgno has the value 100.

Check that the message ID is correct, according to the message - RS in this example. If it is, then you are at the place where the error occurs. You can usually back trace a few steps to find out precisely what was causing that error to be triggered.

原文地址: http://searchsap.techtarget.com/tip/0,289483,sid21_gci1314665,00.html

 

Active ITABs in Memory(Only in Classic Debugger)

1. In debug mode follow menu path: GOTO -> System Areas -> Internal Information

2. Enter "DSEG" to Area field

You will get a list of all the tables active in that program along with some other attributes. The type and size of the records determine if they are internal tables and how many records there are.
You can play around and try the other area than DSEG, some are interesting.

 

Memory Use

1. In debug mode follow menu path: GOTO->Status Display->Memory Use
2. Select tabstrip: Memory use

Ranked list You will see all variables used in the program sorted by size

  • ASSERT.zip (163.6 KB)
  • 描述: ASSERT的使用
  • 下载次数: 48
分享到:
评论

相关推荐

    关于SAP Debug的基本知识

    关于SAP Debug的基本知识 SAP Debug是一种重要的调试工具,帮助开发者和管理员解决SAP系统中的错误和问题。在这篇文章中,我们将介绍SAP Debug的基本知识,并描述一些常用的Debug工具和技巧。 T-cd:SM21 系统日志...

    sap 程序调试(debug.txt)

    - **Type**:指示该命令的类型,在这里`SystemCommand`表示这是一个系统级别的命令。 这些配置项共同定义了如何通过简单的文件操作来启动调试器。 ##### 2.2 文件的使用步骤 1. **创建文本文件**:首先,按照上述...

    SAP ABAP DEBUG 方式总结

    找到main program并设置断点,重新执行Smartforms以启动Debug。 七、Debug其他用户程序 使用外部断点模拟其他用户,例如/hext user=U0043267,然后运行目标程序,捕获指定用户的操作。 以上就是SAP ABAP调试的综合...

    SAP ABAP DEBUG技巧

    SAP ABAP debug 技巧 SAP ABAP开发顾问文档,中文文档

    SAP BAPI program example

    这个“SAP BAPI program example”很可能是关于如何在ABAP编程环境中创建和使用BAPI的实例教程。 在SAP系统中,BAPIs通常用于实现企业资源规划(ERP)数据的交换,例如订单处理、库存管理、财务报表等。BAPI程序的...

    sap abap program

    sap abap program 全套编程教材

    SAP系统中的ProgramID

    在SAP(System Applications and Products in Data Processing)系统中,Program ID是一个重要的概念,它用于标识和管理SAP ABAP程序。Program ID是SAP开发工具中的一种组织结构,主要用于控制程序的版本管理和权限...

    SAP_System_Administration_Made_Easy_4.6

    《SAP System Administration Made Easy 4.6》是一本针对SAP基础系统管理的指南,主要聚焦于SAP BASIS组件的管理和维护。SAP BASIS是SAP系统中的核心技术组件,负责提供运行时环境,包括系统安装、配置、性能优化、...

    SAP Project System详解

    ### SAP Project System 详解 #### 引言 SAP Project System 是 SAP 解决方案中用于项目与组合管理的重要组成部分。它帮助企业从项目的初始构建到详细规划直至执行与完成的整个生命周期进行有效管理。由于其与财务...

    sap system copy

    "sap system copy" SAP系统拷贝是指将已经安装的SAP系统复制到另一台服务器上,以便进行测试、开发或生产等目的。下面是基于DB2数据库的SAP系统拷贝的知识点: 1. 安装DB2数据库 在进行SAP系统拷贝之前,需要首先...

    SAP System Administration - Relevant Transaction Codes

    SAP System Administration - Relevant Transaction Codes by Klaus Utech Date Stamp: 2008-04-22

    SAP ABAP Web dynpro 跟踪调试

    SAP ABAP Web dynpro 跟踪调试工具的讲解。

    ADM106 SAP System Monitoring Using CCMS I (Col71).pdf

    根据给定文件的信息,我们可以提炼出以下IT领域的关键知识点,主要围绕SAP系统监控与管理,特别是使用CCMS(Central Configuration and Monitoring System)进行监控的相关技术细节。 ### SAP系统监控 #### 使用...

    SAP_System_Parameters

    SAP System Parameters

    sap ep system setting up

    本文主要介绍了如何在SAP EP中设置系统景观(System Landscape),并重点对比了SAP EP 5.0与SAP EP 6.0在系统定义方面的不同处理方式。 #### 二、SAP EP 6.0系统景观设置 在SAP EP 6.0中,系统景观设置变得更加...

    sap 信息结构Logistics Information System

    SAP Logistics Information System是SAP系统中的一个关键模块,它为企业的物流管理提供全面的数据分析和决策支持。这个系统由多个子系统组成,涵盖了销售、采购、库存控制、工厂维护和质量管理等多个方面,确保企业...

    SAP System Navigation.pdf

    sap

Global site tag (gtag.js) - Google Analytics