Escolar Documentos
Profissional Documentos
Cultura Documentos
Contents
Introduction .......................................................................................................... 7
Unit 1 Overview ................................................................................................. 9
Course Overview ............................................................................................. 9
Unit Overview .................................................................................................. 9
Evolution to SAP NetWeaver ........................................................................ 10
What Is SAP NetWeaver? ............................................................................. 11
Communication Interfaces............................................................................. 12
What Is ABAP Web Dynpro?......................................................................... 13
Development Considerations.................................................................. 14
Building Blocks........................................................................................ 14
How the Pieces Work Together .............................................................. 16
Scenario 1 Creating First Web Dynpro Application .................................... 17
Creating a Package and a Change Request .......................................... 18
Create a Web Dynpro Component ......................................................... 20
Created Component Elements ............................................................... 22
Main Window (Window Controller) ......................................................... 25
The Web Dynpro Application......................................................................... 26
The Internet Component Framework Web Dynpro Relationship ............ 27
ABAP OO Foundation Overview ................................................................ 28
ABAP Classes and Objects .................................................................... 29
Basic Syntax: Using Classes in Programs ............................................ 30
Local Classes.......................................................................................... 32
Global Classes ........................................................................................ 34
Class Components ................................................................................. 35
Class Definition ....................................................................................... 35
Static versus Instance ............................................................................. 37
Using Classes in Programs .................................................................... 37
Instantiation Process .............................................................................. 38
Functional Methods ................................................................................ 39
Inheritance/Sub Classes ......................................................................... 41
Interfaces ................................................................................................ 41
Working with Interfaces .......................................................................... 43
Rev. 08/08/08
Introduction
Events ..................................................................................................... 44
Exceptions ............................................................................................... 45
Handling Exceptions in Programs ........................................................... 47
Summary of Unit ............................................................................................ 48
Exercises ....................................................................................................... 48
Unit 2 Web Dynpro Controllers ...................................................................... 49
Unit Overview................................................................................................. 49
Controllers What Are They? ....................................................................... 49
Controller Types............................................................................................. 50
Components of a Controller .................................................................... 51
Component Controllers ........................................................................... 53
Custom Controllers.................................................................................. 55
Window Controllers ................................................................................. 55
View Controllers ...................................................................................... 57
Lifetime of a Controller Instance ............................................................. 60
Controller Reference Overview...................................................................... 61
Hook Methods Execution Order Starting Application ........................... 62
Scenario 1: Hook Methods Execution Order Client Side Event ........... 62
Scenario 2: Standard Navigation between Views ................................... 63
Summary of Unit ............................................................................................ 70
Exercises ....................................................................................................... 70
Unit 3 Web Dynpro Contexts ........................................................................... 71
Unit Overview................................................................................................. 71
Contexts What Are They? ........................................................................... 72
Context Building Blocks ................................................................................. 73
Context Nodes ......................................................................................... 73
Context Attributes .................................................................................... 73
Collections and Elements ........................................................................ 73
Contexts Design/Runtime Example ........................................................ 74
Context Properties................................................................................... 76
Creating Context Nodes and Attributes................................................... 77
Creating Attribute .................................................................................... 79
Contexts as Classes and Objects in Memory ......................................... 80
Node Cardinality ............................................................................................ 81
Singleton Property with Lead Selection ......................................................... 83
Supply Methods ............................................................................................. 85
Context Mapping ............................................................................................ 86
Rev. 08/08/08
Introduction
Rev. 08/08/08
Introduction
Rev. 08/08/08
Introduction
Rev. 08/08/08
Introduction
Rev. 08/08/08