Sei sulla pagina 1di 24

openS

ABAP

WEEK 2, U

00:00:13
00:00:20
00:00:23
00:00:33
00:00:43
00:00:50
00:01:00
00:01:10
00:01:20
00:01:28
00:01:35
00:01:44
00:01:51
00:01:58
00:02:04
00:02:10
00:02:18
00:02:28
00:02:35
00:02:46
SAP
P Deve
NIT 1
Hello and
I hope you
Hi there. B
ABAP Cod
We will sta
existing A
static code
optimizatio
and we wi
Applicatio
Finally, we
when runn
That will b
Integrated
But let's ju
and espec
the upcom
We will sta
also perfo
We will th
coding
and how t
application
You will se
Okay, so n
Migration
There can
and this is
to show yo
If you hav
there are
and this is
elopm
welcome ba
u did well wit
Before we sta
ding: Where
art with intro
ABAP coding,
e checksw
on potential
ill show you
on Server AB
e will show y
ning on SAP
be, for examp
d Data Acces
ump to the sl
cially what th
ming weeks.
art with the D
ormance opti
en in the we
to explore the
ns.
ee the slides
now let's go
to SAP HAN
n be some fu
s exactly whe
ou tools to d
ve normal cod
some excep
s when you u
ent fo
ack to week 2
th the weekly
art with unit
to Optimize?
ducing you t
,
we'll continue

how you can
AP.
you some reu
HANA.
ple, the ABA
ss) and some
ides and hav
hat means fo
Detect phase
mization pote
ek 3 and the
e features of
s a couple of
to the first st
NA is nothing
nctional issu
ere this unit c
etect those p
ding, basical
tions
used, for exa
r SAP
2, unit 1, Exis
y assignmen
1, let me out
?
to tools to fin
e with that in
n see the full
use compone
AP List Viewe
e other impro
ve a look at w
r us in this c
e mentioned
entials.
e early week
f SAP HANA
f more times
tep: migratio
g more than a
ues when mig
comes in
potential func
lly it should w
ample, Native
HANA
sting Code: I
ts.
tline the seco
d and spot p
the second u
SQL profile
ents that we
er with Integr
ovements.
what migratio
oursewhat
already: func
4 talk about
A and really re
in the upcom
n to SAP HA
any other dat
grating from
ctional issue
work as befo
e SQL coding
A
Is It Still Valid
ond week of
potential func
unit when it i
of your runn
have improv
ated Data Ac
on to SAP HA
t we will be ta
ctional corre
how to optim
ethink and in
ming units.
ANA.
tabase migra
one databas
s.
re the migrat
g with, for ex
d?
this openSA
ctional issues
s going to be
ning applicati
ved for perfec
ccess (the A
ANA means
talking about
ctness and,
mize existing
nnovate your
ation.
se to another
tion, but as a
xample, an E
AP course:
s in your
e about
ons of your
ctly running
ALV with
t in this and
of course,
ABAP
r
r database,
always,
EXEC SQL


00:02:56
00:03:04
00:03:15
00:03:21
00:03:27
00:03:37
00:03:44
00:03:55
00:04:05
00:04:10
00:04:19
00:04:25
00:04:37
00:04:47
00:04:53
00:05:04
00:05:12
00:05:18
00:05:25
00:05:30
00:05:40
00:05:50
00:05:58
statement
and where
Also there
have, of c
where the
it
and if you
you might
at some c
Yes, we h
exception
so to state
exception
And those
your ABAP
for examp
Jens has
be a probl
If it is valid
However,
work on S
The proble
that really
and those
Another e
respected
The hint is
Then the r
SAP HAN
Oracle Da
That is no
and if you
Oracle da
you might
exception
But you m
gives you
and that m
t in the ABAP
e you really r
e are some is
course, algor
ey do their op
don't specify
t get different
code example
have prepare
s,
e it again, ev
s that I will s
e exceptions
P coding wh
ple, from SQL
mentioned th
lem, really de
d for any dat
for example
SAP HANA.
em with Nati
y then gives y
e are, of cour
xample here
d by SAP HA
s there, you w
relying on un
NA uses anot
atabase.
ot really a pro
have relied
tabase,
t get into trou
that will give
might get som
nonsense fo
might not eve
P
relied on nat
ssues with im
ithms in the c
ptimization w
y, for examp
t ordered tab
es.
d some code
verything will
how you on
are then, of
en migrating
L Server to th
hem already
epending on
abase, then
here, in this
ve SQL here
you a runtime
rse, are not th
e is a databas
NA.
will get a wa
ndocumented
her ordering
oblem. Let's s
on that impli
uble and it is
e you a hint t
me random or
or your applic
en get notice
ive database
mplicit DB-sp
coding
when selectin
ple, an ORDE
bles from one
e snippets sh
work fine wh
the next slid
course, whe
g,
he SAP HAN
for example
n the SQL sta
of course, it
s example, w
e in that case
e exception
hat nice to h
se-specific h
rning, but it i
d behavior. J
algorithm w
say it like thi
icit ordering,
especially p
that there is
rdering and y
cation
d in the first
e features an
pecific behav
g and prepa
ER BY clause
e database o
howing you e
hen migrating
e.
ere you have
NA database
e, the usage o
atement you
will work als
we have MYS
e with ABAP
ave, especia
hint. That is n
is not as pro
Jens has me
when retrievin
s: It's just un
for example
roblematic s
a problem.
you have rel
place but on
nd also used
ior, which me
ring the data
e in your SQ
or another on
exactly what
g to HANA e
to adopt ma
.
of native SQ
used.
so on SAP HA
SQL coding a
Database C
ally in produc
not really a p
blematic as a
ntioned that
ng the data th
ndocumented
e, of your SQ
ince you don
ied on a spe
nly in your pro
them in you
eans that da
a as you wan
QL statement
ne. But let's t
we talked ab
except for tho
andatory ado
QL that might
ANA.
and this will c
Connectivity,
ctive coding.
roblem. It wi
a runtime ex
already.
han, for exam
d behavior
QL Server dat
n't even get a
ecific ordering
oductive sys
2
r coding.
atabases
nted to have
,
take a look
bout,
ose
options in
or might not
certainly not
the ADBC,
ll just not be
xception.
mple, an
tabase or
a runtime
g and that
stem.

2
t
00:06:04
00:06:10
00:06:16
00:06:25
00:06:35
00:06:43
00:06:51
00:06:59
00:07:07
00:07:11
00:07:16
00:07:27
00:07:35
00:07:41
00:07:47
00:07:56
00:08:00
00:08:09
00:08:15
00:08:20
00:08:26
00:08:31
00:08:38
00:08:48
00:08:56
00:09:07
00:09:17
Nonsense
So here fo
and later o
Then, for
depooling
and if you
for other d
and not fo
can migra
Maybe on
on Native
So open S
independe
Just to ha
Okay, but
Yes, and f
snippets t
and we ha
but also h
It introduc
and this is
our ABAP
but, of cou
Yes, and t
so you ca
But let's ju
So the AB
so let's sta
Let's have
In order to
Here I use
So, let's h
couple of
For examp
example,
then also
e data is neve
or example, i
on use that d
example, dir
, declusterin
have check
databases
or the SAP H
ate to SAP HA
ne more last w
SQL statem
SQL stateme
ent.
ve you on th
even if you
for that we h
hat need ma
ave also intro
elps you with
ces verdicts w
s our all new
P Developme
urse, also av
to mention th
n check thos
ust have a lo
BAP Test Coc
art with the C
e a look with
o find functio
e the global a
ave a look a
tests running
ple, security
the usage of
the robust p
er a good ide
if I have a SE
data in a read
rect access to
g from Jens
s for existen
ANA, that al
ANA.
word so that
ments.
ents will run o
he safe side h
have such p
ave introduc
andatory ado
oduced a new
h quality ass
with priorities
ABAP Test
nt Tools
vailable in the
his here on th
se things alre
ok at that too
ckpit in its co
Code Inspect
the shortcut
nal issues in
and we have
at this FUNCT
g when work
checksI w
f ADBC whic
rogramming
ea in the bus
ELECT state
d table with b
o physical po
in the first w
ce of second
so is a mand
t you don't ge
on any datab
here.
roblems in th
ced new stati
options
w code chec
surance proc
s for develop
Cockpit and
e SE80.
his slide, the
eady before y
ol directly in
ore has Code
tor, so the Co
. I'm going to
n your coding
e introduced
TIONAL_DB
king with this
will just open
ch we had on
stuff like Se
siness proces
ement withou
binary searc
ool or cluster
week
dary indices w
datory adopt
et into panic
base, since O
he system, h
ic code chec
ck tool which
esses like, fo
pers on code
this ABAP T
e availability o
you migrate
the system.
e Inspector th
ode Inspecto
o the well-kn
g, we have p
FUNCTIONA
B check varia
Code Inspec
thatlike cr
n the slide,
arch DB Ope
ss. Not really
t a specific O
h, that might
r tables. We
which you, fo
ion that you
mode or som
Open SQL is
elp is near.
ks to really s
is not only a
or example, a
Test Cockpit
of that tool is
to SAP HAN
hings,
or inspection
own Code In
rovided a glo
AL_DB, it is c
nt, and you c
ctor variant.
itical stateme
erations in Po
y.
ORDER BY s
t get you into
have heard
or example,
have to do b
mething like t
standard an
show you tho
a code check
a Q-Gate an
is natively in
s even before
NA.
methods.
nspector.
obal check va
called.
can see that
ents or here,
ool/Cluster T
3
statement,
o trouble.
about
have only
before you
that, it's just
nd database-
ose code
k tool
nd so on.
ntegrated in
e 7.4,
ariant.
we have a
, for
Tables.

3
-
00:09:27
00:09:35
00:09:46
00:09:52
00:10:02
00:10:13
00:10:22
00:10:33
00:10:41
00:10:48
00:11:00
00:11:14
00:11:23
00:11:33
00:11:40
00:11:48
00:11:58
00:12:05
00:12:15
00:12:21
00:12:34
00:12:40
Or, for exa
statement
So you se
check that
or in your
However,
Cockpit an
For that, le
go for the
and select
Developm
You can o
a FUNCT
but you ca
So here th
Apply it.
And in ord
guy doing
So I have
report doe
I'm just do
Test Cock
And I have
contains A
ABAP Tes
them.
So, for ex
So I'm del
is very ea
because t
SEARCH,
I have a S
TABLE bin
Again not
Okay and
that this is
Yeah, you
up...
Yes, thank
ample, the se
t.
ee we have th
t Z-coding in
namespace
we would lik
nd in its full i
et me close t
ABAP Proje
t from the co
ment and here
of course, co
IONAL_DB v
an also switc
hat is the def
der to showc
all of the stu
a report rea
es.
oing right-clic
kpit.
e incorporate
ATC errors,
st Cockpit er
ample, DELE
leting adjace
sy for me to
the SELECT
, the same h
SELECT aga
nary search
a good idea
last but not
s problematic
ur doing agai
k you. You h
earch for pro
hese checks
n your system
with this FU
ke to not sho
ntegrated in
that, I just co
ect, right-click
ontext menu
e an entry fo
nfigure your
variant
ch to that in y
fault of the sy
ase what the
upid things th
dy called ZS
ck on the rep
ed the FUNC
rors, and I ca
ETE ADJAC
ent duplicates
find
is directly ab
olds here.
in without an
statement.
because I h
least, a loop
c so...becaus
n the loop on
have here ag
oblematic sta
s. So in princ
m
UNCTIONAL_
ow that with t
the ABAP D
opied the FU
k,
the Propertie
or ABAP Test
system or th
your specific
ystem and I w
ese check to
hat you shou
STATIC_FUN
port here in th
CTIONAL_DB
an see them
ENT DUPLIC
s but, well, th
bove. Let's h
n ORDER BY
have forgotte
p at the intern
se I'm doing.
n the SELEC
ain the SELE
atements, he
iple, you wou
_DB variant.
he Code Ins
Development
NCTIONAL_
es. And you
t Cockpit.
he ABAP Tes
Eclipse insta
will change t
ols are capa
uld not do.
NCTIONAL a
he Project Ex
B checks. Ex
in the Probl
CATES. Let's
here is no or
have a look fo
Y and I'm usi
n this ORDE
nal table and
..
CT you have
ECT* with th
re without th
uld now go a
pector, but w
Tools and E
_DB name he
can see here
st Cockpit in
allation or the
that with FUN
ble of, we ha
nd I'm just...
xplorer and s
xecute it and
ems view. I c
s just jump th
dering applie
or example a
ng then this
ER BY.
it says it's p
above, if you
e DELETE A
he ORDER B
and execute
with the ABA
Eclipse.
ere over. Clo
e the ABAP
your system
e ADT instal
NCTIONAL_
ave provided
I don't tell yo
select Run A
you will see
can even na
here.
ed here. Of c
at the READ.
internal tabl
problematic a
u scroll just a
ADJACENT
4
BY
that or
P Test
ose that, and
m to run with
lation.
_DB and
d some bad
ou what the
As ABAP
e that it
vigate to
course, this
...BINARY
e in a READ
and it says
a little bit

4
d
D
00:12:47
00:12:57
00:13:07
00:13:12
00:13:18
00:13:23
00:13:31
00:13:37
00:13:46
00:13:56
00:14:04
00:14:12
00:14:24
00:14:35
00:14:43
00:14:48





DUPLICA
this is also
AT NEW c
beforehan
other step
You just h
Exactly. S
because t
Okay, so m
Tools in E
Exactly bu
direction.
So, the qu
check bec
for the fun
runs on yo
for empty
just execu
without an
help you.
You can r
to gain the
Yes, so it
that conce
Okay, the
So, week
See you fo
ATES and afte
o a code par
carrid and yo
nd the carrid
p-ins of that lo
have to get ri
So it's very im
they can real
much about
Eclipse.
ut there come
uestion is if y
cause that st
nctional issue
our productiv
SELECT...F
uted
n ORDER BY
un it on your
e right positio
really supple
ept also com
n thank you
2 unit 2, wha
or the next u
erward you d
t that you sh
ou...
was sorted a
oop at this p
d of the AT N
mportant to ha
lly get you in
the ABAP Te
es only one m
you have som
atic code che
es might not
ve system an
FOR ALL ENT
Y clause, so
r productive s
ons and have
ements the s
ing in one of
for unit 1. Le
at about the
unit. Bye-bye
do a LOOP
hould check f
and now it m
osition.
NEW or add
ave a look a
nto trouble sin
est Cockpit a
more questio
me, if you co
ecks
find all prob
nd checks, fo
TRIES or un
you might ha
system just f
e a secure m
static code ch
f the next un
et's now take
performance
.
for. And here
may be not so
an ORDER
t such code
nce you relie
and the integ
on in the gam
uld add som
lematic thing
or example,
nsecure ones
ave 100,000
for 1 or 2 we
migration pha
hecks with ru
its.
e a look at wh
e of my codin
e we have the
orted by the c
BY clause.
snippets
ed on the imp
gration in our
me...sorry, th
e runtime da
gs and if you
s, or find SQL
of them, this
eks and the
ase.
untime inform
hat's upcomi
ng?
e AT NEW b
carrid so you
plicit ordering
r ABAP Deve
his was the w
ata to that sta
can have a
L statements
s report here
result will the
mation and w
ng.
5
because the
u could have
g.
elopment
wrong
atic code
report which
s that are
e will really
en help you
we will see

5

WEEK 2, U

00:00:13
00:00:16
00:00:26
00:00:33
00:00:39
00:00:44
00:00:52
00:01:02
00:01:11
00:01:16
00:01:24
00:01:29
00:01:35
00:01:40
00:01:47
00:01:52
00:01:58
00:02:04
00:02:10
00:02:14
00:02:26
00:02:32
00:02:39
NIT 2
Hi there a
Hi. In the
migrating
In this unit
Jasmin.
Thank you
phase.
So you wo
and you h
the ABAP
Today we
performan
Okay, so i
HANA wit
is everyth
Well the a
have,
so how m
If there is
database,
there is, o
The good
Jens will t
And more
Okay, Jen
Yes, of co
So most o
mean
and espec
First of all
and the sa
With SAP
important.
Let's first o
it's based
nd welcome
last unit we'v
to SAP HAN
t, we will tac
u Jens. So le
ould like to m
have already
Test Cockp
will ask ours
nce optimizat
it's all about
h my custom
ing running f
answer is, tha
uch time you
only ABAP c

of course, no
news is we
talk about tha
over, we hav
ns, please ca
ourse. So the
of you, or som
cially what th
, in the days
ame importa
HANA, this
.
of all take a
on the archi
back to wee
ve talked abo
NA.
kle the quest
et me show y
migrate to SA
executed the
it as we have
selves the qu
tion potentia
performance
m coding,
faster? And t
at depends.
u really execu
coding only r
potential for
have recomm
at in a minute
ve tools that
an you introd
ese guideline
me of you, ha
hey now mea
before SAP
nce.
has changed
look at the m
tecture and t
ek 2, unit 2.
out the tools
tion, What a
you where we
AP HANA or y
e functional
e shown you
uestion abou
l checks that
e and you typ
the answer is
It really depe
uted of your
running on th
r performanc
mendations a
e.
help you to f
uce the SQL
es have been
ave probably
an when we h
P HANA, all o
d a little bit. S
more importa
the layout of
to detect po
bout the perf
e are in the s
you already
correctness
u in the last u
ut performanc
t we have pr
pically ask th
s yes.
ends on how
programs on
he ABAP serv
ce improveme
available for
follow these
L performanc
n around alre
y seen this, b
have SAP HA
of these guide
So some are
nt ones and
f SAP HANA
tential functio
formance of
storyboard. W
migrated to S
checks with
unit.
ce and we w
ovided for yo
he question,
much datab
n the databas
ver without in
ents with SA
you so perfo
guidelines.
ce rules guide
eady before S
but let me ex
ANA.
elines or rule
more impor
they are mo
, as we have
onal issues w
your custom
We are still in
SAP HANA
the Code Ins
will show you
ou.
I have migra
base-oriented
se.
nteracting w
AP HANA.
ormance guid
elines for us
SAP HANA.
xplain in deta
es had the sa
rtant and som
ore important
e told you in w
6
when
m coding?
n the Detect
spector or
today the
ated to SAP
d coding you
ith the
delines.
?
ail what they
ame ranking
me are less
because
week 1.

6
u
00:02:45
00:02:54
00:03:04
00:03:14
00:03:18
00:03:21
00:03:28
00:03:35
00:03:44
00:03:54
00:04:03
00:04:13
00:04:19
00:04:26
00:04:35
00:04:46
00:04:52
00:05:01
00:05:08
00:05:13
00:05:20
00:05:25
00:05:38
Okay, so l
First one:
you should
which mea
you only w
You shoul
Another o
This basic
the applic
or later on
There's no
you really
Instead of
inside. Yo
And of cou
operations
So, this ca
then selec
This can b
tables.
This will b
Another p
bigger inte
and you w
the INSER
This is mu
array oper
Those are
Data para
What's no
unnecess
But alway
So you ca
unnecess
So you sh
Okay, so n
to find pot
Thank you
let's take a lo
Keep result
d only select
ans apply me
want one line
ldn't do that,
ne is minimiz
cally means o
ation server
n a UI, progra
ormally only
need all of t
f a SELECT
ou probably d
urse, minimiz
s instead of s
an be once y
ct, for examp
basically be w
be handled la
oint here cou
ernal table
want to insert
RT statemen
uch better if y
ration.
e the ones th
adigm.
ot so importa
ary load awa
ys keep in mi
an, of course
ary load.
houldn't calcu
now enough
tential code s
u Jens. I will
ook and give
sets small. S
t the data wh
eaningful WH
e, you don't s
of course, b
ze the amou
only bring tha
am batch job
the columns
the columns.
* statement,
don't need th
ze the numb
single operat
you do a SEL
ple, the sales
written in one
ater in week 3
uld be the IN
t into the tabl
t in the loop
you do the IN
at are very im
nt anymore i
ay from the d
nd unnecess
, put load on
ulate someth
of these gui
snippets. Jas
show you th
e you some e
So this basic
hich you wan
HERE condit
select the wh
but it's a good
nt of data tra
at data to the
b, whatever.
s you need, s

if you think a
em all on the
ber of data tra
tions.
LECT of a sa
s order item t
e SELECT s
3, when we s
NSERT statem
le. So what w
by each line
NSERT after
mportant wh
is minimize s
database.
sary load.
n the databas
hing that you
idelines. Let'
smin.
hat using the
examples wh
cally means if
nt to display,
tion to the SQ
hole table.
d example he
ansferred.
e application
So how do y
so don't write
about the MA
e UI at the sa
ansfers. This
ales order he
table.
tatement, jus
show you the
ment, for exa
we are seein
e of this table
the loop. Th
en we talk a
search overh
se if it makes
don't need o
s take a look
tools that we
at we mean
f you write a
QL statemen
ere.
server that y
you do this?
e a SELECT*
ARA table, th
ame time.
s basically me
eader table, t
st without a l
e new Open
ample. So yo
g is, you do
.
hat's basically
bout SAP HA
ead, for exa
s sense. It's j
or something
k at the chec
e have introd
with those ru
SELECT sta
nt. So, for ex
you really wa
* statement.
here are som
eans prefer
then write a l
oop, by joini
SQL enhanc
ou do someth
that, do a lo
y what we m
ANA and the
mple, or kee
just a topic o
g like that.
cks we have
duced alread
7
ules.
atement,
ample, if
ant to use in
Just only if
me columns
array
oop and
ng those
cements.
hing on the
op, and do
mean with an
e Code-to-
ep
of
introduced
dy in the last

7
00:05:44
00:05:49
00:05:55
00:06:08
00:06:15
00:06:24
00:06:33
00:06:36
00:06:45
00:06:52
00:07:02
00:07:09
00:07:17
00:07:26
00:07:31
00:07:35
00:07:44
00:07:50
00:07:57
00:08:05
00:08:16
00:08:23
unit.
We have t
and we ha
Let me jus
checks on
Let me jus
In the last
called PER
What's in
showed us
Here you
For examp
statement
Then we h
So the SE
problemat
if you late
columns.
And yes, m
That is a n
It is not ne
SELECT
so that is
That migh
We were n
modulariz
So for exa
SINGLE.
If that met
code insp
So now w
call and w
a function
problemat
But let me
have writt
So typical
we will sho
talked about
ave shown yo
st jump into t
n the perform
st execute th
t unit we had
RFORMANC
there? In pri
s to follow th
can find perf
ple, minimize
ts, for examp
have talked a
ELECT * state
tic
r on don't us
maybe also m
new check w
ew concernin
basically the
ht be problem
not able to fi
ation unit as
ample, you h
thod call is w
ection varian
we are able to
within that aga
call whatsoe
tic statement
e just take thi
en for you.
ly you have y
ow that you
the Code In
ou that with a
the system. W
mance side.
e Code Insp
FUNCTION
CE_DB.
nciple, the c
he guidelines
formance ch
ed result set
ple.
about the col
ement, as Je
se any of thos
mention the
we have intro
ng the check
e loop and wi
matic or that c
nd such thin
the SELECT
ave a metho
within the SEL
nts.
o also have th
ain,
ever certain
ts now.
is PERFORM
your custom
in a demo re
spector as w
a Code Insp
We've provid
pector, open
NAL_DB and
hecks that a
s.
ecks. Let me
so we have
lumn storage
ens just men
se columns t
Search DB O
duced.
k itself. Jens h
ithin this loop
can be probl
gs if the SEL
T SINGLE.
od call and w
LECT...END
he SELECT.
layers of mo
MANCE_DB
m coding and
eport that we
well as the AB
ector variant
ded somethin
the transacti
now we hav
re checking
e just open th
analyses of
e in SAP HA
tioned, is pro
that you have
Operation in
has mention
p, you have a
ematic.
LECT...END
within this ME
D SELECT, yo
...END SELE
odularization.
check varian
you would li
have specia
BAP Test Co
t called FUNC
ng very simila
on again, an
e a Global C
exactly the th
hat for you.
WHERE con
NA.
oblematic an
e selected bu
loops across
ed that you h
a SELECT S
SELECT wa
ETHOD call y
ou are not ab
ECT and a m
We can also
nt and execu
ke to check c
ally provided
ockpit
CTIONAL_D
ar, but for do
nd enlarge th
Code Inspect
hings that Je
nditions, for S
nd it is espec
ut only one o
s modulariza
have a SELE
SINGLE, for e
as in another
you have a S
ble to find th
method call or
o find that ki
ute it on a ba
custom codin
for that purp
8
DB.
oing the
hat a bit.
tor variant
ens has just
SELECT
ially
or two of the
ation units.
ECT...END
example.
r
SELECT
at with old
r function
nd of
ad guy we
ng. For us,
pose.

8
00:08:34
00:08:44
00:08:51
00:08:58
00:09:03
00:09:05
00:09:17
00:09:27
00:09:38
00:09:44
00:09:51
00:09:57
00:10:06
00:10:12
00:10:25
00:10:37
00:10:45
00:10:51
00:10:59
00:11:06
00:11:13
00:11:18
00:11:26
00:11:34
00:11:44
Okay, so l
like the on
I will not te
Yeah, but
Yeah, tha
As we've s
Cockpit va
Just go to
with PERF
I apply tha
Test Cock
And as sta
some erro
So here, f
You see th
execute th
SELECT S
but I'm co
above, I h
and within
here, I'm d
A similar t
statement
so here yo
unused.
Maybe it's
and it tells
Of course
on.
Okay. Wit
So we hav
ready.
So here is
So there is
checked b
So except
get ready
let me just op
ne we've see
ell you what
you know yo
nks for remin
stated in the
ariant in the p
the properti
FORMANCE
at, thanks for
kpit.
ated last time
ors indicating
for example,
hat within a f
his statemen
SINGLE here
ncentrating o
have a LOOP
n this loop, I h
doing a SELE
thing is the S
t,
ou see I have
s not informa
s me actually
, it doesn't m
th that let me
ve these stat
s a typical dis
s some unus
by the static c
t for dynamic
to do the op
pen the repo
en yesterday
the report is
ou have to ch
nding me.
last unit, you
properties fo
es, to the AB
E_DB becaus
r reminding m
e we have do
g what could
the NonLoca
form, I have
t?
e is not that g
on non-local
P statement
have this PE
ECT SINGLE
SELECT state
e SELECT *
tive enough,
y I'm using...0
make too muc
e go back to t
tic code chec
stribution on
sed code. Yo
code checks
c code, I cou
timizations.
ort and it is ca
for functiona
doing but I w
hange the ch
u can specify
or the ABAP
BAP Test Co
se we are no
me, and I wil
one this, you
be improved
al Nested Re
a SELECT S
good becaus
nested read
ERFORM sta
E statement.
ement that c
and it tells m
, so let me go
0? Not so mu
ch sense to s
the slides.
cks, the stati
how custom
ou can remov
s.
ld in principle
alled ZSTAT
al correctnes
will just exec
heck, you kn
y the code in
project.
ockpit, and he
ow interested
l select from
u see, in the
d performanc
eading DB O
SINGLE. The
se I'm not do
ding DB oper
atement wher

could be tran
me that I hav
o to the ABA
uch at all. Ye
select all the
c code chec
m code is dist
ve that with t
e now spot a
TIC_PERFOR
ss. Let me jus
ute the ABA
ow this happ
nspection var
ere I intercha
in performa
the context
Problems vie
ce-wise.
perations, le
e question is
oing anything
ations. And y
rein, in anoth
sformed, a p
e a certain p
AP Problem H
eah, none of
columns if I
ks and the p
ributed in the
the UPL and
all my perform
RMANCE
st open that.
AP Test Cock
pens always
riant or the A
ange FUNCT
ance.
menu Run A
ew,
et me go ther
now, where
g with this an
you can see
her modulariz
problematic S
percentage o
Help on that
the fields.
'm not using
performance
e system.
the rest can
mance-critica
9

kpit.
to me.
ABAP Test
TIONAL_DB
As ABAP
re.
do I
ymore
here that
zation unit
SELECT *
f fields

any later
checks
n be
al things and

9

00:11:57
00:12:06
00:12:16
00:12:27
00:12:36
00:12:41
00:12:44
00:12:55


Yeah, but
maybe no
to just sta
first 90,00
So it's a g
SAT or the
But those
server and
of your co
That's exa
where we
system fro
Stay tuned
of course, if
ot the best ide
rt optimizing
00, or 99,000
ood idea to a
e ABAP Prof
would be on
d business,
ode, the full S
actly where t
will take a lo
om the SQL
d and see yo

f you think no
ea
because it w
, and only th
add runtime
filer to find it.
nly stitches in
SQL profile.
he next sess
ook at what w
side.
ou. Bye, Bye
ow about 100
would take a
he last 10 wo
data here. A
.
n all of this co
sion comes in
we built for y
.
0,000 errors
while and m
ould help you
And now you
ode parts an
n
you to give yo
in your custo
maybe you wo
.
might you sa
d not give yo
ou a full footp
om code, thi
ouldn't benef
ay okay, let m
ou a full prof
print of your
10
s is not
fit from the
me use the
ile of your
productive

0
WEEK 2, U

00:00:13
00:00:17
00:00:23
00:00:31
00:00:40
00:00:49
00:00:55
00:01:01
00:01:09
00:01:16
00:01:24
00:01:29
00:01:36
00:01:46
00:01:51
00:01:59
00:02:09
00:02:17
00:02:26
00:02:30
00:02:40
00:02:48
00:02:58
NIT 3
Hello and
Hi there. T
Let me go
shown yo
First, to do
And the s
our static
using stat
However,
Certainly f
Let me re
it's not a g
We said t
relevant.
So the ad
It's not rea
We have
and we ha
code snip
But you st
For that, w
productive
I will also
business
Here we h
normal ER
So here in
here.
I was also
Just think
This mean
statement
So, quite
gather suc
to optimiz
welcome to
Today we wi
o one step ba
u static code
o functional c
econd thing
code checks
tic code chec
we also said
for the functi
mind you of
good idea.
he static cod
option of a c
ally worth op
said that it is
ave also talk
ppets where y
till don't know
we will show
e system.
show you w
processes a
have written
RP system.
n this examp
o impressed
about it. 140
ns 10 billion
ts.
an amount o
ch informatio
ze.
week 2, unit
ll be talking a
ack and tell y
e checks.
correctness
is what we to
s again, but t
cks?
d that it is no
ional things,
the pie chart
de checks co
code snippet
ptimizing the
s beneficial to
ed about the
you should o
w what is the
you a tool to
hy you can d
t the same ti
down some
ple with 6,000
when I got th
0 billion reco
records read
of data which
on together ju
t 3.
about the SQ
you what we
checks when
old you abou
this time on p
ot a good ide
but not yet f
t diagram tha
over all of our
would just ru
performance
o include run
e SAT, but th
optimize.
e most impor
oday that you
do that in the
ime.
numbers to
0 concurrent
he number fo
ords collected
d or changed
h is created h
ust in our bra
QL profile of
talked abou
n you migrat
ut
performance
a to then jus
for the perfor
at we have s
r coding; how
un in an app
e of that code
ntime informa
hat will only g
rtant thing I s
u can really g
e productive s
give you a fe
users, you r
or the first tim
d here during
d every day a
here and we
ains, so we r
your product
t in the last tw
e to SAP HA
e things. So w
t start and do
rmance thing
hown you ye
wever, it migh
lication serve
e snippet.
ation and to c
give you stitc
should optimi
get the comp
system witho
eel of what is
really see the
me.
g two weeks'
and this by a
are all huma
really need h
tive system.
two units. We
ANA with you
where should
o all of the a
gs.
esterday. Wh
ht not be per
er lifetime m
combine this
ches, so only
ize first.
plete SQL pro
out overhead
s really happ
ere's much is
' execution ti
round 1 billio
ans. We cann
help here to k
11
e have
ur coding.
d I optimize
doptions.
hy we said
rformance-
aybe once.
s information
a couple of
ofile of your
d killing your
ening on a
s going
me.
on SQL
not
know where


00:03:04
00:03:07
00:03:11
00:03:20
00:03:28
00:03:33
00:03:43
00:03:53
00:03:56
00:04:05
00:04:11
00:04:15
00:04:25
00:04:32
00:04:40
00:04:49
00:04:57
00:05:07
00:05:13
00:05:16
00:05:21
00:05:28
00:05:35
00:05:47
And that's
and Jasm
Yes, than
with the S
What that
and with t
So really,
interested
Here is th
deck on y
Jens will a
More infor
written SC
by a deve
Before we
I promised
is killing m
And of co
overhead
and that is
working fo
and espec
job runnin
The async
and a batc
And with t
system. J
to the Q s
productive
Okay, so
Let's just s
I go to our
I open the
Oh nope,
real transa
/n, yes, ok
Monitor.
s exactly whe
min, can you t
ks Jens. So
SQL Monitor.
t tool is doing
that, it will he
the most im
d in optimizin
e availability
your own, wh
also show yo
rmation can
CN blog
elopment coll
e come to the
d to tell you w
my business
urse, we are
s because yo
or you interac
cially with the
ng and the im
chronous job
ch job is writ
that, we have
ens will also
system or dev
e system.
Jens please
step in, so fo
r developme
e transaction
this is the S
action here,
kay. This hap
ere our new t
tell us a little
you've seen
g is giving yo
elp you to find
portant SQL
g are worth
y written dow
ere you can
ou in a demo
even be foun
eague of ou
e demo, let m
why it is okay
processes I w
e aware of tha
ou are execu
cting with the
e application
mportant thing
b is gathering
ting that to th
e only a mini
tell you how
velopment sy
show us a d
or that I switc
nt system an
and then yo
E93, I'm sorr
ppens to all o
tooling will st
bit about the
these amaz
ou the SQL p
d the perform
s that you m
looking at in
wn and there
the availabil
o in just a sec
nd in this SA
rs: The SQL
me show you
y to run that
would like to
at and you c
uting your bu
e database,
n tables. And
g is asynchro
g the informa
he SQL Moni
imal overhea
w you then ge
ystem becau
demo of that
ch to the ABA
nd let me jus
ou see an ove
ry. So this ha
of us, let's be
tep in
e new transa
zing numbers
profile in your
mance optim
might be intere
order to opt
are even mo
lity matrix of
cond.
AP Note or in
Monitor Unl
u a bit of arch
in a product
o do my busin
can run the S
usiness proce
at the same
onous.
ation for the r
itor tables.
ad and you c
et the informa
use you also
tool.
AP Developm
st open it. Th
erview of this
appens occa
e honest. An
action?
s and therefo
r productive s
ization poten
ested in or y
imize.
ore slides onc
the tooling.
this very int
eashed.
hitecture.
ive system. Y
ness.
SQL Monitor w
esses, the da
e time, you ha
runtime mon
can run that in
ation out of y
don't want to
ment Tools.
e transaction
s,
sionally to m
d finally here
ore we have
system
ntial.
you are certa
ce you get th
teresting and
You might sa
without too m
atabase inter
ave an asyn
itor, gatherin
n your produ
your product
o do the ana
n is SQLM.
me. Let me sw
e you see the
12
come up
inly
he slide
d very nicely
ay, Oh that
much
rface is
chronous
ng the data,
uctive
ive system,
alysis in the
witch to the
e SQL

2
00:06:00
00:06:07
00:06:13
00:06:21
00:06:29
00:06:38
00:06:46
00:06:53
00:07:02
00:07:10
00:07:18
00:07:23
00:07:29
00:07:37
00:07:45
00:07:55
00:08:04
00:08:12
00:08:19
00:08:25
00:08:33
00:08:40
What do w
is gathere
when it wa
servers.
It brings m
for specia
Yeah, ma
gives you
So we typ
have seen
because a
really can
and two w
Exactly. H
to iterative
because m
run.
Yeah, qua
business
and now l
That's als
can analy
but you ca
we want t
Display it.
Let's just t
you, so Ja
There are
you want
You've ha
aggregatio
If you clic
processes
So, you se
and you c
execution
So and fin
Many num
system an
we have here
ed,
as last execu
me to those b
al application
aybe it is goo
a stopping t
pically advise
n for the ERP
after two wee
analyze the
weeks is also
However, and
ely repeat th
maybe in this
arter-end run
processes
et's take a lo
o what Jasm
yze it in your
an also get it
o take a look
. Then you co
take a look a
asmin tends
e some really
to aggregate
ave seen the
on is a pretty
k here Aggre
s.
ee the busin
can also give
time.
nally, ta da! H
mbers, so it ta
nd try it out o
e? We have
uted, by who
buttons wher
servers.
d to mention
time.
e to run the S
P system in t
eks you don'
processes
o a measuring
d I will state t
is
s two weeks
n or year-end
ook at the da
min has ment
productive s
t out of this s
k at it.
ome to a cla
at our Z-codin
to call those
y bad guys in
e the results
numbers an
y good idea.
egation By R
ess processe
it an initial s
Here it is: the
akes...you ne
on yourself to
some admin
om, and if it's
re you can ac
n here, if you
SQL Monitor
the example
't have any
g frame whe
that later on
of time fram
d run. SSome
ata. That we
tioned. You p
system
system and im
ssical select
ng and we h
reports, the
n here and w
probably.
nd they are q
Request, you
es which hur
sorting like, fo
e SQL Monito
eed to get us
o know what
nistrative info
s at the mom
ctivate it for a
would click
in a period o
,
or not too m
ere you really
and again w
me, you don't
ething like th
can do in the
probably don
mport it into
tion screen. Y
ave prepare
bad guys.
hat you can
uite high als
will get the d
rt you a lot fr
or example,
or data.
sed to it and
the numbers
ormation up h
ent active or
all applicatio
now on the A
of about two w
manychang
y gather infor
we also touch
have certain
at. So think a
e next tab he
n't want to an
another one
You can filter
d here, of co
do here now
o probably in
data aggrega
rom the perfo
we now say
that's the im
s mean.
here on how
r not and on
on servers or
Activation bu
weeks, like t
ges in the co
rmation.
hed it already
n important a
about collect
ere.
nalyze itor
. So, what w
r by different
ourse, somet
w is very impo
n your system
ated by the b
ormance asp
the total am
mportant thing
13
much data
how many
maybe only
utton, it also
the number
ding, so you
y, you have
application
ting all
yes, you
we now do is
t criteria.
hing for
ortant. So
m, so an
business
pect
ount of DB
g, get you a

3
00:08:51
00:09:00
00:09:09
00:09:14
00:09:20
00:09:32
00:09:39
00:09:48
00:09:56
00:10:06
00:10:08
00:10:14
00:10:22
00:10:30
00:10:37
00:10:48
00:10:52
00:11:03
00:11:07
00:11:18
00:11:27
00:11:38
00:11:41
00:11:49
00:12:00
I will give
process
and which
analyze a
it will be p
And here
which give
the SQL is
So if you o
So, impor
statement
In this scr
and the go
process c
That is the
Yes, this i
So this giv
The other
statement
and it's he
Here you
probably b
and mayb
Okay, and
ENTRIES
Just short
You also
process, h
So the on
Not proba
Okay, so
Can we e
Drill down
one with t
and this ti
probably a
Okay, it's
you just som
h process is
a classical bu
probably VA0
you also see
es you a goo
s here really
only have 1%
rtant to know
t level.
reen now, yo
ood thing is w
consumes the
e percentage
is in percenta
ves you a cle
r ones are no
t
ere inside thi
see you hav
better if you
be you can ev
d just by rem
S, could be a
tly one step b
have the inte
has been exe
e with the hi
ably. They ar
as I stated, j
ven drill dow
n in that one?
the percentag
me it's an IN
also again a
a DO now, b
me brief exam
it, it's on the
usiness syste
01 or someth
e the DB time
od feeling tha
possible.
% of DB time
w, here you ha
u see the sta
we have the
e DB time of
e right?
ages. The tim
ear picture he
ot of interest
s report. By
ve a loop, SE
prefer the ar
ven think abo
moving it and
good idea h
back again, s
ernal session
ecuted durin
ghest numbe
e the ones th
ust take a lo
wn there too,
? Yeah, let's
ge
NSERT statem
SELECT loo
but yeah, but
mples and wh
right side he
em without a
hing like this
e in percenta
at here much
e optimization
ave the proc
atements wh
information
f these proce
me is always
ere that the f
at this time,
clicking it, yo
ELECT SING
rray operatio
out if the SE
writing it for
ere.
statement lev
ns, which tell
g the time fra
ers are proba
hat are exec
ook at it, play
just to see w
take a look.
ment. If we t
op.
t very good c
hat we get he
ere. So that's
ny filter,
will appear h
age to the am
h DB time is c
n of the SQL
cesses and n
hich have bee
on how muc
esses.
s milliseconds
first one is p
since we ha
ou can direct
GLE, which is
ns
LECT* state
example, ma
vel.
s you how m
ame.
ably those on
uted the mos
around, take
what's in ther
So this is an
take a look a
coding. How
ere is the tot
s the process
here.
mount of the
consumed a
, wouldn't he
now you can
en executed
ch every state
s, by the way
robably the o
ve 97%. And
tly jump to th
, if you reme
ment is the c
aybe with the
much this pro
nes which ar
st.
e a look at it,
re?
nother one, a
t the number
we really ex
tal DB time o
s which is ca
total time,
nd an optimi
elp so much
step down to
in this busin
ement inside
y.
one you are
d this is a SQ
he source co
ember the go
correct one.
e SELECT...
ocess, how o
re executed t
, and get a fe
and again do
rs and figure
xpect you to w
14
of this
lled. If you
ization of
at all.
o the
ness process
e this
going for.
QL
de.
olden rules,
FOR
ften this
the most.
eeling for it.
minating
es here, it's
write coding.

4
s
00:12:07
00:12:19
00:12:27
00:12:34
00:12:40
00:12:50
00:12:57
00:13:05
00:13:16
00:13:22
00:13:30
00:13:42
00:13:50
00:13:56
00:14:06
00:14:13
00:14:22


No just kid
do the INS
But of cou
Go to the
analyze w
So this is
Yeah, tha
which ord
also which
You will fi
things tha
Okay, so
full covera
if we remo
not measu
the SQL M
But as me
of the stat
So for yea
the SQL M
Okay, so w
Okay, so
analyze th
from the s
good idea
also with t
show you
So stay tu
dding. Again
SERT after t
urse those ar
blog we hav
with the SQL
one of our m
ank you Jens
ering you ne
h aggregatio
nd more info
at you would
back to our p
age of our wh
oved, of cour
uring the dyn
Monitor Data
entioned befo
tements or a
ar-end report
Monitor.
with that I wo
now you hav
he coding
static side wi
a to combine
the informati
in the next u
uned and bye

. prefer array
he DO.
re our bad gu
ve mentioned
Monitor.
most importan
and even in
eed again,
on he took. In
ormation on h
like to see.
pie chart diag
hole coding,
rse, the unus
namic code,
in order to g
ore, this only
ll of the proc
ting, monthly
ould like to s
ve the system
th the code c
the live data
on that I got
unit.
e-bye. See y
y operations
uys. I think ju
d. It's a very g
nt tools. Just
n the blog you
n the blog yo
how you sho
gram. You've
sed code firs
of course, an
get the full co
y holds true if
cesses.
y reporting, y
say thank you
m data, the li
checks and n
a
from the sta
you.
so collect th
ust give you
good blog to
t to emphasiz
u can find so
u will find in
ould use thes
e seen it now
st. We had th
nd we can su
overage.
f you really r
you may be n
u and hand o
ve data of yo
now you may
atic code che
his data insid
a feeling, try
explain to y
ze that. Okay
o miraculousl
the referenc
e filters in giv
w several tim
he statical co
upplement th
un it when yo
need to repea
over for Jens
our SQLs. No
y ask the que
eck? That's e
de an interna
y it out.
you what you
y, Jasmin.
ly, Jens show
ces.
ving you exa
mes and we n
ode checks,
he informatio
ou are execu
at the measu
s to give you
ow you know
estion, Woul
exactly what w
15
l table and
can
wed you
actly the
now have a
on now with
uting also all
urement of
an outlook.
w how to
dn't it be a
we will

5

WEEK 2, U

00:00:13
00:00:17
00:00:19
00:00:29
00:00:37
00:00:47
00:00:56
00:01:02
00:01:09
00:01:19
00:01:29
00:01:36
00:01:46
00:01:56
00:02:06
00:02:14
00:02:20
00:02:31
00:02:37
00:02:47
00:02:58
00:03:06
00:03:14
NIT 4
Welcome!
Welcome
In the last
analyze it
Now, wou
that you h
one workl
that this is
with the st
to make it
Of course
this works
Thank you
the transa
So let me
opens up.
Let me fill
so again I
or, for exa
I also sele
will help m
This is jus
informatio
I will start
variant run
I say inclu
or the ABA
just take t
I already e
So, I'm jus
it's called
Okay furth
position, s
I rather pr
Okay. In a
and typica
! Great to ha
also from m
t unit, we've s
using the SQ
uldn't it be a g
have learned
ist to know a
s a loop acro
tatic code ch
t much easie
e, we have th
s.
u Jens. So, t
action ID is S
get into the
.
that with so
would like to
ample, a nam
ected I would
me to enrich t
st for demo p
on, static cod
with the stat
n.
ude it please,
AP Test Coc
he new tool
executed tha
st selecting it
Demo Backg
hermore, I'm
source code
refer the only
addition to th
ally you woul
ve you back
y side.
shown you h
QL Monitor t
good idea to
in unit 2 with
also
oss a modula
hecks
er for you to h
is transactio
he guy we a
SWLT.
system and
me informati
o restrict on
mespace give
d like to Show
the informati
purposes. Jen
e check info
tic checks. W
, so I will use
ckpit. Becaus
and I have a
at on the syst
t, a develope
ground Job (
scrolling dow
position, and
y By Code Po
e static chec
d now go to
k for the fourt
how to gathe
ransaction.
take this dat
h the DB_PE
arization unit,
have an entry
on prepared f
are talking ab
do Alt+F8 an
ion. You've s
package lev
en to your co
w Intersectio
ion here.
ns has ment
ormation to th
We have men
e it and you c
se we would
already prepa
tem using th
er has done t
(DEMO_BG)
wn. You can
d message ty
osition, but th
cks, I would l
your produc
th unit of the
r the SQL pr
ta and comb
ERFORMAN
, yet just to e
y point here.
for you and I
bout is the SQ
nd go for SW
seen someth
el. That, in y
ompany.
n of Results
ioned that w
he SQL Moni
ntioned it sho
can choose b
like to promo
ared an ATC
e code inspe
that for me. Y
).
n do some ag
ype.
hat really doe
like to includ
ctive system,
second wee
ofile of your
bine it with the
CE variant a
enrich the SQ

guess Jasm
QL Performa
WLT and aga
ing very sim
your case, mi
. I will not go
e would like
itor.
ould be the P
between the
ote of course
run for you.
ection variant
You don't se
ggregation an
esn't make to
e the SQL M
export the d
ek.
productive s
e static code
and compile i
QL Monitor da
min can show
ance Tuning W
in a selectio
ilar for the S
ight also be a
o into the deta
to include st
PERFORMAN
Code Inspec
e, the new to

t PERFORM
ee the word d
nd by default
oo much diff
Monitor data
data there, an
16
system and
e checks
t together in
ata also
w you how
Worklist and
n screen
QL Monitor,
a Z-coding
ails, but that
tatic
NCE_DB
ctor
ool, let me
MANCE_DB.
developer,
t it's by code
ference.
nd import

6

e
00:03:24
00:03:34
00:03:39
00:03:45
00:03:55
00:04:05
00:04:13
00:04:22
00:04:30
00:04:34
00:04:38
00:04:46
00:04:56
00:05:02
00:05:11
00:05:21
00:05:28
00:05:38
00:05:47
00:05:51
00:05:56
00:06:05
00:06:15
into the qu
We only h
say again
That activ
Which is t
So even y
unit, so we
Again, cal
or to do th
records he
Okay and
Now you s
execute it
It really hi
What the
Yes, so it'
get used t
And really
colleague
So I would
seen.
First thing
SQL Mon
I can have
statement
So here is
Monitor.
Moreover
checks, so
You have
example,
I am told t
Of course
but here w
packages
So that re
compared
So really a
uality or deve
have this one
, I would like
vates it and o
the same tha
you could cre
e will just se
ll the demo, a
he ordering, a
ere.
with that info
see again a
.
t me and I w
heck are the
s really an e
to that.
y try it out an
telling you w
d only briefly
g, which is no
itor.
e, when I dou
t level, and y
s the informa
, here on the
o from the C
met already
that there is
e, we could h
we also see t
.
eally took the
d to all of the
a prioritized
elopment sys
e system ava
e to use it.
of course, aga
at I've shown
eate a snaps
lect the snap
and here aga
and again I w
ormation giv
lot of column
was complete
ey doing here
xpert tool, th
d also have
what you can
y mention a c
ow the differe
uble-click on
you might ask
ation about e
e lower right-
ode Inspecto
y TEST3, the
a NonLocal N
ave gathered
that is the top
most time a
other DB ex
list where I s
stem the SQ
ailable so we
ain, I have p
n you in the la
shot here but
pshot we hav
ain I have th
would like to
ven, I can say
ns, a lot of in
ely lost with a
e? What do t
he same thin
a look...agai
n do with that
couple of exa
ence, or one
one of these
k, Where did
ntry points, r
-hand side yo
or or from the
e very meanin
Nested Read
d this inform
p-most opera
and it's certai
xecutions, all
shall optimize
QL Monitor da
are doing bo
prepared a sn
ast unit. Exac
we have see
ve already ta
e option to fi
have a total
y, just open t
formation wh
all of those co
hey want fro
g as with the
n promoting
t tool.
amples, also
of the differe
e lines, a dril
d I enter?
request entry
ou have the a
e ATC in tha
ngful operatio
ding DB.
ation already
ation execute
nly good to o
others are r
e first.
ata.
oth things at
napshot for y
ctly.
en how to do
ken.
lter
DB executio
the informatio
hich might be
olumns and a
m me?
e SQLM as y
the SCN blo
the example
ences, betwe
lldown. That
y points, take
additional inf
t case.
ons we do th
y from the sta
ed from of co
optimize here
rather low.
the same tim
you.
o that in the p
on time as on
on.
e the first tim
all those info
you've seen i
og from our d
es that we ha
een the SWL
is on SQL le
en from the S
formation fro
here, and he
atic code che
ourse within
e first becau
17
me and so I
previous
nly top
me you
ormation.
t, but you
development
ave already
LT and the
evel, on
SQL
om the static
re for
ecks alone,
my Z-
se

7
t
00:06:20
00:06:30
00:06:32
00:06:40
00:06:48
00:06:55
00:07:08
00:07:15
00:07:23
00:07:31
00:07:41
00:07:51
00:07:58
00:08:09
00:08:17
00:08:28
00:08:39
00:08:51
00:08:54
00:08:58
00:09:05
00:09:11
00:09:17
00:09:24
00:09:29
Okay. Now
Monitor bu
the static
And here
points.
So here is
SELECT S
And of co
and this in
the SELEC
So here y
With awes
point.
I navigate
SINGLE w
Okay. Bac
I could do
So really a
Okay, so w
mean reco
I do a dou
use of FO
We've als
unsecure
and it mig
here is em
We have
see all of
It was exa
So maybe
You see w
but as I st
You will a
So you ha
performan
that was d
But after c
w I can have
ut again the
code check
I have additi
s the SELEC
SINGLE stat
urse, I see th
nformation
CTcan als
ou see I hav
some coding
e in and you s
within there.
ck to the SW
o a drilldown
a bad guy of
what you can
ord is quite h
uble-click and
OR ALL ENTR
o mentioned
FOR ALL EN
ht be worthw
mpty.
mentioned th
that, will aga
actly the sam
e a word of p
we have the t
tated before,
lways have t
ave the top 1
nce, and then
done, for exa
certain iterati
e a drilldown.
SQL,
information.
onal informa
CT statement
tement, whic
he loop right
so where the
so be navigat
ve a DO five t
g! Yes, aweso
see then with
WLT informati
here with the
f course cons
n also read f
high.
d you see the
RIES.
d that before,
NTRIES
while to have
hat in the firs
ain...
me code snipp
precaution be
top-most thin
you need to
the top 10 or
0 here, you
n
ample, in this
ions, the opt
. That is the a
ation given, s
. I can go the
ch was bad b
above that,
e actual call
ted from here
times again,
ome coding.
hin this meth
on. So again
e beloved IN
structed. No.
from that list
e Code Inspe
, so in additio
e a look at tha
st unit about
pet. Exactly.
efore we end
ngs that migh
o have a cuto
r the top 20 t
investigate t
s example. Y
imized cases
additional inf
so for examp
ere again, yo
because it wa
but it could b
of that metho
e.
a DO statem
So I can nav
hod, I have th
n our TEST1
SERT statem
.
here, for exa
ector hints to
on to the run
at, because
Runtime Che
the demo.
ht have pote
off when you
hings that yo
hem, you ad
You have the
s will also be
formation no
le, it tells me
ou have seen
as in a loop.
be in another
od is which i
ment which is
vigate in her
his loop...end
1 example.
ment, withou
ample, is this
o me that the
time monitor
maybe the F
eck Monitor a
ntial to optim
stop the opt
ou would like
opt them, yo
Optimize rep
e in that list.
ow, not only t
e where are t
n that before
r modulariza
s enclosing t
s not very go
re. That is ou
dloop and SE
ut the array o
s guy here. I
ere might be
r data, we ha
FOR ALL EN
already but h
mize
timization.
e to investiga
ou do someth
port.
18
the SQL
the entry
. That is the
ation unit
the loop and
ood to do.
utermost
ELECT
operation.
see the
unsecure
ave here the
TRIES table
here just to
ate.
hing for

8


00:09:34
00:09:39
00:09:45
00:09:48
00:09:51
00:09:57
00:10:03
00:10:14
00:10:23
00:10:27
00:10:32
00:10:39
00:10:49
00:10:57
00:11:06
00:11:15
00:11:23
00:11:31
00:11:37
00:11:47
00:11:55
00:12:02
00:12:12
00:12:16


So think w
Otherwise
Okay, with
Yeah, bac
So, that is
Now I just
When you
find the fu
You've lea
with the n
to get an o
This is als
and now y
So inform
material a
All informa
performan
and of cou
the migrat
and start t
common s
Don't optim
It makes n
the perfor
Okay, tha
Thank you
also these
for our SA
And we ha
We will sh
artist also
And we w
Thank you
what you wou
e you will go
h that I would
ck to the pres
s what you've
t want to reca
u want to mig
unctional issu
arned that in
ew tool, the
overview abo
so very impo
you can reall
ation about i
and there is a
ation again is
nce point
urse, correct
tion and this
this iterative
sense there.
mize a repor
no sense at a
rmance you l
t's for the De
u Jens. So n
e tools ourse
AP Business
ave also had
how you in th
known as A
will also show
u and bye-by

uld like to ac
into an infini
d like to hand
sentation. Th
e just seen, w
ap what we d
grate to SAP
ues that could
unit 1. Afterw
SQL Monitor
out your SQL
rtant becaus
y do an anal
n which rele
also consultin
s in the mate
the function
is exactly th
performance
rt which take
all and just b
ike.
etect phase.
ext unit we w
elves
Suite and al
d a look at all
he next unit q
ALV with Integ
w you some o
ye.
hieve before
ty loop with t
d back to Jen
hank you Jas
working with
did in this De
HANA, first
d occur.
rward, it's a v
r,
L processes
se this was ye
lysis on that
ease the SQL
ng support b
erial. After yo
nal issues be
en where yo
e improveme
s just 0.5 mi
burns your re
Let's take a
will be talking
so for our SA
l our compon
quick wins. F
grated Data
other improve
e you start the
that.
ns.
smin.
the prioritize
etect phase a
of all again,
very good ide
mentioned.
et not availa
even before
L Monitor is a
y SAP for tha
ou've done th
cause you w
ou can migrat
ent approach
lliseconds on
esources. And
look at the n
g about quick
AP internal c
nents that we
For example,
Access.
ements. Stay
e project.
ed worklist.
again.
important an
ea to scan yo
ble in the cla
you do the m
available is in
at.
he analysis, t
want to have
te
h. And as Jas
n the databas
d then just co
ext unit.
k wins. Of co
custom codin
e previously
the optimize
y tuned.
nd mandator
our productiv
assical world
migration pa
nside this co
take the mos
a running sy
smin stated,
se.
ontinue until
ourse, we hav
ng.
had.
ed ABAP List
19
y step is to
ve system
rt.
urse
st critical
ystem after
use
you have
ve used
t Viewer, the

9
e
WEEK 2, U

00:00:13
00:00:17
00:00:19
00:00:27
00:00:32
00:00:43
00:00:48
00:00:55
00:01:04
00:01:14
00:01:22
00:01:31
00:01:44
00:01:52
00:02:01
00:02:08
00:02:17
00:02:27
00:02:34
00:02:37
00:02:47
00:02:55
NIT 5
Hi and we
Hope you
We will sh
Data Acce
so a renew
Here we w
The slide
That is the
Of course
transparen
Remembe
optimizatio
in the data
with the u
So these a
you will ho
Okay. Let
and instea
system an
For that, I
report
called ZR_
in there ye
As you do
for you.
So the new
class.
I'm just ca
a Dictiona
or those n
views.
But stay tu
Okay, wha
so you do
end.
Okay. Wit
elcome back
are ready fo
how you thing
ess,
wed ABAP L
will start with
is empty.
e transparen
, we have sh
nt optimizatio
er, we have t
on like table
abase interfa
nderlying da
are transpare
opefully see
us now com
ad of talking
nd convince y
go again to
_ALV_IDA, s
et
on't want to s
w ABAP List
alling a create
ary view
new guys tha
uned for that
at the ABAP
on't have to u
th that, we ar
to the last un
or the quick w
gs like the op
List Viewer, a
the transpar
t optimizatio
hown you tha
ons.
told you in th
buffer enhan
ace and also
tabase.
ent optimizat
that in perfor
me to the real
about the the
you with a sy
my ABAP D
standing for I
see me typing
t Viewer, or t
e statement
at we will hea
t in the third w
List Viewer
se or create
re already re
nit of this we
wins.
ptimized ALV
and some oth
rent optimiza
n, that's why
at diagram be
he first week,
ncement
the protocol
tion. You do
rmance.
l reuse comp
eory of that r
ystem demo
evelopment
Integrated D
g and doing
the renewed
and that guy
ar about in th
week in the t
now comes w
yourself dyn
eady. And jus
eek.
V or the artis
her improvem
ations and as
y the slide is
efore so we w
, the ABAP 7
ls that the AB
n't have to do
ponents as is
renewed ABA
.
Tools in Ecli
ata Access,
all of the typ
ABAP List R
y here could
he next week
third unit.
with is full-sc
npros and I w
st execute th
t also known
ments. Jens,
s you can se
empty. Just
would like to
7.4 comes wi
BAP uses to
o anything co
s the title alre
AP List View
pse and I ha
and as you c
os, I have cr
Reviewer, ca
either be a D
k, something
creen mode
would like to
e report.
n as ALV with
please start
e on the slid
kidding a bit
o remind you
ith transpare
talk to SAP
oncerning co
eady, the opt
wer, let me ju
ave prepared
can see ther
reated a sma
n be taken fr
Data Dictiona
like Core Da
display the d
20
h Integrated
t.
es...What?
t.
of the
nt
HANA, so
oding, but
timized ALV
st go to the
d a tiny little
re is nothing
all template
rom that
ary table or
ata Services
data at the

0
00:03:03
00:03:11
00:03:22
00:03:28
00:03:38
00:03:47
00:03:54
00:04:04
00:04:10
00:04:22
00:04:24
00:04:33
00:04:39
00:04:50
00:04:58
00:05:04
00:05:12
00:05:22
00:05:31
00:05:36
00:05:44
00:05:49
00:05:57
00:06:06
Let me en
and there
what happ
you are se
with the o
Same hold
because w
like scrolli
I sum that
issued the
of the thin
So for exa
or I could
So, pretty
Yes, it's co
with the C
So all calc
And the ev
with integr
Okay, eno
the scene
So as you
So you ha
what typic
you have
classical A
and whate
database
so on the
The new A
you really
And that is
So we see
truncation
If you wou
with Integ
Yes, there
and it's co
nlarge that a
is a large am
pens if you're
electing ever
ld ALV.
ds if I now ju
whatever I do
ng or let's sa
t one up. Eve
e SAP HANA
ngs that I'm d
ample, let me
filter on that
responsive
ool. The goo
Code Pushdo
culations are
ven better th
rated data ac
ough of the d
.
u can see, we
ave seen this
cally happens
your databas
ALV is gettin
ever you wou
to the applic
level of the i
ALV or the n
need.
s exactly app
e improved p
n on selected
uld like to kno
rated Data A
e is more and
ool, that's all.
bit and what
mount of data
e selecting th
rything in the
ust scroll dow
o here,
ay I would lik
erything that
A database. A
doing here.
e also do an
, on the Com
isn't it?
od thing here
own paradigm
executed on
hing is, you h
ccess is prod
demo. Let me
e have optim
s in performa
s with the cla
se table, whi
g everything
uld like to dis
cation server
nternal table
ew approach
plying the Co
performance.
d data.
ow more abo
Access. Is the
d I really like

t you can see
a in there. W
he data in the
e internal tab
wn here. You
ke to use her
I am doing h
And it's that r
aggregation
mpany Name
e is that you r
m.
n the databa
have not see
ducing those
e show you a
mizations bec
ance, but I ca
assical ALV,
ich is here th
g into an inter
splay later on
, but on the a
e or in the AB
h is that you
ode-to-Data
. We see a re
out that, just
ere more, Je
this demo. I
e here is an A
We have talke
e ALV,
le. So alread
see that is p
re on the gros
here is produ
responsive b
on that one
, or just do a
really see the
se using just
n me typing
e SQLs for m
a little bit abo
cause the res
an also show
he SAP HAN
rnal table
n is not filtere
application s
BAP layer.
only fetch th
paradigm, as
educed mem
go the SCN
ens?
love to work
ALV table
ed about that
dy this launch
pretty respon
ss amount, I
ucing a SQL
because HAN
,
a Group By fo
e power of S
t SQL statem
any coding. T
e.
out the techn
sult set is min
w you that in t
A table on th
ed before it c
erver itself,
e data into th
s Jens has ju
mory footprint
link and yea
k with the ne
t already and
hing takes qu
nsive and tha
would like to
you don't s
NA supports
or that custo
SQL and wha
ments.
That's becau
niques runnin
nimized.
this little diag
he database,
comes from t
he applicatio
ust mentione
t and there is
ah, so that wa
ew ALV. This
21
d typically
uite a while
at is
o do a total,
see it
me with all
mer name.
at it does
use the ALV
ng behind
gram. So
, and the
the
on layer that
ed.
s no
as our ALV
is really fun


00:06:16
00:06:20
00:06:29
00:06:37
00:06:44
00:06:54
00:07:04
00:07:11
00:07:19
00:07:30
00:07:38
00:07:49
00:07:54
00:08:03
00:08:11
00:08:17
00:08:22
00:08:26
00:08:35
00:08:40
00:08:48
00:08:58
00:09:06
00:09:16
00:09:25
Cool is the
So we've
and also l
Oh we are
don't pani
I've also p
Okay, aga
and of cou
it.
You have
also it's C
you know
simple sea
Normally,
SAP whic
one and v
type-ahea
and here w
So let's ju
that or you
I remembe
And you s
So this is
and the go
It's really e
your exist
So in this
The new t
the propos
and the fu
can get.
That is ba
That's all.
Floorplan
If I now co
search he
You can p
e right word
also improve
et's just jump
e not closing
c.
prepared a lit
ain I forgot ho
urse it's SEA
to activate it
trl+F3,
this probabl
arch field wh
I would go a
h is an our c
very, very...w
ad informatio
we see the b
st assume yo
u don't know
er that conta
see here, ah
a very cool t
ood thing is y
easy to get t
ing search h
case, we are
thing that you
sals for the i
ull-text search
asically all. Yo
The other g
Manager.
ome to an ex
elps available
play around w
here. Okay,
ed our search
p directly into
down the AL
ttle report alr
ow I named
ARCH_HELP
t first. Oh, ma
y from the SA
here I can typ
and now click
case
what you now
n of an ident
business part
ou totally for
w...
act I had, wha
here's Sarah
thing and it re
you don't hav
hat and the o
elp.
e using that s
u see here is
nput fields
h and you ca
ou have the
ood news is
xample, we a
e here, also w
with it and he
let's go to th
h help with ty
o a demo. I w
LV. No? Jus
ready but wit
my own repo
P_DEMO. So
aybe I chang
AP GUI ,and
pe things.
k on Identifie
w have is exa
tifier
tners and the
rgot that very
at was her na
h. It was this
eally helps y
ve code so m
only thing yo
search help
s the Enhanc
an specify an
fields and th
that this one
also have in y
with the new
ere it is the s
e next one.
ype-ahead fu
will close dow
t the report. Y
h a little mor
ort but luckily
orry for that. A
ged somethin
d now F8 wo
er and take, f
actly you alre
eir identifiers
y short numb
ame? Sarah
company an
you working a
much for that
ou have to cr
and let me in
ced Options.
n accuracy le
hey are good
e is also avai
your demo sy
ALV grid.
ame game.
unction and f
wn the ALV a
Yes, okay. It
re of coding a
y we have it i
And this repo
ng already. O
rks. And wha
or example,
ady have so
s and also the
er of 1,000,0
. So let's try
nd here I got
and getting th
t.
eate is a sea
ncrease the s
Here you ca
evel which is,
to go and ac
lable for the
ystem, is tha
free-text sea
and...
t's still there
and this is ca
in our packa
ort, let me jus
Okay, now yo
at I now have
or know the
ome informat
e e-mail add
001 or somet
it.
t the identifie
he results ve
arch help or j
size of it.
an select tha
, kind of, how
ctivated.
Web Dynpro
at you have a
22
arch
for you,
alled ZR...
ge
st execute
ou know
e here is a
identifier of
ion and
dress.
thing like
er.
ery fast
just improve
t you want
w fuzzy it
o with the
also the

2
00:09:29
00:09:38
00:09:44
00:09:52
00:09:59
00:10:07
00:10:18
00:10:25
00:10:29
00:10:34
00:10:45
00:10:52
00:11:02
00:11:09
00:11:18
00:11:26
00:11:29
00:11:35
00:11:44
00:11:47
00:11:56
00:12:02
So remem
So that's f
Back to th
and yeah,
and the go
feature, so
I still hope
which stic
There is a
space.
Links are
Yeah, may
not with th
more of th
but you ca
Okay, and
performan
the static
went to pe
all about p
SQL Moni
SWLT is t
code chec
on the SQ
And last b
improved.
The transp
the fault-to
in case yo
And with t
week.
Yes, see y
ABAP ser
Bye-bye.
mber our Sara
for type-ahea
he slides. He
, that what ty
ood thing is w
o for exampl
e you will like
ck to their cla
also search h
in the course
ybe let me a
he full screen
he typing not
an have exam
d with that we
nce analysis
code checks
erformance,
performance
itor and you
the SQL Perf
ck and the SQ
QL profile of y
but not least,
.
parent optim
olerant searc
ou are doing
that, we wish
you next wee
rver.
ah? Here we
ad and searc
re is also a l
ype-ahead is
we also deliv
e when you
e the develop
ssical SE38.
help available
e material. G
dd, you can
n mode and t
just one line
mples around
e would like
tools,
s, starting of
. The statica
have seen a
formance Tu
QL Monitor r
your product
I hope you l
mizations, the
ch
a lot of typos
h you luck for
ek when it's a
e go, here is
ch help. I hop
ink in the ma
all in. So yo
ver our new S
go to the SE
pment tools m
. Please com
e now. Okay
Good.
even include
the display m
e of coding
d in the ALV
to close the
course with
al as well as t
about the SW
uning Worklis
runtime data
ive system.
iked the quic
e ALV, and a
s when you a
r the week 2
all about opt
Sarah. Is it?
pe you like it
aterial to the
u have the fi
SAP GUI fiel
E38
more, of cou
me to the goo
, and more in
e the fault-to
mode I've sho

V demo repor
week. So yo
the functiona
the runtime a
WLT,
st, which incl
ck wins that y
lso this very
are using the
assignment
timization an
Yeah.
.
demo on you
lter and sear
ds and so on
rse, but there
od side.
nformation, o
lerant search
own you th
rts in the syst
ou have learn
al correctnes
analysis. You
uded the info
you can get w
cool new fea
e product.
now at this t
d what we ha
ur remote de
rch features
n with that ty
e may be so
of course, in
h in the ALV
hey have to d
tem.
ned a lot abo
ss checks, bu
u've learned
ormation of t
with what we
ature of type
time and see
ave impleme
23
esktop
ype-ahead
me of you
our SCN
,
do a little bit
out
ut then we
about the
the static
e have
-ahead and
e you next
ented in our

3

w

N
o
a
S
r
S
h
a
m
c
N
T
i
a
o
S
t
i
w
I
a
o
o
s
d
S
T
o
s
a
n
s
p
w w w .sap.c
2014 SAP SE or an SA
No part of this publication
or for any purpose withou
affiliate company.
SAP and other SAP prod
respective logos are trad
SAP affiliate company) in
http://www.sap.com/corp
additional trademark info
marketed by SAP SE and
components of other soft
National product specifica
These materials are prov
nformational purposes o
and SAP SE or its affiliate
omissions with respect to
SAP affiliate company pr
the express warranty stat
f any. Nothing herein sho
warranty.
n particular, SAP SE or i
any course of business o
or to develop or release a
or any related presentatio
strategy and possible futu
directions and functionali
SAP SE or its affiliated c
The information in this do
obligation to deliver any m
statements are subject to
actual results to differ ma
not to place undue relian
speak only as of their dat
purchasing decisions.
c om
AP affiliate company. All
n may be reproduced or
ut the express permissio
ducts and services mentio
demarks or registered tra
n Germany and other cou
porate-en/legal/copyright/
ormation and notices. Som
d its distributors contain
tware vendors.
cations may vary.
vided by SAP SE or an S
only, without representatio
ted companies shall not b
o the materials. The only
roducts and services are
atements accompanying s
ould be construed as con
its affiliated companies h
outlined in this document
any functionality mention
on, and SAP SEs or its a
ture developments, produ
ity are all subject to chan
companies at any time fo
ocument is not a commit
material, code, or functio
o various risks and uncer
aterially from expectation
nce on these forward-look
tes, and they should not
rights reserved.
transmitted in any form
n of SAP SE or an SAP
oned herein as well as th
demarks of SAP SE (or a
untries. Please see
/index.epx#trademarkfo
me software products
proprietary software
SAP affiliate company for
on or warranty of any kin
be liable for errors or
warranties for SAP SE o
those that are set forth in
such products and servic
nstituting an additional
have no obligation to purs
or any related presentat
ned therein. This docume
affiliated companies
ucts, and/or platform
nge and may be changed
or any reason without not
ment, promise, or legal
onality. All forward-looking
rtainties that could cause
ns. Readers are cautione
king statements, which
be relied upon in making


heir
an
or
nd,
or
n
ces,
sue
tion,
ent,
d by
tice.
g
e
d
g

Potrebbero piacerti anche