Beruflich Dokumente
Kultur Dokumente
Agenda
ABAP Runtime Environment Data types and Data objects Creating & executing an ABAP Program Statements List Output Selection -Screen
Database access
Agenda
Events and Flow Control Interactive Lists Passing Data Between Programs Macros Debugging
Components
Structure
Non-Executable Programs
Data Types
Data types
Data types are pure descriptions.
Data Types
Data types
Type Groups
define standalone types in the ABAP Dictionary.
are based on the include technique, and allows to store any type definitions globally in the Dictionary.
are defined as ABAP code.
The first statement for the type group <pool> is always:
TYPE-POOL <pool>.
- a constant
HKTST_ELEVEN with the value 11
Data objects
Data objects are the physical units a program uses at runtime. Each data object has a specific data type assigned to it. Each data object occupies some space in memory.
Data objects
Internal data objects:- Created within a program.
Literals Variables Constants
Data objects
System-defined data objects:- Defined automatically by the system.
SPACE System fields
Field Symbols
Choose Save.
Choose Save.
When the program is generated, the system creates a runtime object for it.
Execute the program. -- Program Execute.
Activating a Program
When a program is activated, the system generates an active version from the inactive version.
The activation process checks for syntax errors in the program, then generates the active version. Finally, it generates a load version and deletes the corresponding entry from your list of inactive objects.
Executing a Program
Users can run executable programs either in the foreground, by entering the program name in Transaction SA38 (System Services Reporting), or as a background job.
ABAP STATEMENTS
REPORT ZTEST01.
Keywords
Declarative keywords
Keywords
Defining keywords:
FORM .. ENDFORM FUNCTION .. ENDFUNCTION MODULE .. ENDMODULE
Control keywords
IF, WHILE, CASE
Calling keywords
PERFORM, CALL, SUBMIT, LEAVE TO
Operational keywords
WRITE, MOVE, ADD
Chain statements
Chain statements:
WRITE SPFLI-CITYFROM. WRITE SPFLI-CITYTO. WRITE SPFLI-AIRPTO.
can be written as
WRITE: SPFLI-CITYFROM, SPFLI-CITYTO, SPFLI-AIRPTO.
Comments
Two ways to indicate comments:
Entire line to be commented
* at the beginning * WRITE 'First Program'.
WRITE Statement
The basic ABAP statement for outputting data on the
screen.
WRITE <f>.
Initializing
Assigning Values
Compatibility
String Processing
Searching In a String
Changing Strings
Calculations- Syntax
Logical Expressions
Comparing Strings
Conditional Branching
Loops
List Output
List
Generating A List
WRITE Statement
Scrolling
Additional Statements
Multi Lingual
System Fields
Exercise
Selection - Screen
Selection Screen
Overview
PARAMETERS
SELECT-OPTIONS
Multiple Selections
SELECT-OPTIONS Syntax
Input checks
Variants
Exercise
Database Access
SELECT Statement
Process
Array Fetch
INTO Clause
INTO-Corresponding
Database Updates
Exercise