6 Kick-Ass Tips to Improve SAP Performance
-
Upload
basis-technologies -
Category
Software
-
view
158 -
download
1
description
Transcript of 6 Kick-Ass Tips to Improve SAP Performance
© Basis Technologies International 2014
kickas
© Basis Technologies International 2014
Kick-Ass tips to improve your SAP performance
© Basis Technologies International 2014
and you want to
your performance…
STEP UP
the first step is ensuring that you have
high performance code
Kick-Ass tips to improve your SAP performance
© Basis Technologies International 2014
the SAP code inspector rapidly finds issues within your ABAP code that might not be obvious to the naked eye…
things like selects not
using indexes, and
nested select statements
Kick-Ass tips to improve your SAP performance
© Basis Technologies International 2014
you might know that you can get
it from
SE80/SE37/SE20
via
Menu>Check>Code Inspector
but have you tried
transaction
SCI?
take a look, it provides some very powerful extra
features
Kick-Ass tips to improve your SAP performance Kick-Ass tips to improve your SAP performance
© Basis Technologies International 2014
Kick-Ass tips to improve your SAP performance
© Basis Technologies International 2014
Kick-Ass tips to improve your SAP performance
© Basis Technologies International 2014
you should be using Code Inspector as part of your Change Control and QA processes to
prevent issues that might affect performance from getting into your production systems in
the first place…
TEACHER’S PET
Kick-Ass tips to improve your SAP performance
© Basis Technologies International 2014
Kick-Ass tips to improve your SAP performance
© Basis Technologies International 2014
Big Data has
Kick-Ass tips to improve your SAP performance
© Basis Technologies International 2014
meaning that your reports, extracts and interfaces get slower and slower as the data they crunch gets
bigger
bigger and
Kick-Ass tips to improve your SAP performance
© Basis Technologies International 2014
because ABAP code processes large data volumes
sequentially your ABAP runtimes will
get longer and longer over time
Kick-Ass tips to improve your SAP performance
© Basis Technologies International 2014
this means that your business users will have to wait longer for their precious information
Kick-Ass tips to improve your SAP performance
© Basis Technologies International 2014
which means - yep, you guessed it
even more waiting…
and, if multiple users are running the same report, they’re placing extra load on your hardware to run the same reports multiple times
Kick-Ass tips to improve your SAP performance
© Basis Technologies International 2014
Kick-Ass tips to improve your SAP performance
© Basis Technologies International 2014
Kick-Ass tips to improve your SAP performance
© Basis Technologies International 2014
take advantage of parallel processing
spread the workload across
your existing under-utilized
processing power
Kick-Ass tips to improve your SAP performance
© Basis Technologies International 2014
but parallel processing is complex to develop
control and manage…
and predefining multiple background jobs with variants isn’t really a
scalable solution
Kick-Ass tips to improve your SAP performance
© Basis Technologies International 2014
and even allow reports to be run once for multiple
users without any performance
overhead
solutions like Mass Data
Runtime simplify parallel
processing
Kick-Ass tips to improve your SAP performance
© Basis Technologies International 2014
Kick-Ass tips to improve your SAP performance
© Basis Technologies International 2014
sometimes, the fastest way to
make your code run faster is not
to code…
Kick-Ass tips to improve your SAP performance
© Basis Technologies International 2014
log out of SAP
take a walk to sit with your business users or set up a regular call with your
user community
© Basis Technologies International 2014
your business
users know exactly
what they want
Kick-Ass tips to improve your SAP performance
© Basis Technologies International 2014
sometimes this can be
lost in translation
between
&
Kick-Ass tips to improve your SAP performance
© Basis Technologies International 2014
it’s only when you spend time really understanding business
requirements that you can write code that elegantly delivers them
many performance issues can be resolved simply by restricting
default values on selections screens, or breaking processing
down into discrete steps
© Basis Technologies International 2014
frequent user conversations will improve your understanding of
requirements and open up new ways of working that
save days of unnecessary coding
Kick-Ass tips to improve your SAP performance
© Basis Technologies International 2014
Kick-Ass tips to improve your SAP performance
© Basis Technologies International 2014
like making incorrect
tables selections by declaring selections
without full indexes or incorrect indexes
when coding, there are some important points that are easily overlooked but have a
huge impact on performance…
Kick-Ass tips to improve your SAP performance
© Basis Technologies International 2014
indexes are your
friend
Kick-Ass tips to improve your SAP performance
© Basis Technologies International 2014
take general ledger table BSEG it contains most of the information required but unless it’s read using the full key, it’s very inefficient as a cluster table leading to slow data retrieval
Kick-Ass tips to improve your SAP performance
© Basis Technologies International 2014
click on the Indexes button in SE11 to compare the indexes against your WHERE clause and adjust to fit get the exact index for BSEG, AUFM, VBFA, EDIDC or any of the massive cluster tables and you’re well on the way to writing high performance code
Kick-Ass tips to improve your SAP performance
© Basis Technologies International 2014
these tables have efficient
indexes available to act as the
driving SELECT to then allow a full
key to be used on BSEG
leading to much
improved performance
BSIS/BSAS G/L ITEMS
BSID/BSAD CUSTOMER
OPEN/CLOSE ITEMS
BSIK/BSAK VENDOR
OPEN/CLOSE ITEMS
Kick-Ass tips to improve your SAP performance
© Basis Technologies International 2014
Kick-Ass tips to improve your SAP performance
© Basis Technologies International 2014
WRONG…
if you ever attended the BC400 at the SAP Academy you were shown transaction SE30 on day 1…
Kick-Ass tips to improve your SAP performance
© Basis Technologies International 2014
it provides you with an area where you can test two versions of code against each other. that often overlooked Tips & Tricks button will take you to this very useful sandpit…
© Basis Technologies International 2014
you can check if one WHERE clause is more efficient than another… or if an INNER JOIN really does improve things more than a SELECT/FOR ALL ENTRIES combo
Kick-Ass tips to improve your SAP performance
© Basis Technologies International 2014
a few minutes trying out different data input and SELECT statements will reap rewards later in final processing times and a little online research will reveal plenty of blogs full of performance tips and SCN forums crammed with topics that will help you work out whether method A is faster than method B
you might be surprised…
Kick-Ass tips to improve your SAP performance
© Basis Technologies International 2014
Kick-Ass tips to improve your SAP performance
© Basis Technologies International 2014
shared experiences make us all better
programmers so make sure you
pass on your learning for the benefit of
fellow developers
if you solve an SAP performance problem… post the solutions to the SCN forum
Kick-Ass tips to improve your SAP performance
© Basis Technologies International 2014
become a performance informer and put 10 minutes in your diary each week to share what you’ve learned
if we all help one fellow ABAP developer to improve their SAP system performance, the world will be a better place
© Basis Technologies International 2014
kickas
www.basistechnologies.com