Mastering ABAP Web Dynpro

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

Mastering ABAP Web Dynpro ECC 6.0
final ABAP Web Dynpro Master.doc

Rev. 08/08/08

1

............................................................................................. 71 Contexts – What Are They? ............................................................ 55 View Controllers ......... 48 Unit 2 – Web Dynpro Controllers ................................................ 08/08/08 Mastering ABAP Web Dynpro ECC 6............................................ 73 Collections and Elements ..................................................................... 73 Context Attributes ............................................................................................................................................................................................................................................... 60 Controller Reference Overview.......................................................................................................................................................................... 76 Creating Context Nodes and Attributes......................Introduction Klee Associates........................................................... 49 Controller Types............. 50 Components of a Controller .. 74 Context Properties........................................................................................................................................................................................................ 53 Custom Controllers............................ 51 Component Controllers ......... 57 Lifetime of a Controller Instance ......................................... 70 Exercises . 70 Unit 3 –Web Dynpro Contexts ............ 73 Context Nodes ................................. 85 Context Mapping ........................................................... 63 Summary of Unit ........................ 71 Unit Overview.......................................... 73 Contexts Design/Runtime Example .................................................................................................................................................................................................................................. 62 Scenario 2: Standard Navigation between Views .................. 61 Hook Methods Execution Order – Starting Application ...................... 55 Window Controllers .................................................................................................................................................... 47 Summary of Unit ........ Events ...................................... 72 Context Building Blocks ........................................... 44 Exceptions ...................... 48 Exercises ....................................................................... 86 2 Rev.........................................0 .................................................................................................................................................................................................................................................................................................................................................. 49 Controllers – What Are They? ... 80 Node Cardinality ........................... 45 Handling Exceptions in Programs ...................................................................................................................... 77 Creating Attribute ........................................................................... Inc....... 62 Scenario 1: Hook Methods Execution Order – Client Side Event ............................................. 49 Unit Overview................................ 79 Contexts as Classes and Objects in Memory ....................................................... 81 Singleton Property with Lead Selection ......... 83 Supply Methods ................................................................................................................................................................................

.............................................. 137 Unit Overview .................................................................. 119 Layout Manager – Grid Behavior ................................................................................................................................................................................... 117 Layout Manager – Flow Behavior ...................Klee Associates......................................... 105 Captions and Multi-Lingual Support ............................... 108 Object Text Repository .................................................................................................................................... 118 Layout Manager – Row Behavior ................................................................................................................... 115 Incorporating MIME Objects .............................................. 127 Tables and Lead Selection ......... Introduction Scenario 3 – Create Context via Service Call Wizard ..................................................................................................................................................0 Rev........................................................................................................... 113 Value-Help from ABAP Data Dictionary ............................................................... 08/08/08 3 ...................... 138 Component Controller Additional Methods ......................................... 112 View Context Additional Attributes................................................................................................ 139 Mastering ABAP Web Dynpro ECC 6..................................................... 131 Scenario 4 – ALV Integration in Web Dynpro ................................................................................. 109 Data Fields and Binding ............................................................................................................................................................................ 99 Unit Overview ........................................................ 86 Summary of Unit ........................................................... 137 Programming Extensions ................... 103 Toolbox Area............................................................................................................................. Inc................................................... 136 Exercises ........................................................................................ 99 Layout Builder ........................................................................ 136 Unit 5 – Basic Programming Extensions ............................... 104 UI Elements and Properties .................... 99 User Interface Overview .............................. 116 Layout Manager .................................. 111 Review of Context Binding ..................................................................................................................... 101 Layout Designer Areas ...................................................................................................... 137 Controller Programming Extensions .................................................................................................................................... 131 ALV Configuration Model ..................... 98 Unit 4 – User Interface ... 114 Input Help Mode ........................ 125 Adapting the Cell Editor for a Table Cell .................................... 121 Layout Manager – Matrix Behavior .................................................................................. 123 Table UI Element . 132 Summary of Unit .............. 107 Data Dictionary Texts . 98 Exercises ........................................ 129 Advanced List Viewer Integration ..........

........................................................... 164 Phase Overview – Phase 0 ............ 146 Accessing the Context Data ................................... 165 Phase Overview – Phase 1 ........................................................................................................................................................................... 166 Summary of Unit ................ 174 Methods for Managing Used Components .................................................................................. 161 Value Selectors – Index Binding ............... 169 Changing the UI Elements Dynamically ..................................................................................................... 147 Accessing the Context Attributes ........................................................................................................................................................................................0 ........................................................................................................ 163 Object Value Selector .......................................................... 141 Debugging – External Session ....................... 159 Texts from an Assistance Class ..................................... 167 Unit 6 – Advanced Programming Techniques.. 142 Coding Wizard ............................................................................................................................ Controller Instance Methods ........................................................................................................................................................................................................................................................ 163 Setting up the OVS....... 160 Programmed Value Help ..... 173 Declaring Use of a Shared Component ..................................... 152 Creating New Attributes .................................. 169 Developing Shared Components ..................................... 144 Attributes .............................................................................. 153 Summary of Methods Used for Context Management ............................ 166 Phase Overview – Phase 3 ................... 156 Generating Messages ............... 169 Dynamic Modifications at Runtime ... 151 Creating New Nodes in a Context ............................................................................................ 148 Updating Context Attributes .. 176 4 Rev................................................................................................... 158 Texts from the OTR ...........................................Introduction Klee Associates.... 08/08/08 Mastering ABAP Web Dynpro ECC 6....... 150 Creating/Deleting Context Data ............................................................................ 162 Freely Programmed Value Help ................. 165 Phase Overview – Phase 2 ............... Inc........................................................................................................................................................................................................................................................................................................................................................................................................................................ 167 Exercises .... 172 Component Reuse Scenarios ............. 154 Message Window ........ 140 View Controllers ........................................................................................... 169 Unit Overview................................................... 157 Relating Messages to UI Elements .............................................. 161 Value Selectors Key – Binding .....................

..................................... 204 Web Dynpro Enhancements .................................................................................... 192 Displaying Adobe Forms..... 188 Summary of Unit ..................................................................... 203 Navigation to Customizing and Personalization ......................................................................... 202 Implicit Configuration ...........................Klee Associates.......................................... 191 Adobe Forms Integration ......................... 181 Working with Amodal Window Calls ..................................... 209 Exercises ...................... 199 Portal Integration Steps ........................................................... 200 Portal Event Integration in Web Dynpro Applications ................................................................................................................................................. 190 Unit 7 – Specialized Topics ................................................................................................................... 177 Mapping Shared Component Contexts ............................................................................. 08/08/08 5 ........................................................ 204 Enabling Customizing/Personalization View .......................................................................................................................................................... 179 Working with the Window Manager ....................... 193 Interactive Forms.................. 202 Explicit Configuration ....................... 208 Summary of Unit .................................................................................... 182 Working with Modal Windows ............................................................................................... Introduction Building a Shared Component Context .......................................................................................................................................................................................................................... 180 Amodal Windows Basic Concept ......................................... 207 General Context Recommendations ........ 191 Unit Overview ...................................................................................................................................................................................... 183 Modal Window Buttons .... 195 Interactive Form Implementation .......................................................................................................... 178 Dynamic Window Creation and Management ....................... 205 Web Dynpro Enhancements Summary ..............................0 Rev...................... 184 Window Plugs/Suspend and Resume ... 196 Portal Integration .................................................................................................... 205 General Development Considerations .................................................... 200 Portal Overview.............. 190 Exercises .............. 201 Customizing and Personalization ....................... 191 Interactive Forms UI Element ........ 181 Modal Windows Basic Concept ........... 183 Working with Modal Windows ........................................................ Inc............................ 207 Dynamic Programming Recommendations ................................................................... 179 The Window Interface .... 209 Mastering ABAP Web Dynpro ECC 6..................................................................................................................................................................

...........0 ............................................................................................................................................ 247 Unit 6 – Web Dynpro Advanced Programming Techniques .............................. 08/08/08 Mastering ABAP Web Dynpro ECC 6............................................................................................................................................................................................................................................. 263 6 Rev............ 211 Unit 1 – Introduction to ABAP Web Dynpro ......... 215 Business Requirement ................. 215 Exercise 1 – Define Navigation between Two Views of Your ABAP Web Dynpro Application ............ Appendix – ABAP Web Dynpro Exercises.................................................. 231 Business Requirement ............ 212 Unit 2 – Web Dynpro Controllers ............ 231 Exercise 1 – Create a Web Dynpro Application and Contexts without the Service Call Wizard ............................................................................. 223 Exercise 1 – Add UI Elements to Layout................Introduction Klee Associates........................................................................................................................ 224 Exercise 2 – Use OTR Texts ............................................. 218 Objective ........................................................................................................................... Inc.. 223 Objective ................................................................................ 218 Exercise 1 – Create a Basic Application Using the Service Call Wizard219 Unit 4 – Web Dynpro UI Elements ............................................................. 240 Exercise 3 – Add Drop Down Selection for CARRID ...................................................................................................................................................... 255 Objective ................................................................................................................. 211 Objective ................................................... 229 Unit 5 – Web Dynpro Programming ......................... 256 Exercise 2 – Creating Shared Components .............. 223 Business Requirement ................................................................ 228 Exercise 3 – Use ALV Table . 259 Exercise 3 – Creating Popup Window Calls ........... 216 Unit 3 – Web Dynpro Contexts ......................... 232 Exercise 2 – Add Error Handling for the Entry Screen .................................................................................... 231 Objective .............................................................................. 211 Business Requirement ........... 218 Business Requirement .... 215 Objective ......................... 255 Exercise 1 – Modify UI Elements Dynamically ...... 211 Exercise 1 – Creating an ABAP Web Dynpro Application ........................................................................................................................................................................... 245 Exercise 4 – Use Object View Selector.................................. 255 Business Requirement .................................................

Sign up to vote on this title
UsefulNot useful