Professional Documents
Culture Documents
ABAP On HANA - Enhance Performance Through Code Push Down - SAP Blogs
ABAP On HANA - Enhance Performance Through Code Push Down - SAP Blogs
ABAP On HANA - Enhance Performance Through Code Push Down - SAP Blogs
Community
Former Member
July 30, 2013 2 minute read
With SAP Netweaver AS ABAP 7.4, I thought of a simple ABAP program to compare the performance between ABAP program consisting of classic SQL(multiple joins & currency
conversion) against the ABAP program calling HANA calculation view directly (classic SQL with joins & currency conversion logic converted into HANA calculation view).
ABAP with SQL embedded – SQL query with multiple joins & currency conversion in ABAP program.
vs
ABAP program calling HANA calculation view directly a.k.a code push down to HANA DB.
You can manage ABAP program, modeling & ABAP profiling all in one place with SAP HANA studio. You need to install additional ABAP development plugins for eclipse and I
used SAP HANA Studio version: 1.0.58.
Below is the screen I captured while pro ling ABAP program from HANA studio. ABAP program uses classic SQL to fetch data from BKPF, BSEG (multiple joins) and perform currency
conversion using standard function module. Actual database time that it took to execute ~ 24 seconds.
SQL statement navigated from hit list (Screen 3) shows more time consumed at DB during execution. SQL query from screen 1 is later converted into calculation view in HANA DB to improve
the performance drastically.
Screen 2:
Snapshot from ABAP pro ling analysis done in HANA studio with database time: ~ 24seconds
Screen 3:
Complete Hit list of ABAP program showing BKPF SQL fetch and currency conversion (Perform CONV_CC) which consumed most of the time. Both the SQL statement and currency conversion
is pushed down to calculation view for performance boost.
Screen 4:
https://blogs.sap.com/2013/07/30/abap-on-hana-code-push-down-performance/ 1/4
2/5/2020 ABAP on HANA – enhance performance through code push down | SAP Blogs
SQL query & currency conversion is converted into HANA calcula on view and called from SQL query as shown below: ZBC_BSEG_DOC is the dic onary view created from HANA calcula on view.
HANA views can be accessed by standard SQL With ABAP 7.40 they are natively supported in ABAP
ABAP pro ling & performance after code push down to HANA
https://blogs.sap.com/2013/07/30/abap-on-hana-code-push-down-performance/ 2/4
2/5/2020 ABAP on HANA – enhance performance through code push down | SAP Blogs
Screen 5:
ABAP code optimized for HANA. All SQL joins & currency conversion pushed down to HANA DB as calculation view CA_BSEG_DOC.
Screen 6:
Proxy ABAP dictionary view generated from HANA calculation view so it can be used in ABAP SQL.
Screen 7:
ABAP pro ling snapshot showing approx. 2 seconds spent in database during execution compared to 24 seconds with classic SQL.
Screen 8:
Screen 9:
Alert Moderator
Assigned tags
View more...
https://blogs.sap.com/2013/07/30/abap-on-hana-code-push-down-performance/ 3/4
2/5/2020 ABAP on HANA – enhance performance through code push down | SAP Blogs
Related Questions
Create HANA CDS View from SAP Netweaver 7.4 without XS engine
By Venkatesh V , Oct 21, 2015
Find us on
Newsletter Support
https://blogs.sap.com/2013/07/30/abap-on-hana-code-push-down-performance/ 4/4