TAW10_1 ABAP Workbench Fundamentals SAP NetWeaver 2004 Date Training Center Instructors Education Website Instructor Handbook CourseVersion:2005/Q4 CourseDuration:15Days Material Number: 50077030 Owner: Mario Gohlke (D023031) An SAP Compass course - use it to learn, reference it for work Copyright Copyright'2005SAPAG.Allrightsreserved. Nopartofthispublicationmaybereproducedortransmittedinanyformorforanypurposewithoutthe expresspermissionofSAPAG.Theinformationcontainedhereinmaybechangedwithoutpriornotice. SomesoftwareproductsmarketedbySAPAGanditsdistributorscontainproprietarysoftware componentsofothersoftwarevendors. Trademarks (cid:149) Microsoftfi,WINDOWSfi,NTfi,EXCELfi,Wordfi,PowerPointfiandSQLServerfiare registeredtrademarksofMicrosoftCorporation. (cid:149) IBMfi,DB2fi,OS/2fi,DB2/6000fi,ParallelSysplexfi,MVS/ESAfi,RS/6000fi,AIXfi,S/390fi, AS/400fi,OS/390fi,andOS/400fiareregisteredtrademarksofIBMCorporation. (cid:149) ORACLEfiisaregisteredtrademarkofORACLECorporation. (cid:149) INFORMIXfi-OnLineforSAPandINFORMIXfiDynamicServerTMareregisteredtrademarks ofInformixSoftwareIncorporated. (cid:149) UNIXfi,X/Openfi,OSF/1fi,andMotiffiareregisteredtrademarksoftheOpenGroup. (cid:149) Citrixfi,theCitrixlogo,ICAfi,ProgramNeighborhoodfi,MetaFramefi,WinFramefi, VideoFramefi,MultiWinfiandotherCitrixproductnamesreferencedhereinaretrademarksof CitrixSystems,Inc. (cid:149) HTML,DHTML,XML,XHTMLaretrademarksorregisteredtrademarksofW3Cfi,WorldWide WebConsortium,MassachusettsInstituteofTechnology. (cid:149) JAVAfiisaregisteredtrademarkofSunMicrosystems,Inc. (cid:149) JAVASCRIPTfiisaregisteredtrademarkofSunMicrosystems,Inc.,usedunderlicensefor technologyinventedandimplementedbyNetscape. (cid:149) 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. About This Handbook This handbook is intended to complement the instructor-led presentation of this course,andserveasasourceofreference. Itisnotsuitableforself-study. Typographic Conventions AmericanEnglishisthestandardusedinthishandbook. Thefollowingtypographic conventions are also used. Type Style Description Example text Words or characters that appear on the screen. These includefieldnames,screentitles,pushbuttonsaswellas menunames, paths, and options. Also used for cross-referencesto otherdocumentation both internal (in this documentation) and external (in other locations, suchasSAPNet). Exampletext Emphasized words or phrases in body text, titles of graphics, and tables EXAMPLETEXT Namesofelementsinthesystem. Theseincludereport names,programnames,transactioncodes,tablenames, andindividualkeywordsof aprogramminglanguage, when surrounded by body text, for example SELECT and INCLUDE. Example text Screen output. This includesfile and directory names and their paths, messages, names of variables and parameters,andpassagesofthesourcetextofaprogram. Example text Exact user entry. These arewords and characters that you enter in the system exactly as they appear in the documentation. <Example text> Variableuserentry. Pointedbracketsindicatethatyou replace these words and characters with appropriate entries. iii 2005/Q4 ' 2005 SAP AG. All rights reserved. AboutThisHandbook TAW10_1 Icons in Body Text Thefollowing icons areused in thishandbook. Icon Meaning Formoreinformation,tips,orbackground Noteorfurtherexplanationofpreviouspoint Exception or caution Procedures Indicates that the item is displayed in the instructor(cid:146)s presentation. iv '2005SAPAG.Allrightsreserved. 2005/Q4 Contents Course Overview ............................................................................. vii Course Goals.................................................................................vii Course Objectives........................................................................... ix Unit 1: SAP Solutions .........................................................................1 mySAP Business Suite and mySAP ERP.................................................2 SAP NetWeaver (cid:150) An Overview............................................................9 Unit 2: Navigation ............................................................................ 51 Navigation in General ..................................................................... 53 Advanced Navigation in the SAP GUI ................................................... 68 Appendix - Personalizing the User Interface............................................ 95 Unit 3: The System Kernel.................................................................105 Principal Architecture of the SAP Web Application Server .........................107 Dialog Processing in the SAP System..................................................136 Communication with the Database......................................................144 Unit 4: Communication and Integration Technologies .............................155 Cross-System Business Processes.....................................................157 Remote Function Calls and BAPIs......................................................162 Web Services ..............................................................................172 SAP Business Workflow..................................................................178 Unit 5: Sources of Information for Developers.......................................195 SAP Service Marketplace ................................................................196 SAP Developer Network.................................................................207 Unit 6: ABAP Program Process..........................................................217 System Architecture and ABAP Program Using Example of Selection Screen and List .......................................................................................218 Unit 7: Introduction to ABAP Workbench..............................................233 Repository and Object Navigator........................................................235 Developing Programs and Organizing Developments................................247 v 2005/Q4 ' 2005 SAP AG. All rights reserved. Contents TAW10_1 Unit 8: Basic ABAP Language Elements...............................................281 Working with Elementary Data Objects.................................................282 Working with Structures...................................................................307 Working with Internal Tables .............................................................321 Unit 9: Data Retrieval.......................................................................345 Reading Database Tables................................................................346 Authorization Check.......................................................................375 Unit 10: Subprograms in ABAP..........................................................391 Subroutines.................................................................................392 Unit 11: Introduction to ABAP Events..................................................413 ABAP Events...............................................................................414 Unit 12: Classic List Processing.........................................................425 List...........................................................................................427 Selection Screen...........................................................................449 Generating and Designing the Selection Screen......................................469 Introduction to Logical Databases.......................................................489 Logical Database Subobjects and Data Retrieval.....................................497 Unit 13: Creating and Calling Function Groups and Function Modules........525 Function Groups...........................................................................527 Function Modules..........................................................................536 Calling Function Modules.................................................................557 Unit 14: Programs Calls and Data Storage Management ..........................577 Program Calls and Memory Management..............................................578 Glossary .......................................................................................609 Index............................................................................................615 vi '2005SAPAG.Allrightsreserved. 2005/Q4 Course Overview This training course, lasting three weeks, provides a comprehensive and detailed introduction to the basics of ABAP/ABAP object-oriented programming and the ABAP Workbench tools. This course also prepares you for certification as a DevelopmentConsultantSAPNetWeaver-ABAPWorkbench2004. Target Audience Thiscourseisintended for thefollowingaudiences: (cid:149) Developmentconsultantsanddeveloperswhoareresponsibleforadaptingand developing ABAP/ABAP Objects programs Course Prerequisites Required Knowledge (cid:149) Solid EDP basic knowledge (cid:149) Goodprogrammingexperienceinadifferentprogramminglanguage Course Duration Details Unit 1: SAP Solutions mySAP Business Suite and mySAP ERP 60 Minutes SAP NetWeaver (cid:150) An Overview 90 Minutes Unit 2: Navigation Navigation in General 40 Minutes Exercise 1: Logon and Screen Design 10 Minutes Advanced Navigation in the SAP GUI 60 Minutes Exercise 2: Selecting Functions, Searching and Filtering Data 30 Minutes Appendix - Personalizing the User Interface 0 Minutes Exercise 3: Appendix - Personalizing the User Interface 10 Minutes Unit 3: The System Kernel Principal Architecture of the SAP Web Application Server 75 Minutes Exercise 4: Structure of an Instance 10 Minutes vii 2005/Q4 ' 2005 SAP AG. All rights reserved. Course Overview TAW10_1 Dialog Processing in the SAP System 30 Minutes Exercise 5: Dialog Processing 5 Minutes Communication with the Database 30 Minutes Unit 4: Communication and Integration Technologies Cross-System Business Processes 30 Minutes Remote Function Calls and BAPIs 30 Minutes Exercise 6: Remote Function Calls and BAPIs 10 Minutes Web Services 30 Minutes SAP Business Workflow 30 Minutes Exercise 7: Leave Request as Workflow 10 Minutes Unit 5: Sources of Information for Developers SAP Service Marketplace 30 Minutes Exercise 8: SAP Service Marketplace (Optional) 10 Minutes SAP Developer Network 30 Minutes Exercise 9: SAP Developer Network (Optional) 10 Minutes Unit 6: ABAP Program Process System Architecture and ABAP Program Using Example of Selection Screen and List 20 Minutes Unit 7: Introduction to ABAP Workbench Repository and Object Navigator 45 Minutes Developing Programs and Organizing Developments 95 Minutes Exercise 10: Organizing Developments 5 Minutes Exercise 11: Developing ABAP Programs 20 Minutes Exercise 12: Creating Transactions 10 Minutes Unit 8: Basic ABAP Language Elements Working with Elementary Data Objects 75 Minutes Exercise 13: Basic ABAP Statements 30 Minutes Working with Structures 75 Minutes Exercise 14: Working with Structures 30 Minutes Working with Internal Tables 90 Minutes Exercise 15: Working with Internal Tables 30 Minutes Unit 9: Data Retrieval Reading Database Tables 110 Minutes Exercise 16: Data Retrieval Using a SELECT Loop 30 Minutes Exercise 17: Data Retrieval and Buffering in an Internal Table 35 Minutes Authorization Check 60 Minutes Exercise 18: Authorization Check 20 Minutes viii '2005SAPAG.Allrightsreserved. 2005/Q4 TAW10_1 Course Overview Unit 10: Subprograms in ABAP Subroutines 70 Minutes Exercise 19: Subroutines 30 Minutes Unit 11: Introduction to ABAP Events ABAP Events 20 Minutes Unit 12: Classic List Processing List 110 Minutes Exercise 20: List 50 Minutes Selection Screen 80 Minutes Exercise 21: Selection Screen 30 Minutes Generating and Designing the Selection Screen 40 Minutes Exercise 22: Designing, Initializing, and Checking a Selection Screen 25 Minutes Introduction to Logical Databases 30 Minutes Logical Database Subobjects and Data Retrieval 50 Minutes Exercise 23: GET Events 30 Minutes Exercise 24: GET LATE Events and Checks from Internal Program Selections 20 Minutes Unit 13: Creating and Calling Function Groups and Function Modules Function Groups 20 Minutes Exercise 25: Creating a Function Group 10 Minutes Function Modules 60 Minutes Exercise 26: Creating Function Modules 15 Minutes Calling Function Modules 50 Minutes Exercise 27: Implementing and Calling Function Modules 25 Minutes Exercise28: UsingGlobalDataofaFunctionGroup 20 Minutes Unit 14: Programs Calls and Data Storage Management Program Calls and Memory Management 40 Minutes Exercise 29: ABAP Memory 30 Minutes Course Goals This course will prepare you to: (cid:149) Work with the ABAP Workbench tools (cid:149) Write your own simple ABAP programs (cid:149) Program object-oriented ABAP Objects ix 2005/Q4 ' 2005 SAP AG. All rights reserved. Course Overview TAW10_1 Course Objectives After completing thiscourse, you will beableto: (cid:149) Describe thedata structure of SAP systems (cid:149) Use the ABAP Workbench tools (cid:149) Create lists using classic reports (cid:149) Createandcallfunctiongroupsandfunctionmodules (cid:149) Work with the ABAP Dictionary (cid:149) Program in a performance-sensitive manner (cid:149) Describetheconceptsbehindobject-orientedprogramming (cid:149) Create lists using ALV Grid Control SAP Software Component Information TheinformationinthiscoursepertainstothefollowingSAPSoftwareComponents and releases: ThisversionofTAW10hasbeenextendedfromtwotothreeweeks. Topicspreviously part of TAW12, ABAP Dictionary and List Processing, are now covered in full in TAW10. It now also includes parts of the new course on (cid:147)Advanced ABAP(cid:148), BC402. As we did not want the ABAP certification (for TAW10 and TAW12) to exceedfiveweeks,weremovedsuperfluouspartsoftheexistingABAPtrack. Inthe first week of the previous version of TAW10, lists and screen programming were introduced. Thesetopicswerethencoveredinmoredetailinthefollowingweeks. List processing(classicmethod)isnowlookedatinmoredetail inweekone. List processing(classicmethod)willnotbecoveredinmoredetailintheremainderofthe course. In the third week of TAW10, you are taught how to create lists using the ALVgridcontrol. Aspreviouslyoutlined,thebriefintroductiontoABAPDictionary andscreenprogramminghasbeenremovedfromthefirstweekofTAW10. ABAP DictionaryisexplainedindetailinweektwoofTAW10andscreenprogrammingis now only covered in TAW12. AttheendofthethirdpartofTAW10,youwillfindthecertificationunitwhichstates theweightingofvarioustopicsinthecertificationtest. x '2005SAPAG.Allrightsreserved. 2005/Q4
Description: