BC100_EN_Col91_FV_Part_A4.pdf

(16382 KB) Pobierz
BC100
Introduction to Programming
(Based on ABAP Examples)
SAP NetWeaver Application Server - ABAP
Date
Training Center
Instructors
Education Website
Participant Handbook
Course Version: 91
Course Duration: 2 Day(s)
Material Number: 50094355
An SAP course - use it to learn, reference it for work
893407097.032.png 893407097.033.png 893407097.034.png 893407097.035.png 893407097.001.png
 
Copyright
Copyright ¨ 2009 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
¤
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.
g2009525115932
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 and external.
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.
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.
<Example text>
iii
2009
¨ 2009 SAP AG. All rights reserved.
893407097.002.png 893407097.003.png 893407097.004.png 893407097.005.png 893407097.006.png 893407097.007.png 893407097.008.png 893407097.009.png 893407097.010.png 893407097.011.png 893407097.012.png 893407097.013.png
 
About This Handbook
BC100
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
¨ 2009 SAP AG. All rights reserved.
2009
893407097.014.png 893407097.015.png 893407097.016.png 893407097.017.png 893407097.018.png 893407097.019.png 893407097.020.png 893407097.021.png 893407097.022.png 893407097.023.png 893407097.024.png 893407097.025.png 893407097.026.png 893407097.027.png 893407097.028.png 893407097.029.png 893407097.030.png
 
Contents
CourseOverview......................................................... vii
CourseGoals...........................................................vii
CourseObjectives .....................................................vii
Unit 1: From the Problem to the Program - Introduction to
Structured Programming.................................................1
From theProblem to theAlgorithm...................................2
From theAlgorithm to theProgramFlowchart .................... 13
From theAlgorithm to theStructogram ............................ 24
Unit 2: Flow of an ABAP Program ................................... 35
SystemArchitecture .................................................. 36
General ABAP Syntax. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
TheEditor.............................................................. 55
Unit 3: Introduction to ABAP Programming....................... 73
Working with Elementary Data Objects, Assignments . . . . . . . . . . . 74
Logical Expressions and Relational Operators . . . . . . . . . . . . . . . . . . . 95
Branches andCaseDistinction ..................................... 99
Working with the Debugger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .109
Loops..................................................................122
ExitingProgramUnits ...............................................133
Unit 4: Selection Screen, List, and ProgramTerminations....145
SelectionScreen (Parameters) ....................................146
Lists....................................................................158
ProcessingCharacter Strings ......................................167
ProgramTerminations...............................................180
Unit 5: Example of Reuse Components in Subroutines . . .....193
Purpose of Reuse Components. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .194
Unit 6: Appendix ........................................................201
Calling Subroutines and Passing Parameters . . . . . . . . . . . . . . . . . . .202
ExitingSubroutines..................................................218
Debugging Subroutines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .228
Index .......................................................................239
v
2009
¨ 2009 SAP AG. All rights reserved.
893407097.031.png
Zgłoś jeśli naruszono regulamin