Professional Documents
Culture Documents
01 ABAP Fundamentals Student Version
01 ABAP Fundamentals Student Version
ABAP FUNDAMENTALS
Spring 2011
Enterprise Programming
What is ABAP?
Originally: Allgemeiner Berichts-Aufbereitungs-Prozessor (Generic
Report Preparation/Generation Processor)
Now: Advanced Business Application Programming
Created by SAP initially for report creation. Later evolved into full
language. Made public for program customization and
enhancement by companies.
Notable for its database abstraction (logical databases) and ease of
database interaction. Embedded SQL statements in code (Open
SQL). Platform independent.
Extended in 1998 to include Object support (ABAP Objects).
Developing using OO model recommended, but legacy procedural
coding still supported.
1/16/2011
http://www.sap.com/services/education/catalog/netweaver/curriculum.epx?context=%5b%5bABAP_CORE%5d%5d%7c
https://training.sap.com/courses-and-curricula/netweaver
1/16/2011
Prehistory of NetWeaver
1/16/2011
3-tiered architecture
Presentation Layer
Application Layer
Database Layer
1/16/2011
ABAP Programming
& Output
Application Layer
ABAP Execution
Database Layer
Application Layer
Run Transaction/Program
Database Layer
Program Repository
ABAP Program
Screen
Local Data
Variables
Program Logic
Database Table(s)
Screen
Screen
Based on content from Unit 2, BC100, figures 25-35
1/16/2011
1/16/2011
Server
Server
SAP ERP
SAP ERP
SAP ERP
Client xxx
Client xxx
Client xxx
Transport
Development
(DEV)
Transport
Test/Quality
Assurance
(QAS)
Production
(PROD)
Server
SAP ERP
Client xxx
Training
(TRN)
Programming Process
1.
2.
3.
4.
5.
6.
7.
8.
1/16/2011
Beginning Programming
ABAP Development Rules:
ABAP programs made up of individual sentences/statements.
Each statement begins with a keyword.
Conventional to type keywords in all uppercase letters and
variables, operators, etc. in all lowercase.
Built in Pretty Printer
Each statement ends with a period.
Statements can be indented as desired.
Statements can extend over multiple lines.
Lines with * in column 1 are comment lines.
Double quotes () are to-end-of-line comments.
Source: SAP BC100, Page 60-61
ABAP Editor
Various settings can be maintained through Utilities Settings, ABAP
Editor
Launch directly with transaction SE38 or SE80 for ABAP Workbench.
To avoid name collision, in all development done on our system begin
your programs with the prefix Zxx_ where xx is your individual user
number (the last 2 digits of your user name).
If you do your own practice development, enter source code from
various sources, etc. you must comply with this requirement.
If you have access to multiple SAP systems note that this number will
vary among systems.
If you want to create multiple instances of the same program
(practice, redo, etc.), end instances with _01, _02, etc.
1/16/2011
1/16/2011
Save/check this dialog and the one that shows the package and the
transport request.
10
1/16/2011
Cannot create a new package with this sequence! But if one already
exists, can use it.
11
1/16/2011
Appendix
The following slides show screen shots for reference which are
displayed live in lecture.
12
1/16/2011
SCC4
13
1/16/2011
14
1/16/2011
Copyrights
Presentation prepared by and copyright of Dr. Tony
Pittarese, East Tennessee State University, Computer and
Information Sciences Dept. (pittares@etsu.edu)
Podcast lecture related to this presentation available via
ETSU iTunesU.
Microsoft, Windows, Excel, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation.
IBM, DB2, DB2 Universal Database, System i, System i5, System p, System p5, System x, System z, System z10, System z9, z10, z9, iSeries, pSeries,
xSeries, zSeries, eServer, z/VM, z/OS, i5/OS, S/390, OS/390, OS/400, AS/400, S/390 Parallel Enterprise Server, PowerVM, Power Architecture, POWER6+,
POWER6, POWER5+, POWER5, POWER, OpenPower, PowerPC, BatchPipes, BladeCenter, System Storage, GPFS, HACMP, RETAIN, DB2 Connect, RACF,
Redbooks, OS/2, Parallel Sysplex, MVS/ESA, AIX, Intelligent Miner, WebSphere, Netfinity, Tivoli and Informix are trademarks or registered trademarks of
IBM Corporation.
Linux is the registered trademark of Linus Torvalds in the U.S. and other countries.
Oracle is a registered trademark of Oracle Corporation.
HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology.
Java is a registered trademark of Sun Microsystems, Inc.
JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape.
SAP, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP Business ByDesign, and other SAP products and services mentioned herein as well as their
respective logos are trademarks or registered trademarks of SAP AG in Germany and other countries.
Business Objects and the Business Objects logo, BusinessObjects, Crystal Reports, Crystal Decisions, Web Intelligence, Xcelsius, and other Business
Objects products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Business Objects S.A. in the
United States and in other countries. Business Objects is an SAP company.
Other products mentioned in this presentation are trademarks of their respective owners.
15