TAW12_1 ABAP Objects and Application Areas SAP NetWeaver Date Training Center Instructors Education Website Participant Handbook Course Version: 63 Course Duration: 5 Day(s) Material Number: 50090660 An SAP course - use it to learn, reference it for work Copyright Copyright©2008SAPAG.Allrightsreserved. Nopartofthispublicationmaybereproducedortransmittedinanyformorforanypurposewithoutthe expresspermissionofSAPAG.Theinformationcontainedhereinmaybechangedwithoutpriornotice. SomesoftwareproductsmarketedbySAPAGanditsdistributorscontainproprietarysoftware componentsofothersoftwarevendors. Trademarks • Microsoft®,WINDOWS®,NT®,EXCEL®,Word®,PowerPoint®andSQLServer®are registeredtrademarksofMicrosoftCorporation. (cid:127) IBM®,DB2®,OS/2®,DB2/6000®,ParallelSysplex®,MVS/ESA®,RS/6000®,AIX®,S/390®, AS/400®,OS/390®,andOS/400®areregisteredtrademarksofIBMCorporation. (cid:127) ORACLE®isaregisteredtrademarkofORACLECorporation. (cid:127) INFORMIX®-OnLineforSAPandINFORMIX®DynamicServerTMareregisteredtrademarks ofInformixSoftwareIncorporated. (cid:127) UNIX®,X/Open®,OSF/1®,andMotif®areregisteredtrademarksoftheOpenGroup. (cid:127) Citrix®,theCitrixlogo,ICA®,ProgramNeighborhood®,MetaFrame®,WinFrame®, VideoFrame®,MultiWin®andotherCitrixproductnamesreferencedhereinaretrademarksof CitrixSystems,Inc. (cid:127) HTML,DHTML,XML,XHTMLaretrademarksorregisteredtrademarksofW3C®,WorldWide WebConsortium,MassachusettsInstituteofTechnology. (cid:127) JAVA®isaregisteredtrademarkofSunMicrosystems,Inc. (cid:127) J AVA SC RIP T® is are giste red tra dem ark ofS un Mic ros yste ms, Inc .,u sed und erl icen sef or technologyinventedandimplementedbyNetscape. (cid:127) SAP,SAPLogo,R/2,RIVA,R/3,SAPArchiveLink,SAPBusinessWorkflow,WebFlow,SAP EarlyWatch,BAPI,SAPPHIRE,ManagementCockpit,mySAP.comLogoandmySAP.comare trademarksorregisteredtrademarksofSAPAGinGermanyandinseveralothercountriesall overtheworld. Allotherproductsmentionedaretrademarksorregisteredtrademarksoftheir respectivecompanies. Disclaimer THESEMATERIALSAREPROVIDEDBYSAPONAN"ASIS"BASIS,ANDSAPEXPRESSLY DISCLAIMSANYANDALLWARRANTIES,EXPRESSORAPPLIED,INCLUDINGWITHOUT LIMITATIONWARRANTIESOFMERCHANTABILITYANDFITNESSFORAPARTICULAR PURPOSE,WITHRESPECTTOTHESEMATERIALSANDTHESERVICE,INFORMATION,TEXT, GRAPHICS,LINKS,ORANYOTHERMATERIALSANDPRODUCTSCONTAINEDHEREIN.IN NOEVENTSHALLSAPBELIABLEFORANYDIRECT,INDIRECT,SPECIAL,INCIDENTAL, CONSEQUENTIAL,ORPUNITIVEDAMAGESOFANYKINDWHATSOEVER,INCLUDING WITHOUTLIMITATIONLOSTREVENUESORLOSTPROFITS,WHICHMAYRESULTFROM THEUSEOFTHESEMATERIALSORINCLUDEDSOFTWARECOMPONENTS. g200871541122 About This Handbook This handbook is intended to complement the instructor-led presentation of this course,andserveas asourceofreference. It is notsuitableforself-study. Typographic Conventions American English is the standard used inthis handbook. Thefollowing typographic conventions are also used. Type Style Description Example text Words or characters that appear on the screen. These includefieldnames,screentitles,pushbuttonsaswellas menu names, paths, and options. Also used for cross-references to other documentation both internal (in this documentation) and external (in other locations, such as SAPNet). E xa m ple tex t E m pha siz ed wo rds or ph ras es in b od y t ext , tit les of graphics, and tables EXAMPLE TEXT Namesofelementsinthe system. Theseincludereport names,programnames, transaction codes, tablenames, and individualkey words of aprogramming language, when surrounded by body text, for example SELECT and INCLUDE. Example text Screen output. This includes file and directory names and their paths, messages, names of variables and parameters,andpassagesofthesourcetextofaprogram. Example text Exactuserentry. These are words and characters that you enter in the system exactly as they appear in the documentation. <Example text> Variable userentry. Pointed brackets indicate thatyou replace these words and characters with appropriate entries. iii 2008 © 2008 SAP AG. All rights reserved. AboutThisHandbook TAW12_1 Icons in Body Text The following icons are used in this handbook. Icon Meaning Formoreinformation,tips,or background Noteorfurtherexplanation ofprevious point Exception or caution Procedures Indicates that the item is displayed in the instructor's presentation. iv © 2008SAPAG. Allrights reserved. 2008 Contents Course Overview ............................................................................. vii Course Goals.................................................................................vii Course Objectives..........................................................................viii Unit 1: Introduction to Object-Oriented Programming ................................1 The Object-Oriented Programming Model ................................................3 Analysis and Design with UML............................................................ 15 Fundamental Object-Oriented Syntax Elements ....................................... 37 Unit 2: Object-Oriented Concepts and Programming Techniques...............101 Inheritance and Casting...................................................................103 Interfaces and Casting....................................................................145 Events.......................................................................................184 Unit 3: Object-Oriented Repository Objects ..........................................225 G lob al Cla ss es an d I nte rfa ce s.. ... ... ... .... ... ... .... ... ... .... ... ... ... .... ... ... .... .22 7 Special Object-Oriented Programming Techniques...................................266 Unit 4: Class-Based Exception Concept...............................................291 Class-Based Exceptions..................................................................292 Unit 5: Shared Objects .....................................................................327 Shared Objects ............................................................................328 Unit 6: Dynamic Programming ...........................................................361 Dynamic Programming with Field Symbols and References ........................362 Runtime Type Services ...................................................................381 Index............................................................................................405 v 2008 © 2008 SAP AG. All rights reserved. Contents TAW12_1 vi © 2008SAPAG. Allrights reserved. 2008 Course Overview This two-week training course provides a comprehensiveand detailed introduction to the basic principles ofprogramming ABAP objects. You will also learn how to make specialized changes to theSAP standard system. Furthermore, you will find outhow to evaluatethedifferentmethods formodification and choosetherightone for thegiven situation. Web Dynprois SAP's state-of-the-art technologyforcreating applicationuserinterfaces(UIs). Thiscourseexplains in detailhowto developABAP Web-Dynpro-based applications. Target Audience This courseis intended for the following audiences: (cid:127) Development consultants who are responsible for adapting and developing ABAP/ABAP Objects programs Course Prerequisites Required Knowledge (cid:127) TAW10 (ABAP Workbench Fundamentals) (cid:127) Included in booking: TAW11 E-Learning (ABAPDetails) Recommended Knowledge (cid:127) BC410 -Programming User Dialogs with Dynpro vii 2008 © 2008 SAP AG. All rights reserved. CourseOverview TAW12_1 Course Goals This course will prepare you to: (cid:127) Usefundamentalelements ofobject-oriented modeling in UML (cid:127) Create ABAP Objects programs that contain all useful object-oriented programming techniques (cid:127) Usetherelevant tools to create object-oriented Repository objects (cid:127) Describe and use the application areas of ABAP Objects (cid:127) Define, raise, and handle class-based exceptions (cid:127) Query type and class attributes at runtime (cid:127) Make specialized changestothe SAP standard system (cid:127) Evaluate the differentmethods for modification and choose therightone for any given situation (cid:127) Explain thearchitecture ofa Web Dynpro component (cid:127) Describe the parts of a Web Dynpro controller (cid:127) Create context elements in the Web Dynpro controller (cid:127) Explain how to implement navigation and data transfer in and between Web Dynpro components (cid:127) Define the UI of a Web Dynpro component (cid:127) Internationalize a Web Dynpro application. (cid:127) Define and send messages in aWeb Dynpro component (cid:127) DefineinputhelpandsemantichelpforUIelementsinaWebDynprocomponent Course Objectives After completing this course, you will be able to: (cid:127) Usefundamentalelements ofobject-oriented modeling in UML (cid:127) Create ABAP Objects programs that contain all useful object-oriented programming techniques (cid:127) Usetherelevant tools to create object-oriented Repository objects (cid:127) Describe and exploittherangeofapplications ofABAPObjects (cid:127) Define, raise, and handle class-based exceptions (cid:127) Query type and class attributes at runtime (cid:127) Make specialized changestothe SAP standard system (cid:127) Evaluate the differentmethods for modification and choose therightone for any given situation viii © 2008SAPAG. Allrights reserved. 2008 TAW12_1 Course Overview (cid:127) Explain thearchitecture of aWeb Dynpro component (cid:127) Describe the parts of aWeb Dynpro controller (cid:127) Createcontext elements in the Web Dynpro controller (cid:127) Explain how navigation and data transfer in and between Web Dynpro components can be implemented (cid:127) Define the UI of a Web Dynpro component (cid:127) Internationalize a Web Dynpro application (cid:127) Defineand send messages in a Web Dynpro component (cid:127) DefineinputhelpandsemantichelpforUIelementsinaWebDynprocomponent SAP Software Component Information The information in this coursepertains to thefollowing SAPSoftwareComponents and releases: (cid:127) SAP NetWeaver Application Server 7.0 (cid:127) SAP Web Application Server 6.20 ix 2008 © 2008 SAP AG. All rights reserved. CourseOverview TAW12_1 x © 2008SAPAG. Allrights reserved. 2008
Description: