使用ST05分析IBASE search identical select

58 阅读1分钟

Created by Jerry Wang, last modified on Apr 23, 2014

在IBASE tree view里Level up button的enable与否取决于当前的IBASE是否是root IBASE。

 

clipboard1

 

 

 

判断的依据是使用function module CRM_IBASE_COMP_FIND_MULTI. 因为该function module在view controller的GET_BUTTON方法里调用,而GET_BUTTON在每当UI产生到后台的roundtrip时都会被call到,因此有必要分析该FM的性能和buffer behavior。

 

 

激活ST05 trace,重复点击IBASE 节点( 例如重复点7次)

clipboard2

 

关掉ST05 trace,Trace->Value-Identical Statements:

clipboard3

 

发现如下四个Database table & view在7次UI点击时也被访问了7次:

clipboard4

 

通过点击button "Display ABAP Call Location" 能够navigate到产生identical select的ABAP语句:

clipboard5

 

clipboard6