Professional Documents
Culture Documents
Chapter 5 & 6
CSU Chico
SAP AG
Overview
Three conceptual levels
How to see the data in a Table Heads up on Table Processing ABAP examples
CSU Chico
SAP AG
F1 F2
F1 F2
F1 F2
Structure
F1 F2
F1 F2
Data Element
Domain
CSU Chico
SAP AG
F150
F150
camper
Camaro
Structure
trucks
cars
Data Element
4 wheel automobiles
Domain
CSU Chico
SAP AG
Definition of Levels
Domain: Range of values of a certain type and length that can be used by many data elements. Example VIN# is 11 character numeric. Data Element: Attribute or field that is defined by a domain. Example: Trade-in_Vin#, NewCar_Vin#
Table: Collection of related Data Elements and their values (Set of related records) Example: Car Sales Order
Structure: Like a sub-schema or view of the data (collection of data elements that may not be related through tables) Example: CCSS
CSU Chico
SAP AG
design analysis
Editor
debugging programming
Basic Process
CSU Chico
SAP AG
At Table/Structure Level
Field name Key
Data Element
Type - determined by Domain Length - determined by Domain Checktable Text
CSU Chico
SAP AG
Field Length
Value Table (allowable values) Texts
CSU Chico
SAP AG
In Class Assignment
SBOOKs structure contains how many fields? How many key fields does SBOOK have?
What is the name, domain, data type and long field name of the last field in SBOOK?
CSU Chico
SAP AG
ABAP code
select *
CSU Chico
SAP AG
In Class Assignment
Determine the number of records in the database The number of records with connecting identification numbers between 400 and 500
Is the default inclusive or exclusive for the range delimiters (Does SAP include or exclude the limits of the range entered?)
Exclusive Inclusive
CSU Chico
SAP AG
Create Table
Load Table
Display
CSU Chico
SAP AG
CSU Chico
SAP AG
How do I make sure data will fit in MY_TABLE? Match the structures. LIKE
CSU Chico
SAP AG
CSU Chico
SAP AG
CSU Chico
SAP AG
LOOP At itab
}
ENDLOOP
Put actions you want done in the loop between LOOP AT and ENDLOOP.
LOOP AT itab. Write data. ENDLOOP.
CSU Chico
SAP AG
Assignment #4
On paper, create a hierarchy example using the three levels: Domain, Data Element, Structure. Be ready to explain on exam Copy ZZ99DEM2
find the fields for ticket price and plane type in SFLIGHT
CSU Chico
SAP AG