BC402+-+Advanced+ABAP.pdf

(39933 KB) Pobierz
Print Preview - D:\temp\e3temp_1996\.aptcache\BC402/tfa01996
BC402
Advanced ABAP
SAP NetWeaver
Date
Training Center
Instructors
Education Website
Participant Handbook
CourseVersion:2005/Q2
CourseDuration:5Days
Material Number: 50071231
An SAP course - use it to learn, reference it for work
613465945.006.png
Copyright
Copyright ¨ 2005 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. Additionally this publication and its contents are provided
solely for your use, this publication and its contents may not be rented, transferred or sold 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
¤ Microsoft§, WINDOWS§, NT§, EXCEL§, Word§, PowerPoint§ and SQL Server§ are
registered trademarks of Microsoft Corporation.
¤ IBM§, DB2§, OS/2§, DB2/6000§, Parallel Sysplex§, MVS/ESA§, RS/6000§, AIX§,
S/390§, AS/400§, OS/390§, and OS/400§ are registered trademarks of IBM Corporation.
¤ ORACLE§ is a registered trademark of ORACLE Corporation.
¤ INFORMIX§-OnLine for SAP and INFORMIX§ Dynamic ServerTM are registered
trademarks of Informix Software Incorporated.
¤ UNIX§, X/Open§, OSF/1§, and Motif§ are registered trademarks of the Open Group.
¤ Citrix§, the Citrix logo, ICA§, Program Neighborhood§, MetaFrame§, WinFrame§,
VideoFrame§, MultiWin§ and other Citrix product names referenced herein are trademarks
of Citrix Systems, Inc.
¤ HTML, DHTML, XML, XHTML are trademarks or registered trademarks of W3C§, World
Wide Web Consortium, Massachusetts Institute of Technology.
¤ JAVA§ is a registered trademark of Sun Microsystems, Inc.
¤ JAVASCRIPT§ 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.
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
Description
Example text
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).
Example text
Emphasized words or phrases in body text, titles of
graphics, and tables
EXAMPLE TEXT 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.
Example text
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.
Example text
Exact user entry. These are words and characters that
you enter in the system exactly as they appear in the
documentation.
<Example text> Variable user entry. Pointed brackets indicate that you
replace these words and characters with appropriate
entries.
2005/Q2
¨ 2005 SAP AG. All rights reserved.
iii
613465945.007.png
About This Handbook
BC402
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
¨ 2005 SAP AG. All rights reserved.
2005/Q2
613465945.008.png 613465945.009.png 613465945.001.png 613465945.002.png 613465945.003.png 613465945.004.png
Contents
CourseOverview......................................................... vii
CourseGoals...........................................................vii
CourseObjectives .....................................................vii
Unit 1: ABAPRuntime ....................................................1
ABAPRuntime ..........................................................2
Unit 2: ABAP Types and Data Objects.............................. 23
Data Types andDataObjects....................................... 24
UsingStructures ...................................................... 61
Global Types and Global Constants. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Unit 3: Analysis Tools for Programs ...............................105
ABAP Debugger. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .106
Assertions andBreakpoints ........................................120
TheCode Inspector..................................................134
RuntimeAnalysis ....................................................146
Unit 4: Internal Tables..................................................157
Defining Internal Tables.............................................158
Using Internal Tables................................................172
Unit 5: FunctionGroups...............................................207
Function Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .208
Function Modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .218
Calling Function Modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .237
Unit 6: ABAPOpen SQL...............................................253
Architecture of theSAPWebApplicationServer ................255
SQLTrace ............................................................262
Indexes ÎBasics.....................................................271
ABAPOpenSQL: OptimizingStatements........................287
TableBuffering .......................................................317
Unit 7: Dynamic Programming.......................................335
Dynamic Calls in ABAP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .336
Dynamic Programming with Field Symbols and References. . .349
Runtime TypeServices..............................................377
2005/Q2
¨ 2005 SAP AG. All rights reserved.
v
613465945.005.png
Zgłoś jeśli naruszono regulamin