Introduction To Web Dynpro
Introduction To Web Dynpro
Web Dynpro
Objectives
• Explain the significance of Web Dynpro
along with the Web Dynpro architecture.
Processing
Web Dynpro
application
Application
Web browser SAP GUI
Client
Presentation Layer
Web Dynpro BSP Dynpro
Persistence Layer
Database Interface
Database
(AS ABAP Schema)
Advantages
Model
View
Controller
Model
Controller
View
View
Component Controller
Window
Application
View
• View Layout
• Context View
• Actions
• Methods
• Properties
• Attributes
Context Menus
View
Designer
UI elements
hierarchy
UI Element
Library
UI elements
properties
Layout Properties
Layout Properties
Layout Properties
Properties
Properties
Framework controlled
When visible
Attributes
WD_CONTEXT
WD_THIS
WD_COMP_CONTROLLER
View
Overview: Build a simple webdynpro
Design layout view
application:
Create events
Data binding
Define methods
Duration 30 minutes
View
Component Controller
Window
Application
Component Controller
Component Controller
• Create using the wizard
Component Controller
• Create using the wizard
Create attribute
Overview: Modify previous exercise and
create context views
Create node
Duration 30 minutes
View
Component Controller
Window
Application
Window
• An entity into which we embed all the views
that will be used to construct the screen
for the end user
Window
• By using Inbound plugs and Outbound plugs,
we define the navigation between views or windows
View
Component Controller
Window
Application
Application
• After developing a Web Dynpro component,
we need to provide the users with access
to its functionality
Application
• To run the application, we can use the Execute button
or we can copy and past the URL into the browser
Duration 30 minutes
Do’s Don’ts
Do delete all Web Dynpro component Do not write the entire application
instances as soon as they are no longer source code in Web Dynpro
needed. To do that, use components.
IF_WD_COMPONENT_USAGE=>DEL
ETE_COMPONENT.
Do set the lifetime of a view to when Do not put all your data into the context.
visible, if the view is displayed only
once in an application.
Do group together as many views that Do not create long context mapping
belong to one application part as chains.
possible.
Do put only the data required for the UI Do not create a mega context for all
element binding into the context. data belonging to one application.
Do’s
Do put only the data required for
the UI element binding into the
context
Do use the assistance class or
other ABAP OO classes for the data
exchange
Do use singleton nodes if nestings
(master detail) as necessary
Do use data with context structure for
BIND_TABLEUpdate the context only if
the data actually has to be updated
Do’s Don’ts
Do create application screen that fit into Do not use container scrolling
a typical browser window. (scrollingMode<>none)
Do use the scrolling features of Table, Do not use the scrolling function of the
Multipane and RowRepeater browser window
Do use a Table with either Avoid deep nestings of Containers,
TreeByKeyTableColumn or Groups, and TabStrips.
TreeBYNestingTableColumn
Do modify your UI elements only if they Do not insert any Transparent
really have to be changed Container UI elements into Container
UI elements, for example, Groups.
Don’ts
Do not use dynamic UI element
programming and/or multiple
components for repeating layouts.
Modify UI elements only if they really
have to be changed
Do not use the UI element tree
Avoid deep nestings of Containers,
Groups, and TabStrips.
Do not insert any Transparent
Container UI elements into Container
UI elements, for example, Groups.
SAP Web Dynpro is based on original MVC design for decoupling presentation
and application logic.
Windows, Views, UI elements, Layouts, and Controllers form the basic components
of a Web Dynpro application.
• Component Controller,
• Custom Controller,
• Configuration Controller,
• View Controller
• Windows Controller
Specific iViews should be created in order to run a Web Dynpro ABAP application
within SAP enterprise portal.
All WDA components, applications, and parts of the component are integrated parts of
the standard correction and transport system (CTS).
The standard ABAP lifecycle concepts fully apply to all Web Dynpro-based applications.