Table of Contents
1 What is Web Dynpro" 1
2 SAP Easy Access 5
2.1 Changing the SAP Easy Access 6
2.2 Favorites List 6
2.3 Setting a Transaction as Start Transaction 8
2.4 Creating a Shortcut 8
3 Designing a Web Dynpro Component 11
3.1 View 14
3.1.1 View Layout 14
3.1.2 Context View 17
3.1.3 Actions 19
3.1.4 Methods 19
3.1.5 Properties 21
3.1.6 Attributes 22
3.2 Componentcontroller 23
3.3 Window 23
3.4 Application 24
3.5 ABAP Debugger 27
3.6 Web Dynpro Logon Page Configuration 30
4 ABAP Dictionary 33
4.1 Data Element 34
4.2 Domain 35
4.3 Structure 38
4.4 Table 40
4.5 Search Help 45
4.6 Database View 48
4.7 Table Type 51
4.8 Lock Object 52
5 Context Nodes and Attributes at Design Time 55
5.1 Attributes 56
5.2 Nodes 58
5.2.1 Creating a Node that Uses an ABAP Dictionary Repository Object 59
5.2.2 Working with Child Nodes 64
6 Data Binding, Context Mapping and Interface Methods 67
6.1 Data Binding 67
6.2 Context Mapping 72
6.2.1 Internal Context Mapping 72
6.2.2 External Context Mapping 76
6.3 Interface Methods 83
7 View Controller Methods 87
7.1 Hook Methods 87
7.1.1 wdDoInit 88
7.1.2 wdDoExit 91
7.1.3 wdDoModify View 91
7.1.4 wdDoBeforeAction 96
7.1.5 wdDoOnContextMenu 98
7.2 Supply Function Methods 102
7.3 User-Defined Instance Methods 103
7.4 Fire Methods 105
7.5 Event Handler Methods 109
8 Layout UI Elements 113
8.1 FlowLayout 114
8.2 GridLayout 116
8.3 MatrixLayout 119
8.4 RowLayout 120
9 User Interface Elements (UI elements), Static and Dynamic Programming 123
9.1 Action 124
9.1.1 Timed Trigger 124
9.1.2 ButtonChoice 126
9.2 Selection 132
9.2.1 DropDownByKey 132
9.2.2 DropDownByIndex 135
9.2.3 RadioButtonGroupByIndex 137
9.3 Layout 140
9.3.1 ViewContainerUIElement 140
9.3.2 TabStrip 146
9.3.3 PageHeader 149
9.3.4 ContextualPanel 152
9.3.5 Tray UI Element 155
9.3.6 MessageArea 159
9.4 Complex 163
9.4.1 Table 163
9.4.2 RoadMap 171
9.4.3 PhaseIndicator 180
9.4.4 Tree-Sequential Implementation 186
9.4.5 DateNavigator 191
9.5 Graphic 197
9.5.1 Image 198
9.5.2 BusinessGraphics 201
9.6 Integration 206
9.6.1 The InteractiveForm 206
9.6.2 FileUpload 215
10 Messages, Exceptions and Web Dynpro ABAP 221
10.1 Message Handling 222
10.1.1 Dynamic Texts Stored in the Text Pool of the Assistance Class 222
10.1.2 Text from Database Table T100 225
10.2 Exception Handling 227
10.2.1 Exception Class with OTR Text 228
10.2.2 Exception Class with Text from a Message Class 233
11 Writing Multilanguage Applications 237
11.1 Creating Multilanguage User Interfaces 238
11.1.1 Internationalization of Data Elements Defined in ABAP Dictionary 240
11.1.2 Internationalization of Domains Defined in ABAP Dictionary 241
11.1.3 Internationalization of Text from OTR 242
11.1.4 Internationalization of Text from Assistance Class 244
11.1.5 Internationalization of Messages 245
11.2 Multilanguage Records in the Database 247
11.2.1 Study an Example Created in the System 248
11.2.2 Creating Table Structures and Internationalization of the Records 250
11.2.3 Using the Internationalized Records in WebDynpro 255
12 Web Dynpro Model 259
12.1 Assistance Class as a Model for a Multicomponent Application 260
12.2 BAPI as a Model 274
12.2.1 Creating a BAPI 274
12.2.2 Using the Created BAPI as a Model 279
12.3 Web Service 283
12.3.1 Creating the Web Service 284
12.3.2 Web Service Configuration 287
12.3.3 Testing the Web Service 288
12.3.4 Consuming the Web Service in Web Dynpro 289
13 ALV and Select Options 295
13.1 SAP List Viewer 295
13.1.1 Simple ALV Example 296
13.1.2 ALV Configuration Model 299
13.2 Select Options 306
13.3 ALV and Select Options 313
14 Integrating a Web Dynpro Application into the SAP NetWeaver Portal 315
14.1 Creating a Folder 316
14.2 Connecting to the Back-End ABAP System 317
14.3 Creating an iView 321
14.4 Creating a Role and Role Assignment 324
14.5 Running the Application into the Portal 327
14.6 Triggering a Portal Event 327
14.7 Reacting to a Portal Event 329
14.8 Creating a Page 331
14.9 Running the Application that Processes Portal Events 333
15 Web Dynpro and Authorization 335
15.1 Role Based Access Control Pattern - RBAC 337
15.2 Authorization Object Class 338
15.3 Authorization Object 338
15.4 Authorization Fields 340
15.5 Creating a Single Role and Changing its Authorization Data 343
15.6 Creating the Web Dynpro Component 346
15.6.1 Checking the Authorization of the Current User 346
15.6.2 Assigning the User-Role and Running the Application 349
16 Web Dynpro Mind Map 351
16.1 Creating a Mind Map 351
16.2 Web Dynpro ABAP Mind Map 352
Appendix 353
Index 357