Professional Documents
Culture Documents
web browsers (IE 5.5, Mozilla 1.7) mobile devices (PocketPC, Blackberry) Web Dynpro Client for Windows (SAPGUI)
different
Accessibility,
Advantages of WDA
The use of declarative and graphical tools significantly reduces the implementation effort Web Dynpro supports a structured design process Strict separation between layout and business data Reuse and better maintainability by using components The layout and navigation is easily changed using the Web Dynpro tools Stateful applications are supported Automatic data transport using data binding User interface accessibility is supported Full integration in the reliable ABAP development environment ALV Lists can be used
The concept of Web Dynpro ABAP is identical with Web Dynpro Java and offers more or less the same functions
Introduction to Context
The contexts are the main concept for storing and passing data in Web Dynpro Each controller has its own context All data used in controllers or views is stored in the context of the corresponding controller A context represents a hierarchical data model Structure :
Global controllers - each component has at least one global controller (component controller)
Component controller Custom controller Window controller Controller source code: Event handlers Methods Supply functions
Confidential | | Copyright Copyright Larsen Larsen& &Toubro ToubroInfotech InfotechLtd. Ltd. Confidential
Application
10
11
Developer role along with SICF Admin access (Auth Object S_ICF_ADMIN) The following services must be activated in the system
/default_host/sap/bc/webdynpro /default_host/sap/public/bc /default_host/sap/public/bc/ur, /icons, /icons_rtl, /webicons, /pictograms, /webdynpro/* (ssr, mimes, etc.), /default_host/sap/public/myssocntl, etc
Note: The service for an application <application> can be found under the ICF node /default_host/sap/bc/webdynpro/sap/<application>
Host file entry for the WAS Bypass proxy for the server address
12
Server
Sapgui 172.25.10.214
User IDs
Vashi 720398 (training123), wdabap1 (wdabap1) Powai wdabap2(wdabap2), trains01 (trains01) Pune trains02, trains03 Bangalore - trains04 Chennai - trains05
13
Create Context
UI elements and properties Data Binding Default Controller methods and attributes Create and execute Web Dynpro Application
14
15
17
18
19
This exercise will help understand the following Create Web Dynpro Component with two views Navigate between different views using inbound and outbound plugs
20
Hands-On - Events
This exercise will help understand the following Create Context sub-node Supply Function Singleton
This exercise will help understand the following Create and raise custom event within a component
21
22
23
performance dynamic texts derived from the class CL_WD_COMPONENT_ASSISTANCE available to each controller of the component through the attribute WD_ASSIST
25
OTR is a central storage area for texts that can be used not only in a Web Dynpro context but also in BSPs, classes and normal ABAP reports
26
Using OTR
To create a new OTR short text, the Online Text Repository browser can be used
The transaction SOTR_EDIT can also be used to create an OTR text Name of an OTR short text: <package>/<alias> To use an OTR short text as the value of a UI element property:
Press the value help button in the properties value field. The browser showing all standard texts of SOTR_VOCABULARY_BASIC
package as
well as the texts of your package will appear. Select your text. The OTR directive that will appear will have the format: $OTR:<package>/<alias>
27
Messages
Messages are used to provide the user with status information of the
position of the message area is on top of the page If another position is required then the MessageArea container UI element has to be used
Message handling: In a web dynpro application you can set the way the
29
31
32
33
34
With Adobe Flex Builder, an Adobe Flash application is created and loaded into the Mime repository of a Web Dynpro component.
35
Enhance Component
36
Best Practices
Some tell-tale signs to look out for:
Little
or no use made of Web Dynpro Logic placed within View of redundant workarounds
Component concept
Business
Controllers
Development
Consequently,
Principle: The Web Dynpro Component is both the fundamental unit of development and the unit of reuse; 1 Component = 1 Business Task
Confidential | Copyright Larsen & Toubro Infotech Ltd. 37 37
Reusability
is poor
application might not perform well resulting sea of components might reduce maintainability level too small system overheads
Reuse
Higher
Web Dynpro ABAP estimation sheet will be released soon by the Quality team
Confidential | Copyright Larsen & Toubro Infotech Ltd. 38
References
40