In This Chapter You Will Learn... : Objectives
In This Chapter You Will Learn... : Objectives
Objectives
A d van ced
B u sin ess
A p p licatio n
P rog ram m in g
/
4
© S A P AG
Overview of ABAP
• ABAP 4 is tightly integrated across all the modules viz like SD,
MM, HR etc and most or all of the modules and transactions(like
screens are created using ABAP).
R untim e
© S A P AG
Overview of ABAP
A B A P /4 P r o g r a m O b je c t s
D e v e lo p m e n t c la s s
D e v . c la s s o b je c t t y p e s P ro g ra m
D ic tio n a r y o b je c ts G lo b a l d a ta
P ro g ra m s P B O m o d u le s
F u n c tio n g r o u p s P A I m o d u le s
In c lu d e s S u b r o u t in e s
T r a n s a c tio n s S c re e n s
L o g ic a l d a ta b a s e s G U I s ta tu s
M e s s a g e c la s s e s In c lu d e s
.
. T r a n s a c tio n s
.
© SAP AG
Overview of ABAP
•Development Class
• You then specify the name of the new program. To proceed, click
the radio button Program and choose Display.
Overview of ABAP
•Development Class
Transaction se09
Overview of ABAP
• ABAP/4 Interfaces
A B A P /4 In te r fa c e s
N o n -S A P s y s te m
S A P R /2
S A P R /3 S A P R /3
G e n e r a tio n p r o g r a m D a ta tra n s fe r p ro g ra m
DDaat at a i ni nt et er fr a
f acceess
s e q u e n tia l d a ta s e t
© SAP AG
Overview of ABAP
• ABAP/4 Interfaces Uses:
•In reporting you use the ABAP/4 Open SQL to read data
from the R/3 database. A report consists of a selection
screen, on which you define the dataset you wish to
display, and a list, which displays the data itself. In
interactive reporting, the user can navigate from the
(basic) list to details lists at runtime. Typically, reports
merely read data from the database. However, it is also
possible to make changes in the database using a report.
Overview of ABAP
•Dialog Programming
• In dialog programming you use the Screen Painter to create
screens and program the sequence in which they appear. You
write an ABAP/4 program (ABAP/4 module pool) for your
screens. This is a collection of dialog modules which are called
by the flow logic of your screens. You use dialog programs for
both reading and changing database tables.
R e p o rtin g a n d D ia lo g P ro g ra m m in g
R e p o rt D ia lo g p ro g ra m (S A P tra n s a c tio n )
S e le c tio n L is t S c re e n S c re e n
s c re e n s c re e n 0100 0200
AABBAAPP/4
/4 OOppeenn SSQQLL
© SAP AG
Overview of ABAP
• Batch Data Communication (BDC)
ABAP/4 Syntax
DATA COUNTER TYPE I.
DATA NAME(20).
MOVE 1 TO COUNTER.
MOVE 'ABC' TO NAME.
. ABAP/4 program
.
. statem ent
WRITE NAME.
WRITE COUNTER.
w ord 1
word word
w ord 2 w ord 3
w ord 4
word .
C h a in S ta tem e n ts
WRITE 'XYZ'.
WRITE NAME.
WRITE COUNTER.
ADD 1 TO COUNTER1.
ADD 1 TO COUNTER2.
ADD 1 TO COUNTER3.
© S A P AG
Overview of ABAP/ Basic Syntax of ABAP
• You can concatenate several consecutive statements with an
identical first part into a chain statement.
• When doing this, conclude the identical first part with a colon.
After the colon, separate each concatenated part from the next with
a comma.
• Blanks can appear before and after the separators (colon, comma
or period).
C o m m e n ts
* New account
* Initialize totals field
CLEAR SUM.
© SAP AG
Overview of ABAP/ Basic Syntax of ABAP
S ystem Field s
S ystem fields
© S A P AG
Overview of ABAP/ Basic Syntax of ABAP
W R IT E S ta te m e n t
REPORT RSAAA02C.
WRITE: '******************************'.
SKIP 2.
A B A P /4 P ro g ra m m A ttrib u te
W R IT E : In tro d u c tio n 1
**********************************************
D a te 0 1 .0 1 .1 9 9 6 T im e 1 4 :4 6 :1 0
**********************************************
© SAP AG
Overview of ABAP/ Basic Syntax of ABAP
•Write Statement