Guys I really appreciate all your help. But with that said I'm actually not looking to focus on performance tuning with this thread. I'm simply trying to find which of the dozens of reports running from our sidecar are consuming the most memory. So I'm looking more at a measuring mechanism to find these queries. I completely agree about my example but it's just one example of many and I'm eventually going to review this query and many more with ABAP team and I'm going to train them to push down logic to HANA as well. But really this post is just trying to identify which queries may have caused massive unloading in our production environment in recent weeks. ie: which query may have run that triggered unloading of MSEG and many more tables. So this is just preliminary research to try to find the biggest consumers of memory that may have caused the unload. Thus far it's only happened about once a week and it's not consistent which day it may occur but the time of day does seem to be consistent about 919AM. This example of repeated BKPF lookups actually doesn't seem to be consuming a lot of memory and while really poor code it's not the smoking gun it seems.
-Patrick