Data Dictionary
Data Dictionary
Data Dictionary
Dictionary
C
N D T
Text (Character)
Numeric text Date (DDMMYYYY) Time (HHMMSS)
X
I P F
Hexadecimal
Integer Packed Number Floating point number
Domain
A Domain describes the technical structure of a field that is its size and its data types. Domains are attached to Data Elements Fields which refer to the same domain (with the assigned data elements), are also changed when the domain is changed. This ensures that the fields are consistent Defines a value range which describes the valid data values for all the fields which refer to this domain
Table MARA
CLNT MATNR
Data Element
Domain
Creating a Domain
Data Element
A data element gives the description of the field of the Table Examples of predefined data elements in SAP LIFNR KUNNR MATNR CLNT
Data Element
Defines semantic attributes such as display length, short text, long text, etc A Data Element can point to only one domain
Used to define data elements, restrict Used to define fields of tables and values (using value range, value table, screens etc)
A Holistic view
Table A
Table B
Table C
Data element
Data element
Domain
Tables
Tables are containers which stores data in the form of record They are a central component of the SAP R/3 Application One or more fields form a data record (also known as tupel) A number of data records of the same type form a table Examples of few SAP defined tables
MARA : Material Master
Tables Contd
The table definition contains the following components
Tables Contd
Types of Tables
Transparent ABAP Dictionary
Cluster
Pool
ABAP Program
Internal
Tables Contd
Enter a description (short text) After making all entries, Press the Fields Tab
After entering the Index Fields and other parameters, save and activate the index, Z01
Tables Contd
Foreign Keys
Uses
Maintain data integrity Provide help texts Create aggregate dictionary objects
Prerequisites
The foreign key text field and primary key of the check table must share the same domain A value table must exist for that domain
Tables Contd
Cardinality
Cardinality defines the type of
relationship between two tables The cardinality of a foreign key
System fields
SAP has a system table named syst. It stores all the system related data Examples of few fields in this table are
Sy-datum : System Date Sy-langu : System Language Sy-subrc : System check Sy-uzeit : System time
SAP Data
Master Data
Configuration Data
Structures
A structure is defined like a table in the ABAP Dictionary and can then be accessed from within ABAP programs Contain data temporarily during program runtime The same data elements and domains can be used in structures as in tables
Views
A view combines the data distributed in several tables
Views allow to gather information from fields of different tables and present it to the users in form they require when working in the R/3 system