ABAP Programming Overview
Copyright © 2005 Accenture2
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
Copyright © 2005 Accenture3
ABAP Development Workbench
Copyright © 2005 Accenture4
Key Workbench Transactions
• Object Navigator (SE80)
• ABAP Dictionary (SE11)
• ABAP Editor (SE38)
• Function Builder (SE37)
• Screen Painter (SE51)
• Menu Painter (SE41)
Copyright © 2005 Accenture5
Object Navigator
Object Hierarchy Object Window
Copyright © 2005 Accenture6
ABAP Editor
Copyright © 2005 Accenture7
Attributes
Attributes
ABAP Editor
Copyright © 2005 Accenture8
Packages
Copyright © 2005 Accenture9
Program Naming Standards
ZSER01-99
SELECT . . .
WRITE . . .
Copyright © 2005 Accenture10
Copying Program Code
Copy Program ZDEMO001
Source program
Target program
ZDEMO001
ZDEMO002
Copy Program ZDEMO001 to ZDEMO002
SourceTextsDocumentationVariantsGUI StatusScreensIncludes
Request(organizer) Copy
CopyABAP Editor
Copyright © 2005 Accenture11
Copying Sections of a Program
1 Select block of code to be copied
Copyright © 2005 Accenture12
Copying Sections of a Program
2 Copy block to clipboard
Copyright © 2005 Accenture13
Test
Starting an ABAP Report
ABAP Editor
Copyright © 2005 Accenture14
Program Structure
REPORT name orPROGRAM name
*Declaration section
DATA: i_tab type i TABLES: SBOOK
*Statement section
Copyright © 2005 Accenture15
Pattern Pushbutton
ABAP Editor
Pattern
Copyright © 2005 Accenture16
INCLUDE Programs
REPORT ZABAP.
INCLUDE ZCOST.
INITIALIZATION.
.
.
.
INCLUDE ZSUB
* INCLUDE ZCOST
* INCLUDE ZSUB
Copyright © 2005 Accenture17
Commenting Programs
DATA: SUM TYPE P, "Totals fieldCOUNTER TYPE P.
* New account* Initialize totals field
CLEAR SUM.
Partial Line CommentComment Entire Line
Copyright © 2005 Accenture18
Exercise 6 - Use the ABAP Editor, 35 minutes
Exercise
Copyright © 2005 Accenture19
Any questions?
Questions & Answers