Escolar Documentos
Profissional Documentos
Cultura Documentos
Company
Company Logo
Logo
Course Objective
After completing this course, you will
be able to:
Explain the architecture of a Web
Dynpro component
Describe the constituents of a Web
Dynpro controller
Create context elements in Web
Dynpro controllers
Explain how navigation and data
Definition :
Web Dynpro is the SAP NetWeaver
programming model for user
interfaces (UIs).
Features :
• The Web Dynpro model is based on
the Model View Controller
paradigm, and has been build on
the classic dynpro model
• Clear separation of business logic
and display logic
Main webdynpro
component’s parts
Component Controller
•
v Context
• Windows
v Controller
v Context
v Attributes
v Methods
v Enbedded views
v ........
• Views
v UI elements
v Layout
v Controller
v Plugs
v Actions
v Context
v ..................
Parts of webdynpro
component
Different types of
Controllers
Component Controller
Custom controller
Configuration controller
View controller
Window controller
Different Webdynpro
entities
At runtime, all controller instances are singletons in respect to
their parent component. This is also true for view controllers; thus,
embedding a view in a view assembly more than one time is not
allowed.
Context
Context and data transport
Context Nodes and
Attributes
Cardinality
Cardinality Description
multiple views
Exercise 2: Application
overview
Exercise 2: design first view
Exercise 2: context
mapping of view1
Exercise 2: data binding
view1
Exercise 2: design second
view
Exercise 2: context
mapping view2
Exercise 2: data binding
view2
Exercise 2: view embedding
Exercise 2: creating
navigation links
Exercise 2: creating
application & test
Inter-
application
WD application 1
navigation
WD application 2
Company Logo
Example
Web Dynpro application
and aggregated
components
Principle of an inter-
application-navigation
scenario
Defining a Web Dynpro
Application in SAP
NetWeaver™ Developer
Studio
Interface
IPublicStartCompInterfaceVi
ew
View layout
Defining view controller
usage
Implementing eventhandler
Start Component and firing
exit plug
Target Component
Adding a startup plug
parameter
Defining the component
controller usage
User Interface
Elements
Company Logo
Standard UI elements are :
Button
Table
InputField
A
D
E
c
n
t
s UI elements help to execute
e
p
ro
tn
a
s
e
y
x
t
g
re
x
a
t
p
h
c
s
Various UI element sections
● favorites
● text
● action
● selection
● complex
● layout
● graphic
● integration
Various types of text forms
● Static Texts
● Dynamic Texts
● Long texts
Messages
Company
Company Logo
Logo
Description
Messages are language-dependent
texts that are displayed on the screen
if, for example, an error occurs when
an application is run or the user
enters data in the wrong format.
Advisory
SAP recommends that you restrict the
number of messages to a manageable
amount. If there are too many
messages it overburdens the end user
Example
Three settings for handling
messages
Show message component if required
i_use_toggle_area = 'X' Old design of the message area (with the toggle
area)
i_msg_lines_visible = 0 All messages are immediately visible (default
setting)
i_show_only_current = 'X' Together with i_use_toggle_area = ' ' this means
that no message log can be displayed (default
setting)
Company Logo
Two pre-implemented input
helps
OVS help
ABAP Dictionary Search Help
ABAP Search help
This input help is based on the search
help function of the ABAP Dictionary
in the SAP system. So you use search
helps for data elements and
structures defined in the ABAP
Dictionary so far as these are
supported by Web Dynpro.
Example
OVS help
You can use Object Value Selection
input help if it is not possible to carry
out the search using the ABAP
Dictionary, for example, if the value
set is to be calculated in the Web
Dynpro application.
Event OVS
The callback to the using component
is implemented through the OVS
event at the interface controller of the
OVS component. This event is
automatically triggered four times,
one after the other . It passes
parameter OVS_CALLBACK_OBJECT of
type IF_WD_OVS to the corresponding
event handler in the application
component. The phase is determined
from instance attribute
Various phase indicators
PHASE_INDICATOR = IF_WD_OVS=>CO_PHASE_0
PHASE_INDICATOR = IF_WD_OVS=>CO_PHASE_1
PHASE_INDICATOR = IF_WD_OVS=>CO_PHASE_2
PHASE_INDICATOR = IF_WD_OVS=>CO_PHASE_3