Download - Intro to ABAP - Chapter 02_V1
-
7/30/2019 Intro to ABAP - Chapter 02_V1
1/17
Introduction to ABAPProgramming | 1.02
1
Terms to Remember
Report: An ABAP program whose output is
a list
Module Pool:
A dialog program which is acollection of screens
List:
The output generated by an ABAPreport program
Program
A series of ABAP statements
-
7/30/2019 Intro to ABAP - Chapter 02_V1
2/17
Introduction to ABAPProgramming | 1.02
2
Reporting
ABAP
Development
Reporting and ABAP
Development
-
7/30/2019 Intro to ABAP - Chapter 02_V1
3/17
Introduction to ABAPProgramming | 1.02
3
Programming Environment -
The ABAP Editor
-
7/30/2019 Intro to ABAP - Chapter 02_V1
4/17
Introduction to ABAPProgramming | 1.02
4
Programming Environment
Online Debugging
-
7/30/2019 Intro to ABAP - Chapter 02_V1
5/17
Introduction to ABAPProgramming | 1.02
5
Basic Functions of the ABAP
Editor
Program source entry area
Find and
Repeat Find
Toggles from
display to
change mode
Undo
ABAP Help
Syntax CheckStandard toolbar
Cut, copy and paste
to and from a buffer
-
7/30/2019 Intro to ABAP - Chapter 02_V1
6/17
Introduction to ABAPProgramming | 1.02
6
The PROGRAM Menu Option
-
7/30/2019 Intro to ABAP - Chapter 02_V1
7/17
Introduction to ABAPProgramming | 1.02
7
The EDIT Menu Option
-
7/30/2019 Intro to ABAP - Chapter 02_V1
8/17
Introduction to ABAPProgramming | 1.02
8
The GOTO Menu Option
-
7/30/2019 Intro to ABAP - Chapter 02_V1
9/17
Introduction to ABAPProgramming | 1.02
9
The UTILITIES Menu Option
-
7/30/2019 Intro to ABAP - Chapter 02_V1
10/17
Introduction to ABAPProgramming | 1.02
10
The BLOCK/BUFFER Menu
Option
-
7/30/2019 Intro to ABAP - Chapter 02_V1
11/17
Introduction to ABAPProgramming | 1.02
11
The SETTINGS Menu Option
To set Editor mode,
use the menu pathSettings-> Editor
mode
Preferred settings:
PC mode with line
numbering
With compressionlogic
Key word large
-
7/30/2019 Intro to ABAP - Chapter 02_V1
12/17
Introduction to ABAPProgramming | 1.02
12
DATA COUNT TYPE I.
DATA TITLE(25).
MOVE 1 TO COUNT.MOVE President TO TITLE.
WRITE TITLE.
WRITE COUNT.
Basic ABAP Program Syntax
ABAP Program
Statement.
Word 1 Word 2 Word 3 Word 4
Key word Parameter, field, or constant
-
7/30/2019 Intro to ABAP - Chapter 02_V1
13/17
Introduction to ABAPProgramming | 1.02
13
Chaining Statements in ABAP
DATA COUNT TYPE I.
DATA TITLE(25).
MOVE 1 TO COUNT.
MOVE President TO TITLE.
WRITE TITLE.
WRITE COUNT.
WRITE: TITLE, COUNT.
DATA: COUNT TYPE I,
TITLE(25).
MOVE: 1 TO COUNT,President TO TITLE.
-
7/30/2019 Intro to ABAP - Chapter 02_V1
14/17
Introduction to ABAPProgramming | 1.02
14
Comments in ABAP
A double quotation mark
() anywhere on a line
makes everything that
follows a comment.
An asterisk (*) in column
1 makes the entire line
a comment line.
-
7/30/2019 Intro to ABAP - Chapter 02_V1
15/17
Introduction to ABAPProgramming | 1.02
15
ABAP Program Structure
Program Name Area
Use REPORT for listing programs
Use PROGRAM for online programs
Declaration Section
Used for defining tables, variables
and constants
Statement Section
Used for coding executable
ABAP statement
-
7/30/2019 Intro to ABAP - Chapter 02_V1
16/17
Introduction to ABAPProgramming | 1.02
16
ABAP Program Attributes
Type:
1 - Executable Program
I - Include Program
M - Module Pool
F - Function Group
S - Subroutine Pool
Program title is required
Application:
S - Basis
U - EDM (Enterprise Data Model)
V - Sales and Distribution
Y - Customer Head Office
Z - Customer Branch
* - For all Applications
-
7/30/2019 Intro to ABAP - Chapter 02_V1
17/17
Introduction to ABAPProgramming | 1.02
17
Running an ABAP Program
From the ABAP Editor:
With the programdisplayed,
ProgramExecute
An Alternative
Method:
From the System
Menu, choose
ServicesReporting tolaunch
the programOne Final Method:
From the ABAP Editor: Initial Screen, type
the program name, then click on the Execute
push-button