Quantcast
Channel: SCN : Unanswered Discussions - SAP BW Powered by SAP HANA
Viewing all articles
Browse latest Browse all 1060

Validate SQL from Bex Query on HANA calculation views

$
0
0

Hi

 

I have a HANA calculation view that contains a number of calculation views. Basic only 6 tables are read with various selection criteria including use of constant values. I have included the calculation view in a Composite provider.

I would like to know what SQL statement (the HANA SQL statement) my Bex query push down to the HANA database when reading from the calculation view and the underlying tables in order to validate that i.e. query pruning works and also to ensure that my calculation view is processed optimal.

If I make below SQL statement I can easy analyse in PlanViz

SELECT "SALESORG", "RKFTYPE", "RVALTYP", "CURRENCY", "UNIT", SUM("AMOUNT") AS "AMOUNT_SUM", SUM("QUANTITY") AS "QUANTITY_SUM"

FROM "_SYS_BIC"."XXX.YYYYY"

WHERE ("SALESORG" = 'ABCD' AND "RKFTYPE" = '999')

GROUPBY "SALESORG", "RKFTYPE", "RVALTYP", "CURRENCY", "UNIT"

ORDERBY "SALESORG" ASC, "RKFTYPE" ASC, "RVALTYP" ASC, "CURRENCY" ASC, "UNIT" ASC

 

If I make a similar Bex query on my Composite provider I would like to know what SQL string that BW passes on to the HANA database, but I have not been able to find that statement.

 

The SQL and Python trace from RSRT does not really give me the needed insight and for sure not a SQL statement that I can run in PlanViz.

 

When I activate SQL trace on the HANA database I get something like below:

cursor_139760202546048_c178.execute(''' CALL SYS.TREXviaD...

cursor_139760202546048_c178.execute(''' CALL SYS.TREXviaDBSLWithParameter(  ? ,  ? ,  ? , 'ROUTE_BY_TABLES( "_SYS_BIC"."XXX.YYYYY" )' )  ''', ('''asxml/olapCellSearch''', dbapi.Binary(binascii.unhexlify("……………………………………………………..0A43414C435F4D4F44454C3C43013E3E3E")), None))

 

Any help from you is more than welcome.


Viewing all articles
Browse latest Browse all 1060

Trending Articles



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