SAP_LOVE

思考钻研,开创出自己的一片天地!!

  博客中心 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 登录 ::
  4 随笔 :: 0 文章 :: 1 评论 :: 0 Trackbacks
Cached @ 2025/4/25 20:44:20Control ASP.skins_cogitation_controls_blogstats_ascx
<2025年4月>
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

留言簿(0)

随笔档案

文章档案

搜索

最新评论

  • 1. SAP资料
  • 有同感,,

    资料也可这里看看:www.sap99.com
  • --SAP资料下载地址

阅读排行榜

评论排行榜

Cached @ 2025/4/25 20:44:20Control ASP.skins_cogitation_controls_singlecolumn_ascx

2008年8月22日 #

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 代替.

posted @ 2008-08-22 16:30 SAP_LOVE 阅读(1121) | 评论 (0)编辑 收藏

2008年8月15日 #

我自己手头的SAP资料大约是几十个G吧,可回过头来看看,真正对自己入门帮助最大的还是ONLINEHELP。对,SAP的在线帮助。怎么?不知道哪有?上HELP.SAP.COM看看去。

大把的英文资料看得头痛?也是。但只要你找对方法,学习起来真就很容易了。而正确的方法就是:看跟IDES相关的东西。你装的学习环境不就是IDES嘛,里面什么数据都有,参考着SAP帮助文件里的步骤一步一步走下去,很快就能熟练的操作这个系统。入门实在是太容易了。

总结起来,入门的方法就是:不要急,从前台操作入手,研究透了基本操作再研究后台的设置。这个方法简单吧?对,抛开你以前所有的经验和资历,象一个完全不懂的菜鸟那样从SAP的基本操作开始学习。看看PPT,看看入门教材一步一步的走下去。

很多人都上网去找中文的资料,说是看起来更容易些,可别忘记了,那并非SAP官方资料。在翻译和理解上中英文的资料差异还是非常大的。尤其是提高方面的资料――官方认证培训资历,可是只有英文版的。

作为一个自学者,在熟练的掌握了SAP的基本操作以后,必然要去看SAP的官方培训资料――提高嘛。更不用说我们在前面提到的ONLINE HELP。在这方面,如果没有良好的英语基础或者说没有看英文资料的习惯,在很长的时间内都难以提高。

说到英文的资料,如果是自学的话,最终于的一点还是强迫自己习惯这些东西。这也是没有办法的事情。

研究SAP的后台配置是学习最重要的工作之一,就我目前所能掌握到的资料来看,有心将所有的配置关联讲清楚的,也只有SAP的官方资料。所以……,不要叫苦啦。

posted @ 2008-08-15 09:46 SAP_LOVE 阅读(1405) | 评论 (1)编辑 收藏

2008年8月12日 #

ABAP 关于DATA Reference的使用
posted @ 2008-08-12 17:24 SAP_LOVE 阅读(1215) | 评论 (0)编辑 收藏

2008年8月7日 #

  今天刚好是七夕节,我要在这落脚了,与大家一同分享学习过程中的点点滴滴!!
posted @ 2008-08-07 16:27 SAP_LOVE 阅读(1058) | 评论 (0)编辑 收藏