ABAP Programming Overview
Module Objectives
• Describe the ABAP Development Workbench and
Object Navigator
• Define the ABAP Editor, settings and commands
• Describe program attributes and set-up procedures
• Define Packages
• Describe ABAP program naming standards
• Explain program structure and ABAP events
• Define ABAP utilities
2
Copyright © 2005 Accenture
ABAP Development Workbench
3
Copyright © 2005 Accenture
Key Workbench Transactions
• Object Navigator (SE80)
• ABAP Dictionary (SE11)
• ABAP Editor (SE38)
• Function Builder (SE37)
• Screen Painter (SE51)
• Menu Painter (SE41)
4
Copyright © 2005 Accenture
Object Navigator
Object Hierarchy Object Window
5
Copyright © 2005 Accenture
ABAP Editor
6
Copyright © 2005 Accenture
Attributes
ABAP Editor
Attributes
7
Copyright © 2005 Accenture
Packages
8
Copyright © 2005 Accenture
Program Naming Standards
ZSER01-99
SELECT . . .
WRITE . . .
9
Copyright © 2005 Accenture
Copying Program Code
Copy Program ZDEMO001
Source program ZDEMO001
Target program ZDEMO002
ABAP Editor
Copy
Copy Program ZDEMO001 to ZDEMO002
Source
Texts
Documentation
Variants
GUI Status
Screens
Includes
Copy Request(organizer)
10
Copyright © 2005 Accenture
Copying Sections of a Program
1 Select block of code to be copied
11
Copyright © 2005 Accenture
Copying Sections of a Program
2 Copy block to clipboard
12
Copyright © 2005 Accenture
Starting an ABAP Report
ABAP Editor
Test
13
Copyright © 2005 Accenture
Program Structure
REPORT name
or
PROGRAM name
*Declaration section
DATA: i_tab type i
TABLES: SBOOK
*Statement section
14
Copyright © 2005 Accenture
Pattern Pushbutton
ABAP Editor
Pattern
15
Copyright © 2005 Accenture
INCLUDE Programs
* INCLUDE ZCOST REPORT ZABAP.
INCLUDE ZCOST.
INITIALIZATION.
* INCLUDE ZSUB
.
.
.
INCLUDE ZSUB
16
Copyright © 2005 Accenture
Commenting Programs
Comment Entire Line Partial Line Comment
DATA: SUM TYPE P, "Totals field
COUNTER TYPE P.
* New account
* Initialize totals field
CLEAR SUM.
17
Copyright © 2005 Accenture
Exercise
Exercise 6 - Use the ABAP Editor, 35 minutes
18
Copyright © 2005 Accenture
Questions & Answers
Any questions?
19
Copyright © 2005 Accenture