7_7_2007_12_11_09_pm_abap_othr
TRANSCRIPT
8/12/2019 7_7_2007_12_11_09_pm_abap_othr
http://slidepdf.com/reader/full/772007121109pmabapothr 1/5
ABAP
Programming Models
Classical ABAP
Runtime Event-oriented Programming
Dialog Programming
Reporting1. Object Oriented Programming
R/3 Basis System
Logical components of R/3 Basis System are
Presentation Laer
8/12/2019 7_7_2007_12_11_09_pm_abap_othr
http://slidepdf.com/reader/full/772007121109pmabapothr 2/5
Application Laer
Database Laer
Processing Blocks
Event Blocks li!e LOAD-O"-PRO#RA$%&'&(&AL&)A(&O'% *(AR(-O"-*ELEC(&O'% #E(% E'D-O"-
*ELEC(&O'% A( *ELEC(&O' *CREE'% (OP-O"-PA#E% E'D-O"-PA#E% A( L&'E-*ELEC(&O'% A( +*ER CO$$A'D%
PROCE** BE"ORE O+(P+(% PROCE** A"(ER &'P+(
Dialog Modules , deined it/ $OD+LE - E'D$OD+LECalled during PBO and PA& events rom screen lo logic o
t/e ABAP program0s screen
lasses , deined it/ CLA** - E'DCLA**
Procedures , t/ere are t/ree tpes o procedures.
Su!routines , deined it/ "OR$ - E'D"OR$.Called it/ PER"OR$
"unctions , deined it/ "+'C(&O' -E'D"+'C(&O'
Called it/ CALL "+'C(&O'
Met#ods , deined it/ $E(OD - E'D$E(ODCalled it/ CALL $E(OD
Program $ypes
(/ere are to tpes
1. E%ecuta!les 2(pe 13+sed or reporting purpose.
Program is deined as REP&R$ 'name(
4. Module Pools 2(pe $3+sed or Dialog Programming.
Program is deined as PR&)RAM(ransaction Code is assigned or eac/ program.
Program Modulari*ation
(/ree tpes o modulari5ation
+, -nternal& ou ant to reuse se6uences o code and to encapsulate
unctions and data it/in our ABAP program% ou canmodulari5e our program eit/er it/ local subroutines or
methods of local classes.
8/12/2019 7_7_2007_12_11_09_pm_abap_othr
http://slidepdf.com/reader/full/772007121109pmabapothr 3/5
., E%ternal& ou ant to create procedures t/at are accessible not just
inside one program% but or all ABAP programs o t/e R78sstem% ou can create function modules (Type F) or
methods in global classes (Type K).
3, Source ode
(/ere is anot/er !ind o modulari5ation t/at ou s/ould neverconuse it/ real program $odulari5ation. (/is is source code
modulari5ation it/ Include programs (Type I). &nclude
programs are not separatel compiled units. (/eir source codeis inserted into t/e programs in /ic/ a corresponding &'CL+DE
statement occurs. &nclude programs allo ou to managecomple9 programs in an orderl a.
$o all ABAP ProgramE9ecutables -: SBM-$
$odule Pools -: ALL $RA0SA$-&0
ABAP $1PE 0-2ERSE
(/ere are mainl to tpes in ABAP (pe +niverse
1. Data $ypes deined it/ $1PE !eord.(/ere are t/ree categories o Data (pes
+,+, Elementary
Elementar (pe is
1.1.1. "i9ed Lengt/&n "i9ed Lengt/ olloing are sub tpe0umeric
"loating 2"3
&nteger 2&3Pac!ed 2P3
#aracter
C/aracter 2C3
'umeric (e9t 2'3
Date 2D3(ime 2(3e9adecimal 2;3
1.1.4. <ariable Lengt/
(/ere are to tpes in t/is categorC/aracter 2*(R&'#3
Bte *tring 2;*(R&'#3+,., omple%
8/12/2019 7_7_2007_12_11_09_pm_abap_othr
http://slidepdf.com/reader/full/772007121109pmabapothr 4/5
Comple9 (pe is1.4.1. *tructure
1.4.4. (able+,3, Reference
Reerence (pe is
1.8.1. Data1.8.4. Object
4. &!4ect $ypes deined it/ DA$A !eord.(o categories under t/is are
.,+, lasses 5 &!4ects
.,., -nterface
Screens
*creen is programmed it/ t/e Screen Painter (ool o ABAP
6ork!enc#.
(/ere are to tpes
+, )eneral Screens
&t consist o to tpes
"irst Layout t/at deines t/e ront-end appearance o t/e
indo t/at is presented to t/e user.
*econd "lo7 Logic t/at is e9ecuted on t/e bac!end b t/eapplication server.
(/e screen lo logic is a program laer beteen t/e ront-endand t/e actual ABAP application program at t/e bac!end.
., Special Screens
(o tpes4.1. *election *creens
Selection screens are special screens used to enter values
in ABAP programs. =ou can deine selection screens in t/eglobal declaration part o an ABAP
8/12/2019 7_7_2007_12_11_09_pm_abap_othr
http://slidepdf.com/reader/full/772007121109pmabapothr 5/5
program t/at can contain screens using t/e olloingspecial declaration statements, *ELEC(&O'*CREE' deines
and ormats selection screens% andPARA$E(ER* and *ELEC(-OP(&O'* deine input ields or
single values or intervals.
4.4. Lists
Lists are output-oriented screens t/at displa ormatted%structured data. Data in list ormat can be sent to t/e R78
spool sstem or printing. =ou deine
lists using a special set o statements 2>R&(E% *?&P%+L&'E% and so on3. >it/ t/ese statements% a list is created
and buered on t/e application server.
(o call screen call using $ransaction ode or b using t/e ALL
SREE0.