ABAP On HANA - Enhance Performance Through Code Push Down - SAP Blogs

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

2/5/2020 ABAP on HANA – enhance performance through code push down | SAP Blogs

Community

Ask a Question Write a Blog Post Login

Former Member
July 30, 2013 2 minute read

ABAP on HANA – enhance performance through code push down


Follow RSS feed Like

1 Like 4,159 Views 0 Comments

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.

From the image below


Screen 1:

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

Currency conversion code inside – Perform CONV_CC.

ABAP code optimization using HANA 24 seconds to 2 seconds:

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.

Dictionary view: ZBC_BSEG_DOC

HANA Calculation view:

HANA views can be accessed by standard SQL With ABAP 7.40 they are natively supported in ABAP

Mapping to DDIC types possible

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:

HANA calculation view inside HANA DB.

Screen 9:

Hit list from ABAP pro ling.

Alert Moderator

Assigned tags

ABAP Development | 7.4 | abap for hana | abap4hana | abap7.4 |

View more...

Related Blog Posts

ABAP for HANA and “Code Push-Down”

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

By Jens Weiler , Feb 03, 2014

How-To Guides for Suite on HANA – powered by SAP CSA


By Former Member , Jul 10, 2013

ABAP for SAP HANA Reference Scenario – Video Tutorials


By Carine Tchoutouo Djomo , Oct 21, 2013

Related Questions

Bene t to use HANA view or code push down


By Former Member , Aug 15, 2013

Di erent Code Push Down techniques in SP10


By Siva prasad Ramani , Nov 16, 2015

Create HANA CDS View from SAP Netweaver 7.4 without XS engine
By Venkatesh V , Oct 21, 2015

Be the rst to leave a comment

You must be Logged on to comment or reply to a post.

Find us on

Privacy Terms of Use

Legal Disclosure Copyright

Trademark Cookie Preferences

Newsletter Support

https://blogs.sap.com/2013/07/30/abap-on-hana-code-push-down-performance/ 4/4

You might also like