- 浏览: 786345 次
- 性别:
- 来自: 上海
文章分类
- 全部博客 (573)
- Java基础 (76)
- C++基础 (5)
- hibernate (5)
- struts (4)
- spring (1)
- webservice (7)
- AjaX基础 (0)
- JS脚本 (53)
- 正则表达式 (5)
- html脚本 (30)
- 数据库基础 (54)
- 工作相关 (49)
- 其他 (30)
- Linux (9)
- web服务器 (17)
- JSP (13)
- eclipse (6)
- 面试题相关 (20)
- XML (3)
- Apache common (2)
- 生活 (35)
- VMware (1)
- log4j (9)
- BeanUtils (2)
- 设计模式 (3)
- UML (1)
- UNIX (1)
- ibats (5)
- GT-Grid (17)
- ABAP学习 (17)
- ABAP (35)
- ABAP--ALV (11)
- ABAP--WEBDIMPRO (0)
- abap-sample (1)
- BEMS (2)
- flex (33)
- GIS技术 (3)
最新评论
1、使用where语句
不推荐
Select * from zflight.
Check : zflight-airln = ‘LF’ and zflight-fligh = ‘BW222’.
Endselect.
推荐
Select * from zflight where airln = ‘LF’ and fligh = ‘222’.
Endselect.
2、使用聚合函数
不推荐
Maxnu = 0.
Select * from zflight where airln = ‘LF’ and cntry = ‘IN’.
Check zflight-fligh > maxnu.
Maxnu = zflight-fligh.
Endselect.
推荐
Select max( fligh ) from zflight into maxnu where airln = ‘LF’ and cntry = ‘IN’.
3、使用视图代替基本表查询
不推荐
Select * from zcntry where cntry like ‘IN%’.
Select single * from zflight where cntry = zcntry-cntry and airln = ‘LF’.
Endselect.
推荐
Select * from zcnfl where cntry like ‘IN%’ and airln = ‘LF’.
Endselect.
4、使用INTO table 代替select endselect
不推荐
Refresh: int_fligh.
Select * from zflight into int_fligh.
Append int_fligh. Clear int_fligh.
Endselect.
推荐
Refresh: int_fligh.
Select * from zflight into table int_fligh.
5、使用批量修改内表代替逐行修改
不推荐
Loop at int_fligh.
If int_fligh-flag is initial.
Int_fligh-flag = ‘X’.
Endif.
Modify int_fligh.
Endloop.
推荐
Int_fligh-flag = ‘X’.
Modify int_fligh transporting flag where flag is initial.
6、使用二分法查询,提高查询内表数据速度
不推荐
Read table int_fligh with key airln = ‘LF’.
推荐
Read table int_fligh with key airln = ‘LF’ binary search.
7、两个内表添加使用批量增加代替逐行
不推荐
Loop at int_fligh1.
Append int_fligh1 to int_fligh2.
Endloop.
推荐
Append lines of int_fligh1 to int_fligh2.
8、使用table buffering
Use of buffered tables is recommended to improve the performance considerably. The buffer is bypassed while using the following statementsSelect distinct
Select … for update
Order by, group by, having clause
Joins
Use the Bypass buffer addition to the select clause in order to explicitly bypass the buffer while selecting the data.
9、 使用FOR ALL Entries
不推荐
Loop at int_cntry. Select single * from zfligh into int_fligh where cntry = int_cntry-cntry. Append int_fligh. Endloop.
推荐
Select * from zfligh appending table int_fligh
For all entries in int_cntry
Where cntry = int_cntry-cntry.
10、正确地使用where语句,使查询能使用索引
When a base table has multiple indices, the where clause should be in the order of the index, either a primary or a secondary index
To choose an index, the optimizer checks the field names specified in the where clause and then uses an index that has the same order of the fields. One more tip is that if a table begins with MANDT, while an index does not, there is a high possibility that the optimizer might not use that index.
11、正确地使用MOVE语句
Instead of using the move-corresponding clause it is advisable to use the move statement instead. Attempt should be made to move entire internal table headers in a single shot, rather than moving the fields one by one.
12、正确地使用inner join
Let us take an example of 2 tables, zairln and zflight. The table zairln has the field airln, which is the airline code and the field lnnam, which is the name of the airline. The table zflight has the field airln, the airline code and other fields which hold the details of the flights that an airline operates.
Since these 2 tables a re logically joined by the airln field, it is advisable to use the inner join.
Select a~airln a~lnnam b~fligh b~cntry into table int_airdet
From zairln as a inner join zflight as b on a~airln = b~airln.
In order to restrict the data as per the selection criteria, a where clause can be added to the above inner join.
13、使用sort by 代替order by
14、避免使用SELECT DISTINCT语句
使用的 ABAP SORT + DELETE ADJACENT DUPLICATES 代替.
不推荐
Select * from zflight.
Check : zflight-airln = ‘LF’ and zflight-fligh = ‘BW222’.
Endselect.
推荐
Select * from zflight where airln = ‘LF’ and fligh = ‘222’.
Endselect.
2、使用聚合函数
不推荐
Maxnu = 0.
Select * from zflight where airln = ‘LF’ and cntry = ‘IN’.
Check zflight-fligh > maxnu.
Maxnu = zflight-fligh.
Endselect.
推荐
Select max( fligh ) from zflight into maxnu where airln = ‘LF’ and cntry = ‘IN’.
3、使用视图代替基本表查询
不推荐
Select * from zcntry where cntry like ‘IN%’.
Select single * from zflight where cntry = zcntry-cntry and airln = ‘LF’.
Endselect.
推荐
Select * from zcnfl where cntry like ‘IN%’ and airln = ‘LF’.
Endselect.
4、使用INTO table 代替select endselect
不推荐
Refresh: int_fligh.
Select * from zflight into int_fligh.
Append int_fligh. Clear int_fligh.
Endselect.
推荐
Refresh: int_fligh.
Select * from zflight into table int_fligh.
5、使用批量修改内表代替逐行修改
不推荐
Loop at int_fligh.
If int_fligh-flag is initial.
Int_fligh-flag = ‘X’.
Endif.
Modify int_fligh.
Endloop.
推荐
Int_fligh-flag = ‘X’.
Modify int_fligh transporting flag where flag is initial.
6、使用二分法查询,提高查询内表数据速度
不推荐
Read table int_fligh with key airln = ‘LF’.
推荐
Read table int_fligh with key airln = ‘LF’ binary search.
7、两个内表添加使用批量增加代替逐行
不推荐
Loop at int_fligh1.
Append int_fligh1 to int_fligh2.
Endloop.
推荐
Append lines of int_fligh1 to int_fligh2.
8、使用table buffering
Use of buffered tables is recommended to improve the performance considerably. The buffer is bypassed while using the following statementsSelect distinct
Select … for update
Order by, group by, having clause
Joins
Use the Bypass buffer addition to the select clause in order to explicitly bypass the buffer while selecting the data.
9、 使用FOR ALL Entries
不推荐
Loop at int_cntry. Select single * from zfligh into int_fligh where cntry = int_cntry-cntry. Append int_fligh. Endloop.
推荐
Select * from zfligh appending table int_fligh
For all entries in int_cntry
Where cntry = int_cntry-cntry.
10、正确地使用where语句,使查询能使用索引
When a base table has multiple indices, the where clause should be in the order of the index, either a primary or a secondary index
To choose an index, the optimizer checks the field names specified in the where clause and then uses an index that has the same order of the fields. One more tip is that if a table begins with MANDT, while an index does not, there is a high possibility that the optimizer might not use that index.
11、正确地使用MOVE语句
Instead of using the move-corresponding clause it is advisable to use the move statement instead. Attempt should be made to move entire internal table headers in a single shot, rather than moving the fields one by one.
12、正确地使用inner join
Let us take an example of 2 tables, zairln and zflight. The table zairln has the field airln, which is the airline code and the field lnnam, which is the name of the airline. The table zflight has the field airln, the airline code and other fields which hold the details of the flights that an airline operates.
Since these 2 tables a re logically joined by the airln field, it is advisable to use the inner join.
Select a~airln a~lnnam b~fligh b~cntry into table int_airdet
From zairln as a inner join zflight as b on a~airln = b~airln.
In order to restrict the data as per the selection criteria, a where clause can be added to the above inner join.
13、使用sort by 代替order by
14、避免使用SELECT DISTINCT语句
使用的 ABAP SORT + DELETE ADJACENT DUPLICATES 代替.
发表评论
-
ABAP日期函数
2010-04-09 13:18 1982计算两个日期间的工作天数,就是剔除了双休日后的天数.( 待考 ... -
ABAP 常用函数
2010-04-09 10:55 1410函数名 描述 SD_VBAP_READ_ ... -
ABAP常用系统变量
2010-04-09 10:52 10591.SY-PAGNO当前页号 2.SY-DATUM当前时间 ... -
ABAP字符串操作
2010-04-09 09:56 886ABAP字符串操作 ABAP對字串的操作方法與其他語言的操作有 ... -
SAP中常用且重要的数据库表
2010-04-08 21:57 1458Materials MARA - Material Mast ... -
如何跨过自学SAP的三道坎
2010-04-08 12:24 1389新手宝典 打算进入 ... -
sy-repid 和 sy-cprog的区别
2010-04-08 09:41 12991. sy-repid is the name of the ... -
ALV
2010-04-08 08:46 945REPORT z_alv_subtotal. *&-- ... -
ALV
2010-04-04 21:40 12221. 使用实例,见附件 2. help参考文档,内容也不多, ... -
LIST交互列表
2010-04-01 11:16 9271.Title names can be up to 20 c ... -
TYPE-POOLS
2010-03-28 10:11 1372我们在定义Tables的时候,一般会加上TYPE-POOLS ... -
怎么培养SAP内部顾问
2010-03-18 16:23 1178怎么培养SAP内 ... -
ABAP培训进入SAP第一步
2010-03-18 16:21 1633SAP在中国拥有众多的合 ... -
SAP培训及ABAP学习入门必读
2010-03-18 16:20 18071. SAP ABAP开发是做什么? SAP 是全球最大的E ... -
SAP职业生涯中12个最致命想法
2010-03-18 16:17 11701)总觉得自己不够好 这种人虽然聪明、有历练,但是一旦 ... -
关于SAP的用户出口 SAP的用户功能增强
2010-03-18 11:21 5122关于SAP的用户出口 SAP的 ... -
ABAP的面向对象-class的定义
2010-02-25 20:48 1124*类的定义与类的实现是分开的 class myClass de ... -
ABAP语言常用的系统字段及函数
2010-02-25 20:45 1188常用的系统变量如下: 1. SY-PAGNO当前页号 2. ... -
ABAP关于SCREEN的一些常用语句
2010-02-25 20:43 2590(1).SCREEN 设计 TABLES: SSCRFIEL ... -
ABAPer 常用Tcode
2010-02-23 22:38 1522注意下面两点: 1使用Tcode S001后显示SAP ea ...
相关推荐
课程内容涵盖了ABAP性能优化的基本概念、性能瓶颈分析、性能优化技术、性能监控和分析工具等方面的知识。 性能优化基本概念 ABAP性能优化是指通过优化ABAP程序和系统配置来提高系统的响应速度和稳定性。性能优化的...
### ABAP程序性能优化 #### 引言 在企业级应用开发中,SAP ABAP是一种广泛使用的编程语言。为了确保应用程序能够高效运行并提供良好的用户体验,开发者必须掌握一定的性能优化技巧。本文将深入探讨一系列关于ABAP...
本资料集主要探讨了ABAP性能优化的策略和技巧,适用于具有中等ABAP技能水平的开发者,以提升他们的代码效率,特别是在面对大数据量时,解决报表运行速度缓慢的问题。 1. **避免无谓的数据库访问**:数据库查询是...
"ABAP性能提高解决办法" ABAP性能提高解决办法是ABAP开发者们必须掌握的重要技术。作为一名合格的ABAP开发者,提高ABAP程序的性能是非常必要的。本文将向您介绍10种提高ABAP性能的解决办法。 1. loop 循环中不要用...
sap abap 性能优化 合理的使用Index 減少數據行的傳輸 減少數據列的傳輸 避免不必要的SQL語句 減少資料量的傳輸
介绍SAP ABAP 的性能优化,主要包括内表处理和R/3系统性能分析工具。
本文将深入探讨ABAP性能优化的各个方面,旨在帮助开发者提高代码执行效率,减少系统资源消耗,提升用户体验。 一、ABAP性能优化的重要性 在企业级应用中,ABAP性能优化至关重要。一个运行缓慢的应用程序不仅会降低...
在ABAP报表开发中,性能优化是至关重要的,因为低效的报表会导致用户满意度下降,尤其是在数据量庞大的情况下。以下是一些关于ABAP报表性能优化的注意事项和技巧: 1. **表连接策略**: - **连接顺序**:在编写...
SAP ABAP 程序性能调优是指通过对程序的优化来提高 SAP 系统的性能。性能调优是 SAP 系统管理员和开发人员的重要任务之一,因为它可以直接影响到用户的体验和业务的效率。 用户交互过程是 SAP 系统的核心部分,包括...
ABAP(Advanced Business Application Programming)是SAP系统中的一种编程语言,用于开发企业级的应用程序。...同时,持续关注SAP的最新技术发展,学习并应用新的性能优化策略,以保持程序的先进性和效率。
在ABAP环境中,SQL语句的性能优化是提高系统响应速度和资源利用效率的关键环节。本文将基于给定的代码片段,深入探讨两种不同的SQL查询方法,并分析它们在性能上的差异,以帮助开发者理解如何编写更高效、更经济的...
遵循上述ABAP代码性能优化原则,可以显著提高程序的运行速度和系统整体性能。对于企业级应用而言,这些实践不仅能够降低硬件成本,还能提供更流畅的用户体验。在实际开发过程中,开发人员应不断学习和探索新的优化...
18. **代码静态检查**:使用SLIN或其他工具进行代码静态分析,获取性能优化建议。 19. **旧式内表定义**:定义内表时,若不确定最大记录数,使用`OCCURS 0`,以适应动态增长的需求。如果知道记录数,`OCCURS n`可以...
### 性能优化 - 使用批处理调用:对于大量数据传输,可以考虑使用批处理模式减少网络传输次数。 - 缓存管理:合理使用缓存策略,减少不必要的服务调用。 - 错误重试机制:针对可能的网络问题,设计适当的错误重试...
在ABAP(Advanced Business Application Programming)编程环境中,程序优化是提升系统性能的关键步骤。通过有效的优化,我们可以确保程序运行更加高效,减少资源消耗,并提高用户体验。以下是对标题“ABAP程序优化...
SAP ABAP 程序性能调优是指通过对 SAP ABAP 程序的优化,以提高程序的执行效率和响应速度,从而提高用户体验和系统性能。本文将详细介绍 SAP ABAP 程序性能调优的技术创新、用户交互过程、系统监控、程序跟踪、程序...
ABAP Runtime Trace(SE30)是SAP ABAP系统中一个强大的性能优化工具,可以帮助开发者快速地检测和优化ABAP程序的性能。下面将对ABAP Runtime Trace的使用方法和重要配置进行详细介绍。 使用ABAP Runtime Trace ---...
- 性能优化:处理大量数据时,需考虑性能优化策略,如分页、延迟加载等。 通过阅读“abap ALV.doc”文档,你可以更详细地了解到这些内容,并获得具体的代码示例和步骤指导。这份文档将帮助你理解和实践ABAP ALV开发...
40G的ABAP教程视频,ABAP从入门到精通,帮助你快速成为ABAP顾问!