ABAP
ABAP
Objectives
Upon completion of this topic, you should be able to:
Define the general terms associated with the ABAP/4 Workbench. Work with the ABAP/4 Object Browser. Create a program object. Access tables to generate a report.
Topics
ABAP/4 Development Workbench
ABAP/4 Data Dictionary ABAP/4 Repository Information
Reporting
R/3 Repository
Function Modules
Double-clicking will navigate you to wherever the object is stored. Remote call functions let you access other systems.
A report consists of a selection screen on which you define the dataset you wish to display, and a list which displays the data itself.
In dialog programming you use the screen painter to create screens and program the sequence in which they appear.
Selection Screen
List Screen
Screen 01000
Screen 0200
Transactions
Logical databases etc. University of Southern California
ABAP/4 Programs
All ABAP/4 programs (objects) are made up of:
ABAP/4 Program
Attributes Source Code
Creating Programs
Begin by first specifying a development class.
Customer-specific program names begin with Y or Z. If you are creating a test object which you do not wish to be transported, choose Local Object.
You can switch between editor modes by choosing Settings Editor mode
ABAP/4 Syntax
An ABAP/4 program consists of individual statements
Each statement must end with a period. The first word of a statement is known as the key word. Words are separated from each other by at least one blank. Statements can be indented. Statements can extend over several lines.
You can concatenate several consecutive statements with an identical key word (e.g. WRITE: ).
Follow the key word with a colon. Separate each concatenated part with a comma. End the lines of the concatenated statements with a period. University of Southern California
The Select statement reads the table <name> line by line and places each line read in the table work area.
Note: Double-clicking on the Tables: statement in the editor will display how the table is defined in the data dictionary.
Report ZDEMO1. TABLES: SBOOK. SELECT * FROM SBOOK WHERE CARRID = LH. ENDSELECT. WRITE : CARRID, FLTDATE.
Read table Table work area
Table SBOOK
SBOOK
F1 F2 F3 Fn
Report
Topics
ABAP/4 Development Workbench
ABAP/4 Data Dictionary ABAP/4 Repository Information
Domains - describe the technical attributes of the tables fields (e.g. field type, length, value range, etc.).
Table
Table field
uses
Structures are defined and activated in the ABAP/4 Dictionary. While data can be permanently stored in the database, data in structures exists only during the runtime of a program.
Aggregated objects are objects which come from several different tables.
Views are application-specific views of different ABAP/4 Dictionary tables. Views allow you to gather information from fields of different tables and present it to users in the form they require. University of Southern California
Topics
ABAP/4 Development Workbench
ABAP/4 Data Dictionary ABAP/4 Repository Information
Search by attributes
Display all objects of type X with attribute Y
Where-used lists
Display all objects of type Y which use attribute X