Professional Documents
Culture Documents
Performance Guidelines For ABAP Development On The... - SAP Community
Performance Guidelines For ABAP Development On The... - SAP Community
- SAP Community
Community
Former Member
03-24-2013 4:46 PM
51 Kudos
If you are an experienced ABAP Developer, then you most likely know the classical
performance guidelines for using Open SQL (if not, then you should look them up
immediately).
Let us first reconsider the existing guidelines. In a nutshell, they are usually
summarized in the “5 golden rules”:
https://community.sap.com/t5/application-development-blog-posts/performance-guidelines-for-abap-development-on-the-sap-hana-database/ba-… 1/17
4/22/24, 3:22 PM Performance Guidelines for ABAP Development on the... - SAP Community
All existing (standard and custom) ABAP code runs on SAP HANA without
modifications
All the existing guidelines are still valid for SAP HANA as general
recommendation
However, the priorities of some rules are changing, i.e. some aspects are less
important due to the nature of the In-Memory Column Store but there are also certain
patterns of non-optimal coding with higher impact on SAP HANA. Furthermore, there
https://community.sap.com/t5/application-development-blog-posts/performance-guidelines-for-abap-development-on-the-sap-hana-database/ba-… 2/17
4/22/24, 3:22 PM Performance Guidelines for ABAP Development on the... - SAP Community
are completely new opportunities for performance tuning on SAP HANA which
were not possible in the past, e.g. by pushing complex operations to the database.
In this blog series, hermann.gahm and myself will drill into more details of the slightly
adapted performance recommendations, and give some background information. In
addition, we try to give some guidance for several frequently asked questions.
https://community.sap.com/t5/application-development-blog-posts/performance-guidelines-for-abap-development-on-the-sap-hana-database/ba-… 3/17
4/22/24, 3:22 PM Performance Guidelines for ABAP Development on the... - SAP Community
In most cases, SAP HANA does not require secondary indices for
good search performance.
For some use cases secondary indexes can still be beneficial. This is
especially true for highly selective queries on non-primary key fields.
These queries can be significantly improved by indexes on single
fields which are most selective. SAP Note 1794297 describes the
procedure to find and create these indexes.
https://community.sap.com/t5/application-development-blog-posts/performance-guidelines-for-abap-development-on-the-sap-hana-database/ba-… 4/17
4/22/24, 3:22 PM Performance Guidelines for ABAP Development on the... - SAP Community
As outlined above, the next post contains some more technical background
information for the reasoning behind these recommendations, and some answers to
frequently asked questions.
ABAP Development
Tags:
14 Comments
PatrickVanOs
Explorer
03-25-2013 2:58 PM
0 Kudos
Hi Eric,
According to note 1662726 the performance of a select statement with a FOR ALL
ENTRIES (FAE) clause could be poor. The note described to use a DB Hint.
However, one of the two prerequisites is that the select statement must not be a join
statement.
Regards,
https://community.sap.com/t5/application-development-blog-posts/performance-guidelines-for-abap-development-on-the-sap-hana-database/ba-… 5/17
4/22/24, 3:22 PM Performance Guidelines for ABAP Development on the... - SAP Community
Patrick
former_member192616
Active Contributor
03-31-2013 5:25 PM
0 Kudos
Hi Patrick,
Regarding the FAE with the join there is no hint necessary / available. A join / view
(avoiding the FAE) can (but does not have to) be beneficial. I would recommend to
try different variants. It also depends on the version of HANA that you have in use
since FAE processing in HANA might be different.
Kind regards,
Hermann
abdul_hakim
Active Contributor
04-05-2013 12:34 PM
0 Kudos
https://community.sap.com/t5/application-development-blog-posts/performance-guidelines-for-abap-development-on-the-sap-hana-database/ba-… 6/17
4/22/24, 3:22 PM Performance Guidelines for ABAP Development on the... - SAP Community
Thanks
Abdul Hakim
SuhaSaha
Advisor
04-26-2013 10:08 AM
0 Kudos
Looking forward to the next blog in the series. A lil' bit of ABAP code won't harm
anyone
BR,
Suhas
former_member192616
Active Contributor
05-18-2013 6:56 PM
0 Kudos
Hi,
Kind regards,
Hermann
Former Member
10-09-2013 1:53 PM
0 Kudos
Hello Hermann
If we migrate to a SAP HANA database on ECC, will our custom programs be more
performant even if we don't optimize them for HANA?
Same questions for the BW extractors and for some extraction programs generated by
the Informatica tool?
Globally, what can we expect in terms of performance increase on programs that are
not reviewed/optimized after migration to SAP HANA for ECC?
Thank you
Richard
former_member192616
Active Contributor
https://community.sap.com/t5/application-development-blog-posts/performance-guidelines-for-abap-development-on-the-sap-hana-database/ba-… 8/17
4/22/24, 3:22 PM Performance Guidelines for ABAP Development on the... - SAP Community
10-09-2013 2:23 PM
0 Kudos
Hi,
that depens on the SQL statements. Some will be faster, some will not change
Have a look at these documents for tools that can help you
http://scn.sap.com/docs/DOC-46714
http://scn.sap.com/docs/DOC-47444
Kind regards,
Hermann
Former Member
10-09-2013 3:03 PM
0 Kudos
https://community.sap.com/t5/application-development-blog-posts/performance-guidelines-for-abap-development-on-the-sap-hana-database/ba-… 9/17
4/22/24, 3:22 PM Performance Guidelines for ABAP Development on the... - SAP Community
Former Member
11-06-2013 8:08 PM
0 Kudos
Peter_Inotai
Active Contributor
11-21-2013 10:04 AM
0 Kudos
Hi Eric,
Is there any change regarding fully buffered tables (eg customizing tables)?
Or everything stays the same (except that it's also in memory in DB side)?
Thanks,
Peter
https://community.sap.com/t5/application-development-blog-posts/performance-guidelines-for-abap-development-on-the-sap-hana-database/b… 10/17
4/22/24, 3:22 PM Performance Guidelines for ABAP Development on the... - SAP Community
former_member192616
Active Contributor
11-25-2013 9:14 AM
0 Kudos
Hi Peter,
regarding buffered tables there is no change for the golden rules. We continue to use
them like we did in the past. Local application server memory access (buffered table
in-memory of the local application server) is still faster than remote memory access of
the table in-memory of the databse server. With SAP Netweaver 7.4 there is a new
table buffer based on internal tables that allows to have secondary indexes in the
table buffer. With that we have even more buffering options.
Kind regards,
Hermann
Peter_Inotai
Active Contributor
11-25-2013 11:54 AM
0 Kudos
Hi Hermann,
Peter
https://community.sap.com/t5/application-development-blog-posts/performance-guidelines-for-abap-development-on-the-sap-hana-database/b… 11/17
4/22/24, 3:22 PM Performance Guidelines for ABAP Development on the... - SAP Community
justin_molenaur2
Contributor
02-26-2015 7:43 PM
1 Kudo
I would second the recommendation to try to eliminate the FAE completely and use a
join instead.
I have a specific example at a customer where a cascading FAE was used as follows:
I imagine you'll find this technique all over the place. Anyhow, when running this
program normally on DB2, this specific section of code takes about 80 seconds (out of
a total of 100 seconds) runtime.
When I convert this to a join statement, not even a HANA view, just a simple join - I
get a total runtime of about 1.5s, so 52x+ faster.
SELECT X
FROM EKKO A
https://community.sap.com/t5/application-development-blog-posts/performance-guidelines-for-abap-development-on-the-sap-hana-database/b… 12/17
4/22/24, 3:22 PM Performance Guidelines for ABAP Development on the... - SAP Community
So I think the name of the game is finding these scenarios where you can make the
DB do the heavy lifting that it's meant to do.
Happy HANA,
Justin
Former Member
11-03-2015 3:00 PM
0 Kudos
Regards
Comment
https://community.sap.com/t5/application-development-blog-posts/performance-guidelines-for-abap-development-on-the-sap-hana-database/b… 13/17
4/22/24, 3:22 PM Performance Guidelines for ABAP Development on the... - SAP Community
Field Symbols in ABAP 1 Fiori 1 Fiori App Extension 1 Forms & Templates 1
SAP BTP 1 SAP Build 1 SAP Build apps 1 SAP Build CodeJam 1
SAP CodeTalk 1 SAP Odata 1 SAP UI5 1 SAP UI5 Custom Library 1
User Experience 5
https://community.sap.com/t5/application-development-blog-posts/performance-guidelines-for-abap-development-on-the-sap-hana-database/b… 14/17
4/22/24, 3:22 PM Performance Guidelines for ABAP Development on the... - SAP Community
Get Started with the ABAP Development Tools for SAP NetWeaver
OlgaDolinskaja
Product and Topic Expert
172476 12 1440
Become an ABAP in Eclipse Feature Explorer and earn the Explorer Badge
ThFiedler
Product and Topic Expert
https://community.sap.com/t5/application-development-blog-posts/performance-guidelines-for-abap-development-on-the-sap-hana-database/b… 15/17
4/22/24, 3:22 PM Performance Guidelines for ABAP Development on the... - SAP Community
Six kinds of debugging tips to find the source code where the message is raised
JerryWang
Advisor
208311 56 320
BaerbelWinkler 5
qmacro 5
Juwin 3
matt 3
horst_keller 2
former_member204528 2
https://community.sap.com/t5/application-development-blog-posts/performance-guidelines-for-abap-development-on-the-sap-hana-database/b… 16/17
4/22/24, 3:22 PM Performance Guidelines for ABAP Development on the... - SAP Community
adityaw 2
https://community.sap.com/t5/application-development-blog-posts/performance-guidelines-for-abap-development-on-the-sap-hana-database/b… 17/17