Vous êtes sur la page 1sur 64

ABAP Objects and application areas

Target Audience
This course is intended for the following audiences: Development consultants who are responsible for adapting and developing ABAP/ABAP Objects programs

Course Prerequisites
Required knowledge
TAW10(ABAP Workbench Fundamentals) Included in booking: TAW11

Recommended Knowledge
BC410 Programming User Dialogs with dynpro

Course Goals
Use fundamental elements object-oriented modeling in UML Create ABAP Objects programs that contain all useful object-oriented programming techniques Use the relevant tools to create object-oriented Repository objects Describe and use the application areas of ABAP objects Define, raise and handle class-based exceptions Query type and class attributes at runtime

Unit1 -Objectives
Differences between procedural and object-oriented programming models List the advantages of object oriented programming model Name the important diagram types in UML Create simple class diagrams Create simple object diagrams Describe sequence diagrams Define Classes Generate and delete objects Access attributes

The object-oriented programming model : Moving from the procedural to object-oriented programming model:

Characteristics of procedural programming language

Typical ABAP Program

Encapsulating data using function groups

Example of a function group

Instances of function group

Multiple instantiation in ObjectOriented programming

ABAP Main memory encapsulation

DATA management

ABAP objects

Client/server relation ship between objects

Additional Concepts

Charecteristics/Advantages

Software Development Process

Analysis and design with UMLObjectives


Most important diagram types in UML class diagrams Object diagrams sequence diagrams

Class creation/ modeling

Classes as abstraction forms

Comparison of classes and objects

Modeling with UML


Class Diagrams:
Show the classes and the relation ships between them, that is a static view of a model

Behavior diagrams
Pay particular attention to the sequence in which the objects relate to each other

Component diagrams
show the organization and dependencies of components

Representation of a class

Association

Association with roles

Assocation classes

Aggregation and composition

Generalization and Specialization

Object diagram

Sequence diagram

Delegation principle in Sequence diagram

Fundamental Object oriented syntax elements-objectives


Define classes Generate and delete objects Access attributes Call methods

Classes ,attributes , and methods

Defining classes

Attributes

Definition of attributes, Types, and Constants

Visibility section of attributes

Accessing private attributes

Instance and static attributes

Syntax for methods

Visibility section of Methods

Accessing private methods

Instance Methods and Static Methods

Visibility Sections and UML notation

Instances of Classes

References Variables

Creating Objects

Semantics of Object References

Garbage Collector

Administration with multiple instantiation

Aggregation

Accessing attributes and methods

Functional Methods

Accessing public attributes

Constructors

Static Constructor

Self Reference