chapter 02_introduction to abap programming
TRANSCRIPT
-
7/21/2019 Chapter 02_Introduction to ABAP Programming
1/30
IBM Global Business Services
IBM Corporation 2013Introduction to ABAP Programming !ec"200#
Introduction to ABAP Programming
-
7/21/2019 Chapter 02_Introduction to ABAP Programming
2/30
IBM Global Business Services
IBM Corporation 20132 !ec"200#Introduction to ABAP Programming
$b%ectives
&'e participants (ill be able to ) *emember basic terms in ABAP programming
Identi+, ABAP development basics
-.amine ABAP programming environment and ABAP -ditor
/rite basic ABAP program s,nta.
-
7/21/2019 Chapter 02_Introduction to ABAP Programming
3/30
IBM Global Business Services
IBM Corporation 20133 !ec"200#Introduction to ABAP Programming
&erms to *emember
Report:
An ABAP program whose output is a list
Module Pool:
A dialog program which is a collection of
screens
List:
The output generated b an ABAP report
program
Program
A series of ABAP statements
-
7/21/2019 Chapter 02_Introduction to ABAP Programming
4/30
IBM Global Business Services
IBM Corporation 2013! !ec"200#Introduction to ABAP Programming
*eporting and ABAP !evelopment
Reporting"#$3%&'
(lic)
ABAP*e+elopment
"#$%,&
-
7/21/2019 Chapter 02_Introduction to ABAP Programming
5/30
-
7/21/2019 Chapter 02_Introduction to ABAP Programming
6/30
IBM Global Business Services
IBM Corporation 2013/ !ec"200#Introduction to ABAP Programming
!emonstration
Creation o+ a custom program using transaction S-#0 and displa,ing it in ABAPeditor
-
7/21/2019 Chapter 02_Introduction to ABAP Programming
7/30
IBM Global Business Services
IBM Corporation 20130 !ec"200#Introduction to ABAP Programming
Practice
Creation o+ a custom program using transaction S-#0 and displa,ing it in ABAPeditor
-
7/21/2019 Chapter 02_Introduction to ABAP Programming
8/30
IBM Global Business Services
IBM Corporation 2013% !ec"200#Introduction to ABAP Programming
Programming -nvironment " $nline !ebugging
#et the Brea)1point using
(lic) eecute to enter into debug mode
-
7/21/2019 Chapter 02_Introduction to ABAP Programming
9/30
IBM Global Business Services
IBM Corporation 2013 !ec"200#Introduction to ABAP Programming
!emonstration
Setting Brea"points e.ecuting t'e program and displa,ing t'e debugging mode
-
7/21/2019 Chapter 02_Introduction to ABAP Programming
10/30
IBM Global Business Services
IBM Corporation 20134, !ec"200#Introduction to ABAP Programming
Practice
Setting Brea"points e.ecuting t'e program and displa,ing t'e debugging mode
-
7/21/2019 Chapter 02_Introduction to ABAP Programming
11/30
IBM Global Business Services
IBM Corporation 201344 !ec"200#Introduction to ABAP Programming
Basic unctions o+ t'e ABAP -ditorBasic unctions o+ t'e ABAP -ditor
5ind and
Repeat 5ind
Toggles from
displa tochange mode
ABAP 6elp
#nta (hec)
#tandard
toolbar
Program source entr area
-
7/21/2019 Chapter 02_Introduction to ABAP Programming
12/30
IBM Global Business Services
IBM Corporation 201342 !ec"200#Introduction to ABAP Programming
&'e P*$G*AM Menu $ption
-
7/21/2019 Chapter 02_Introduction to ABAP Programming
13/30
IBM Global Business Services
IBM Corporation 201343 !ec"200#Introduction to ABAP Programming
&'e -!I& Menu $ption
-
7/21/2019 Chapter 02_Introduction to ABAP Programming
14/30
IBM Global Business Services
IBM Corporation 20134! !ec"200#Introduction to ABAP Programming
&'e -!I& Menu $ption 4Contd5
-
7/21/2019 Chapter 02_Introduction to ABAP Programming
15/30
IBM Global Business Services
IBM Corporation 20134- !ec"200#Introduction to ABAP Programming
&'e G$&$ Menu $ption
-
7/21/2019 Chapter 02_Introduction to ABAP Programming
16/30
IBM Global Business Services
IBM Corporation 20134/ !ec"200#Introduction to ABAP Programming
&'e 6&I7I&I-S Menu $ption
-
7/21/2019 Chapter 02_Introduction to ABAP Programming
17/30
IBM Global Business Services
IBM Corporation 201340 !ec"200#Introduction to ABAP Programming
&'e B7$C89B6-* Menu $ption
-
7/21/2019 Chapter 02_Introduction to ABAP Programming
18/30
IBM Global Business Services
IBM Corporation 20134% !ec"200#Introduction to ABAP Programming
&'e S-&&I:GS Menu $ption
-
7/21/2019 Chapter 02_Introduction to ABAP Programming
19/30
IBM Global Business Services
IBM Corporation 20134 !ec"200#Introduction to ABAP Programming
!emonstration
!ispla,ing basic +unctions and menu options o+ t'e ABAP editor
IBM Gl b l B i S i
-
7/21/2019 Chapter 02_Introduction to ABAP Programming
20/30
IBM Global Business Services
IBM Corporation 20132, !ec"200#Introduction to ABAP Programming
Practice
!ispla,ing basic +unctions and menu options o+ t'e ABAP editor
IBM Gl b l B i S i
-
7/21/2019 Chapter 02_Introduction to ABAP Programming
21/30
IBM Global Business Services
IBM Corporation 201324 !ec"200#Introduction to ABAP Programming
*ATA (7.8T T9P$ I
*ATA TITL$"2-&
M7;$ 4 T7 (7.8TM7;$ RIT$ TITL$
>RIT$ (7.8T
Basic ABAP Program S,nta.
ABAP Program
#tatement
>ord4 >ord2 >ord3 >ord!
Key word Parameter' field' or constant
IBM Gl b l B i S i
-
7/21/2019 Chapter 02_Introduction to ABAP Programming
22/30
IBM Global Business Services
IBM Corporation 201322 !ec"200#Introduction to ABAP Programming
C'aining Statements in ABAP
*ATA (7.8T T9P$ I
*ATA TITL$"2-&
M7;$ 4 T7 (7.8T
M7;$ RIT$ TITL$
>RIT$ (7.8T
>RIT$: TITL$' (7.8T
*ATA: (7.8T T9P$ I'
TITL$"2-&
M7;$: 4 T7 (7.8T'
-
7/21/2019 Chapter 02_Introduction to ABAP Programming
23/30
IBM Global Business Services
IBM Corporation 201323 !ec"200#Introduction to ABAP Programming
Comments in ABAP
An asteris) "?& in column
4 ma)es the entire line
a comment line
A double @uotation mar) "&
anwhere on a line ma)ese+erthing that follows a
comment
IBM Global B siness Ser ices
-
7/21/2019 Chapter 02_Introduction to ABAP Programming
24/30
IBM Global Business Services
IBM Corporation 20132! !ec"200#Introduction to ABAP Programming
ABAP Program Structure
Program 8ame Area
.se R$P7RT for listing programs
.se PR7RAM for online programs
*eclaration #ection
.sed for defining tables' +ariables
and constants
#tatement #ection
.sed for coding eecutableABAP statement
IBM Global Business Services
-
7/21/2019 Chapter 02_Introduction to ABAP Programming
25/30
IBM Global Business Services
IBM Corporation 20132- !ec"200#Introduction to ABAP Programming
ABAP Program Attributes
Program Title is mandator
#tatus
Application
Tpe
IBM Global Business Services
-
7/21/2019 Chapter 02_Introduction to ABAP Programming
26/30
IBM Global Business Services
IBM Corporation 20132/ !ec"200#Introduction to ABAP Programming
*unning an ABAP Program5rom the ABAP $ditor:
>ith the program
displaed'ProgramC$ecute
An Alternati+e Method:
5rom the #stem Menu'
choose #er+icesC Reporting
specif the program
$ecute
7ne 5inal Method:
5rom the ABAP $ditor: Initial #creen' tpe
the program name' then clic) on the $ecute
push1button
IBM Global Business Services
-
7/21/2019 Chapter 02_Introduction to ABAP Programming
27/30
IBM Global Business Services
IBM Corporation 201320 !ec"200#Introduction to ABAP Programming
!emonstration
/riting a simple ABAP program and e.ecuting it
IBM Global Business Services
-
7/21/2019 Chapter 02_Introduction to ABAP Programming
28/30
IBM Global Business Services
IBM Corporation 20132% !ec"200#Introduction to ABAP Programming
Practice
/riting a simple ABAP program and e.ecuting it
IBM Global Business Services
-
7/21/2019 Chapter 02_Introduction to ABAP Programming
29/30
IBM Global Business Services
IBM Corporation 20132 !ec"200#Introduction to ABAP Programming
Summar,
&'e ABAP -ditor is used to create maintain and e.ecute ABAP programs
Custom programs must start (it' a ;= and can be up to ?0 c'aracters in
lengt'
In an ABAP program )
-ac' statement must end (it' a period 4+ull"stop5
8e, (ords are al(a,s t'e +irst (ord in a statement
/ords must be separated b, at least one blan
ABAP statements can be indented and e.tend over several lines
ABAP programs must start (it' eit'er t'e P*$G*AM or *-P$*& statement
Comments can be (ritten b, placing an asteris 4@5 in column 1 or placing a
double uotation mar 45 (it'in a line
IBM Global Business Services
-
7/21/2019 Chapter 02_Introduction to ABAP Programming
30/30
IBM Global Business Services
IBM C ti 20133, ! 200#I t d ti t ABAP P i
uestions
/'at are di++erent t,pes o+ ABAP programsD
/'at are t'e steps to create a simple ABAP programD
Eo( to reac' in debugging mode o+ an ABAP programD