ebook img

Exercise 8: Basic ABAP Statements PDF

689 Pages·2008·47.63 MB·English
by  
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Exercise 8: Basic ABAP Statements

TAW10_1 ABAP Workbench Fundamentals SAP NetWeaver Date Training Center Instructors Education Website Instructor Handbook Course Version: 63 Course Duration: 10 Day(s) Material Number: 50089085 Owner: Christian Braun (D035329) An SAP Compass course - use it to learn, reference it for work Copyright Copyright'2008SAPAG.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. g20085263049 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 2008 ' 2008 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 '2008SAPAG.Allrightsreserved. 2008 Contents Course Overview ............................................................................. vii Course Goals.................................................................................vii Course Objectives............................................................................x Unit 1: The Big Picture........................................................................1 The SAP Software Portfolio.................................................................3 SAP Release Strategy..................................................................... 17 SAP NetWeaver ............................................................................ 28 Unit 2: Navigation ............................................................................ 41 Navigation in General...................................................................... 43 Advanced Navigation in the SAP GUI ................................................... 60 Unit 3: The System Kernel.................................................................. 81 Principal Architecture of the SAP NetWeaver Application Server.................... 82 AS ABAP processes ......................................................................103 Unit 4: Communication and Integration Technologies .............................137 Cross-System Business Processes.....................................................139 Remote Function Calls and BAPIs......................................................145 Enterprise Services-Oriented Architecture (Enterprise SOA)........................156 Web Services ..............................................................................165 Unit 5: Flow of an ABAP Program.......................................................177 System Architecture and ABAP Programs.............................................178 Unit 6: Introduction to the ABAP Workbench ........................................195 Repository and Object Navigator........................................................197 Developing Programs and Organizing Developments................................209 Unit 7: Basic ABAP Language Elements...............................................247 Working with Elementary Data Objects.................................................248 v 2008 ' 2008 SAP AG. All rights reserved. Contents TAW10_1 Unit 8: Modularization......................................................................291 Modularization - Basics and Overview..................................................293 Modularization with Subroutines.........................................................302 Modularization with Function Modules..................................................324 Modularization with Methods of Global Classes.......................................360 Modularization with Methods of Local Classes (Preview)............................392 Unit 9: Complex Data Objects............................................................403 Working with Structures...................................................................404 Using internal tables.......................................................................419 Unit 10: Data Modeling and Data Retrieval............................................451 Data Modeling and Transparent Tables in the ABAP Dictionary ....................453 Reading Database Tables................................................................470 Authorization Check.......................................................................512 Unit 11: ABAP Open SQL..................................................................533 ABAP Open SQL: Optimizing Statements..............................................534 Unit 12: Selection Screen..................................................................555 Generating and Designing the Selection Screen......................................557 Input Checks and Variants................................................................584 Selection screen: Modifications at Runtime............................................596 Unit 13: Programs Calls and Data Storage Management ..........................611 Programs Calls and Data Storage Management......................................613 Unit 14: New Test Tools....................................................................645 The Code Inspector .......................................................................646 Glossary .......................................................................................661 Index............................................................................................669 vi '2008SAPAG.Allrightsreserved. 2008 Course Overview This training course, lasting two weeks, provides a comprehensive and detailed introduction to the basics of ABAP programming and the ABAP Workbench tools. Furthermore, this course, along with TAW11 and TAW12, prepares you for certificationfortheSAPCertifiedDevelopmentAssociate-ABAP-SAPNetWeaver 7.0. Target Audience Thiscourseisintended for thefollowingaudiences: (cid:149) Developmentconsultantsanddeveloperswhoareresponsibleforadaptingand developing ABAP/ABAP Objects programs. Course Prerequisites Required Knowledge (cid:149) Solid data processing (DP) basic knowledge (cid:149) Soundprogrammingexperiencewithanotherprogramminglanguage Course Duration Details Unit 1: The Big Picture The SAP Software Portfolio 60 Minutes SAP Release Strategy 30 Minutes Exercise 1: SAP Release Strategy 10 Minutes SAP NetWeaver 20 Minutes Unit 2: Navigation Navigation in General 40 Minutes Exercise 2: Logon and Screen Design 10 Minutes Advanced Navigation in the SAP GUI 60 Minutes Exercise 3: Calling Functions 30 Minutes Unit 3: The System Kernel Principal Architecture of the SAP NetWeaver Application Server 60 Minutes AS ABAP processes 80 Minutes Unit 4: Communication and Integration Technologies Cross-System Business Processes 30 Minutes vii 2008 ' 2008 SAP AG. All rights reserved. Course Overview TAW10_1 Remote Function Calls and BAPIs 30 Minutes Exercise 4: Remote Function Calls and BAPIs 10 Minutes Enterprise Services-Oriented Architecture (Enterprise SOA) 30 Minutes Web Services 30 Minutes Unit 5: Flow of an ABAP Program System Architecture and ABAP Programs 20 Minutes Unit 6: Introduction to the ABAP Workbench Repository and Object Navigator 45 Minutes Developing Programs and Organizing Developments 95 Minutes Exercise 5: Organizing Developments 5 Minutes Exercise 6: Developing a Simple ABAP Program 10 Minutes Exercise 7: Create transactions 10 Minutes Unit 7: Basic ABAP Language Elements Working with Elementary Data Objects 75 Minutes Exercise 8: Basic ABAP Statements 30 Minutes Exercise 9: Debugging Statements on Elementary Data Objects 25 Minutes Unit 8: Modularization Modularization - Basics and Overview 10 Minutes Modularization with Subroutines 60 Minutes Exercise 10: Subroutines 30 Minutes Modularization with Function Modules 80 Minutes Exercise 11: Using a Function Module 20 Minutes Exercise 12: Creating a Function Group 10 Minutes Exercise 13: Creating and Using a Function Module 30 Minutes Modularization with Methods of Global Classes 30 Minutes Exercise 14: Using Global Static Methods 20 Minutes Exercise 15: Creating Global Classes 10 Minutes Exercise 16: Creating and Using Global Static Methods 30 Minutes Modularization with Methods of Local Classes (Preview) 15 Minutes Unit 9: Complex Data Objects Working with Structures 30 Minutes Exercise 17: Working with Structures 35 Minutes Using internal tables 90 Minutes Exercise 18: Using internal tables 25 Minutes viii '2008SAPAG.Allrightsreserved. 2008 TAW10_1 Course Overview Unit 10: Data Modeling and Data Retrieval Data Modeling and Transparent Tables in the ABAP Dictionary 30 Minutes Exercise 19: Analyzing Transparent Tables in the ABAP Dictionary 20 Minutes Reading Database Tables 90 Minutes Exercise 20: Data Retrieval by Single Record Access 20 Minutes Exercise 21: Data Retrieval Using a SELECT Loop 25 Minutes Exercise 22: (Optional) Data Retrieval by Mass Access (Array Fetch) 25 Minutes Authorization Check 45 Minutes Exercise 23: Authorization Check 10 Minutes Unit 11: ABAP Open SQL ABAP Open SQL: Optimizing Statements 40 Minutes Unit 12: Selection Screen Generating and Designing the Selection Screen 40 Minutes Exercise 24: Generating and Designing the Selection Screen 60 Minutes Input Checks and Variants 30 Minutes Exercise 25: Input Checks and Variants 20 Minutes Selection screen: Modifications at Runtime 30 Minutes Exercise 26: Selection screen: Modifications at Runtime 40 Minutes Unit 13: Programs Calls and Data Storage Management Programs Calls and Data Storage Management 40 Minutes Exercise 27: ABAP Memory 30 Minutes Unit 14: New Test Tools The Code Inspector 30 Minutes Exercise 28: The Code Inspector 30 Minutes ix 2008 ' 2008 SAP AG. All rights reserved. Course Overview TAW10_1 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) Carry out database read accesses (cid:149) Developsimplereusecomponents(subroutines,functionmodulesandmethods) and use them in programs (cid:149) Program dynamic screen processing (cid:149) ProgramuserdialogsusingthedifferentscreenelementsintheSAPsystem (cid:149) DescribethefunctionoftheABAPDictionaryintheSAPsystem (cid:149) Define database objects and use them (cid:149) Create andadminister user-defined data types (cid:149) Use the services in the ABAP Dictionary (cid:149) UnderstandhowtheABAPDictionaryislinkedtothedevelopmentandruntime environments Course Objectives After completing thiscourse, you will beableto: (cid:149) Describe the structure of an SAP system (cid:149) Use the ABAP Workbench tools (cid:149) Createandcallsubroutines,functionmodulesandmethods (cid:149) Write user-friendly dialog programs (cid:149) ImplementandprocessscreenelementsintheSAPsystem (cid:149) Create a user interface for a program (cid:149) UseanddescribetheABAPDictionaryanditsservices (cid:149) ModeldataandreaddatausingSQLfromthedatabase (cid:149) Program in a performance-sensitive manner (cid:149) Use the Code Inspector SAP Software Component Information TheinformationinthiscoursepertainstothefollowingSAPSoftwareComponents and releases: (cid:149) ERP 6.1 x '2008SAPAG.Allrightsreserved. 2008

Description:
ABAP Workbench Fundamentals. Date. Training Center. Instructors. Education Website. Instructor Handbook. Course Version: 63. Course Duration:
See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.