Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: HANA SQL result not as expected

$
0
0

Hi Lars,

 

Thanks for your advice, in fact I've got a lot help from my colleagues, at first the problem is found in a BEx query of a big Calculation View, and now we are sure that the problem is caused by the aggregation. In a very simple Calculation View, just like this one, the problem accures.

AggregationOnly_2Aggregations.JPG

In fact the most weird thing is that if I add 'and belnr is not null' in 'where', the result is totally different, I mean I can get the right result.(and belnr <> '' also works). I tried 'and belnr is null' but get nothing.

The script I use:

SELECT

sum("HSL")

FROM "_SYS_BIC"."tmp.fi.rtc.cube/ZRTC_C_ACDOCA_AONLY"

where rclnt = '500' and rldnr = '0L' and rbukrs = 'ZFA2'

  and racct in (select saknr from saper9.ska1 where bilkt = '0003020000' )

-- and belnr is not null

 

I even think this is caused by the system cache or something for better performance, because I'm working on a develop system which I think might consist something under development.


Viewing all articles
Browse latest Browse all 9165

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>