logo资料库

abap pa - BC400_Col63.pdf

第1页 / 共541页
第2页 / 共541页
第3页 / 共541页
第4页 / 共541页
第5页 / 共541页
第6页 / 共541页
第7页 / 共541页
第8页 / 共541页
资料共541页,剩余部分请下载后查看
toc
Icons in Body Text
Flow of an ABAP Program
Lesson:
System Architecture and ABAP Program
Process Flow of a Program with Selection Screen and List
Topic Overview
Unit 1
Introduction to the ABAP Workbench
Lesson:
Introduction to the Repository
Search Tools in the Repository
Working With the Object Navigator
Lesson:
Organizing Developments
Developing an ABAP Program
Introduction to the ABAP Programming Language
Is typed
The ABAP Editor
Activating Programs
Creating Transactions
Closing Development Projects
Exercise 1: Organizing Developments
Exercise 2: Developing a Simple ABAP Program
Exercise 3: Create Transactions
Basic ABAP Language Elements
Lesson:
Data Types and Data Objects
Using Data Types
ABAP Standard Types
D
C
Local Data Types
Global Data Types
Definition of Variable Data Objects
Literals, Constants and Text Symbols
Comparison: Local and Global Data Types
Basic ABAP Statements
Value Assignments
Calculations and Arithmetic Expressions
Conditional Branches and Logical Expressions
Loops
System Fields
Dialog Messages
Working with the ABAP Debugger
Exercise 4: Basic ABAP Statements
Exercise 5: Debugging Statements on Elementary Data Objects
Modularization
Lesson:
Modularization Technique
Local Program Modularization
Global Modularization
Encapsulating Data
Data Transports, Parameters and Interface
Lesson:
Internal Program Modularization with Subroutines
Parameter Definition for Subroutines
Local and Global Data Objects
Calling Subroutines
Modularization Units in the Debugger
Exercise 6: Subroutines
Lesson:
Working with Function Modules
Searching for Function Modules
Function Module Interface
Documentation and Testing
Calling Function Modules
Exception Handling
Creating Function Groups and Function Modules
Creating Function Groups
Creating Function Modules
Working with BAPIs
GetList
Exercise 7: Using a Function Module
Exercise 8: Creating a Function Group
Exercise 9: Creating and Using a Function Module
Lesson:
Principles of Object-Oriented Programming
Classes, Attributes, and Methods
Encapsulating Data, Public and Private Components
Multiple Instantiation of Classes
Instance Components and Static Components
Using Methods of Global Classes
Attributes of Global Classes
Methods and Their Signature
Documentation and Testing
Calling Static Methods
Exception Handling
Handling Classic Exceptions
Handling Class-Based Exceptions
Generating Instances and Calling Instance Methods
Creating Global Classes and Static Methods
Creating Global Classes
Creating a Static Method
Exercise 10: Using Global Static Methods
Exercise 11: Creating Global Classes
Exercise 12: Creating and Using Global Static Methods
Lesson:
Defining and Using Local Classes
Complex Data Objects
Lesson:
Working with Structures
Exercise 13: Working with Structures
Lesson:
Working with Internal Tables
Exercise 14: Working with Internal Tables
Data Modeling and Data Retrieval
Lesson:
Data Modeling
Transparent Tables
Exercise 15: Analyzing Transparent Tables in the ABAP Dictionary
Lesson:
Data Retrieval
Performance Aspects with Database Access
Secondary Index
SAP Table Buffer
Reading from Several Database Tables
Database Change Accesses (Preview)
Exercise 16: Data Retrieval by Single Record Access
Exercise 17: Data Retrieval Using a SELECT Loop
Exercise 18: (Optional) Data Retrieval by Mass Access (Array Fet
Lesson:
Authorization Checks
Exercise 19: Authorization Check
User dialogs
Lesson:
The Screen
Screens, Pushbuttons and Navigation
Screens, Creating Input/Output Fields
Data Transports Between the Program and the Screen
Exercise 20: Creating Screens and Dynamic Next Screen Processing
Exercise 21: Screen – Creating Input/Output Fields
Exercise 22: Screens – Data Transport
Lesson:
ABAP Web Dynpro: Properties and Programming Model
Elements of the ABAP Web Dynpro
Web Dynpro, Pushbuttons and Navigation
Creating a Web Dynpro Component
Creating Web Dynpro Views and Embedding them in the Window
Setting up Navigation Between Web Dynpro Views
Creating Pushbuttons and Triggering Navigation
Creating a Web Dynpro Application
Web Dynpro, Layout and Data Transport
Creating a Web Dynpro Service Call and Generating the Controller
A service method (name begins with “ EXECUTE_ ” )
Setting up Context Mapping
Creating Input/Output Fields and Setting up Data Binding
Calling the Service Method for Data Retrieval
Exercise 23: Web Dynpro:Navigation
Exercise 24: Web Dynpro: Data Transport and Layout
Lesson:
ABAP List
Selection Screen
Advantages of Selection Screens
Input Options on Selection Screens
ABAP Events
Event Block Characteristics
The INITIALIZATION Event
The AT SELECTION-SCREEN Event
Other ABAP Events
Exercise 25: Selection Screen and Classic ABAP List
Task 1:
Exercise 26: ABAP Events
Lesson:
The SAP List Viewer
Exercise 27: Displaying an Internal Table with the SAP List View
Tools for Program Analysis
Lesson:
Introduction
Calling the Code Inspector
Defining Check Variants, Object Sets and Inspections
Adjusting the SAP Standard Software (Overview)
Lesson:
Basic Terms and Options of SAP Software Adjustment
Enhancement Types
Append structure
BC400 Introduction to the ABAP Workbench SAP NetWeaver Date Training Center Instructors Education Website Participant Handbook Course Version: 63 CourseDuration:5Days MaterialNumber:50087597 An SAP course - use it to learn, reference it for work
Copyright Copyright ' 2008 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors. Trademarks Microsoftfi, WINDOWSfi, NTfi, EXCELfi, Wordfi, PowerPointfi and SQL Serverfi are registered trademarks of Microsoft Corporation. IBMfi, DB2fi, OS/2fi, DB2/6000fi, Parallel Sysplexfi, MVS/ESAfi, RS/6000fi, AIXfi, S/390fi, AS/400fi, OS/390fi, and OS/400fi are registered trademarks of IBM Corporation. ORACLEfi is a registered trademark of ORACLE Corporation. INFORMIXfi-OnLine for SAP and INFORMIXfi Dynamic ServerTM are registered trademarks of Informix Software Incorporated. UNIXfi, X/Openfi, OSF/1fi, and Motiffi are registered trademarks of the Open Group. Citrixfi, the Citrix logo, ICAfi, Program Neighborhoodfi, MetaFramefi, WinFramefi, VideoFramefi, MultiWinfi and other Citrix product names referenced herein are trademarks of Citrix Systems, Inc. HTML, DHTML, XML, XHTML are trademarks or registered trademarks of W3Cfi, World Wide Web Consortium, Massachusetts Institute of Technology. JAVAfi is a registered trademark of Sun Microsystems, Inc. JAVASCRIPTfi is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. SAP, SAP Logo, R/2, RIVA, R/3, SAP ArchiveLink, SAP Business Workflow, WebFlow, SAP EarlyWatch, BAPI, SAPPHIRE, Management Cockpit, mySAP.com Logo and mySAP.com are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other products mentioned are trademarks or registered trademarks of their respective companies. Disclaimer THESE MATERIALS ARE PROVIDED BY SAP ON AN "AS IS" BASIS, AND SAP EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES, EXPRESS OR APPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, WITH RESPECT TO THESE MATERIALS AND THE SERVICE, INFORMATION, TEXT, GRAPHICS, LINKS, OR ANY OTHER MATERIALS AND PRODUCTS CONTAINED HEREIN. IN NO EVENT SHALL SAP BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, CONSEQUENTIAL, OR PUNITIVE DAMAGES OF ANY KIND WHATSOEVER, INCLUDING WITHOUT LIMITATION LOST REVENUES OR LOST PROFITS, WHICH MAY RESULT FROM THE USE OF THESE MATERIALS OR INCLUDED SOFTWARE COMPONENTS. g200849105411
About This Handbook This handbook is intended to complement the instructor-led presentation of this course, and serve as a source of reference. It is not suitable for self-study. Typographic Conventions American English is the standard used in this handbook. The following typographic conventions are also used. Type Style Example text Example text EXAMPLE TEXT Example text Example text Description Words or characters that appear on the screen. These include field names, screen titles, pushbuttons as well as 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). Emphasized words or phrases in body text, titles of graphics, and tables Names of elements in the system. These include report names, program names, transaction codes, table names, and individual key words of a programming language, when surrounded by body text, for example SELECT and INCLUDE. Screen output. This includes file and directory names and their paths, messages, names of variables and parameters, and passages of the source text of a program. Exact user entry. These are words and characters that you enter in the system exactly as they appear in the documentation. Variable user entry. Pointed brackets indicate that you replace these words and characters with appropriate entries. 2007/Q4 ' 2008 SAP AG. All rights reserved. iii
About This Handbook BC400 Icons in Body Text The following icons are used in this handbook. Icon Meaning For more information, tips, or background Note or further explanation of previous point Exception or caution Procedures Indicates that the item is displayed in the instructor’s presentation. iv ' 2008 SAP AG. All rights reserved. 2007/Q4
Contents Course Overview ............................................................................. vii Course Goals.................................................................................vii Course Objectives ...........................................................................vii Unit 1: Flow of an ABAP Program ..........................................................1 System Architecture and ABAP Programs ................................................2 Unit 2: Introduction to the ABAP Workbench.......................................... 19 Repository and Object Navigator ......................................................... 20 Developing Programs and Organizing Developments ................................. 31 Unit 3: Basic ABAP Language Elements................................................ 67 Working with Elementary Data Objects.................................................. 68 Unit 4: Modularization ...................................................................... 111 Modularization - Basics and Overview.................................................. 113 Modularization with Subroutines.........................................................120 Modularization with Function Modules..................................................142 Modularization with Methods of Global Classes.......................................178 Modularization with Methods of Local Classes (Preview) ............................208 Unit 5: Complex Data Objects ............................................................219 Working with Structures...................................................................220 Working with Internal Tables .............................................................232 Unit 6: Data Modeling and Data Retrieval..............................................265 Data Modeling and Transparent Tables in the ABAP Dictionary ....................266 Reading Database Tables ................................................................282 Authorization Check .......................................................................324 Unit 7: User dialogs.........................................................................345 Screen.......................................................................................347 ABAP Web Dynpro ........................................................................398 Classic ABAP Reports ....................................................................436 Displaying Tables with the SAP List Viewer............................................469 2007/Q4 ' 2008 SAP AG. All rights reserved. v
Contents BC400 Unit 8: Tools for Program Analysis......................................................499 The Code Inspector .......................................................................500 Unit 9: Adjusting the SAP Standard Software (Overview) .........................511 Adjusting the SAP Standard Software (Overview) ....................................512 Index............................................................................................527 vi ' 2008 SAP AG. All rights reserved. 2007/Q4
Course Overview This course introduces you to the ABAP programming language of SAP as well as its development environment, the ABAP Workbench. In both cases, we will be focusing on concepts and fundamental principles. We also introduce the appropriate terminology, so that you will find it easier to understand follow-on documentation. We always handle these topics using practical application examples so that you can immediately implement what you have learned here. Above all, it should become clear how little effort is required to create high-performance business applications in a short period of time in the ABAP Workbench. We are convinced that this course will enable you to start developing immediately and provide you with the knowledge needed to focus on the essentials in subsequent courses. That is why this course is a prerequisite for more in-depth ABAP Workbench programming courses. Target Audience This course is intended for the following audiences: Project team members ABAP programmers Course Prerequisites Required Knowledge Programming knowledge SAPTEC (SAP NetWeaver Basics of the Application Platform) Course Goals This course will prepare you to: Understand and use basic ABAP syntax elements Implement different types of user dialog Program read accesses to the database Use the ABAP Workbench development tools Understand how developments are organized and transported 2007/Q4 ' 2008 SAP AG. All rights reserved. vii
Course Overview BC400 Course Objectives After completing this course, you will be able to: Create an ABAP program containing user dialogs and database accesses Describe the different types of development objects and their typical intended purposes Use appropriate tools to create simple examples of the development objects presented viii ' 2008 SAP AG. All rights reserved. 2007/Q4
分享到:
收藏