您的位置:首页 > 其它

SAP ABAP 性能优化技巧 – 视图取代基本表

2009-08-03 19:26 501 查看

使用视图取代基本表

很多时候 ABAP 程序员需要使用基本表和嵌套的选择。其实我们应该查看一下是否有SAP已经提供的这些基本表的某些视图可供使用,以便直接获得想要的数据,而不用特别编写代码来获取。

不建议使用:

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.

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: