Data Dictionary 2nd Day(Tuesday)
Data Dictionary 2nd Day(Tuesday)
1. Tables
2. Views
3. Data elements
4. Domains
5. Type Groups
6. Search Helps
7. Table Types
8. Lock objects
9. Structures
Example:- Empno, ename, customer no, customer name ,bank account no, bank account holder
name, material data, vendor data.
Transaction data:
Enquiry form, quotation, purchase order document, sales order document, billing document,
delivery schedule document.
Every business document contains 1 header record and one or more item record's.
Key fields mandt (client), vbeln (billing document no), posnr (item no)
Other header and item tables: - Sales Documents (VBAK and VBAP),
Purchase Documents (EKKO and EKPO)
As part of database tables we can directly use the standard tables, enhance the
standard table (adding fields).
We can also create the custom tables for storing the customer specific data.
In SAP, every table must contain minimum 1 key field and max. 16 primary fields. Primary key
fields must be at the beginning of the table.
Based on the client concept, the database tables are classified into two types.
The tables which contains MANDT as first field is called client dependent.
The records in these tables are specific to the client i.e. the record inserted in one client will not
available in other client.
Eg: KNA1, MARA, LFA1, VBAK, VBAP, EKKO, EKPO, VBRK, VBRP
Client independent tables:
A table is dictionary object which is a collection of rows (records) and columns (fields)
iv. Declare and define events (if required) at the table maintenance level.
1. Delivery class.
A -> application table used for storing master and transaction data.
Note:
In this we can only view the data but we can't perform the operations like insertion,
deletion and modification.
It supports all the operations i.e we can view, insert , delete and modify.
1. Data class.
2. Size category
Data class:
It specifies the schema (partition) in which the table as to be stored. As an ABAP Consultant we
will use only Master Schema (APPL0) and Transaction schema (APPL1).
Size category:
It specifies the initial amount of memory that needs to be allocated for the database table.
When the initial memory is utilized, the memory gets extended automatically to the
amount of initial size.
In size category the range of number of data records depends upon "structure of the
table".
Enhancement category:
After creating every database table, ABAP consultants must generate Table Maintenance, so
that an interface will be generated through which the end users can maintain the table.
The table maintenance allows the end user to maintain the table for performing the
operations like insertion, deletion, Modification and view the data (display).
In one step only one screen is generated called as overview screen in which all the CRUD
(create, read, update and delete) operations are performed.
In two step, Two screens will be generated, overview screen and single screen.
In overview screen we can only view the data, delete the data and modify the data.
2. In SE11, navigate to the table, choose the menu 'utilities table maintenance
generator'
Once a table maintenance is generated, we can maintain the table using the T-
code
"SM30".
SE93 provide custom t-code (ZTEMP), create provide short text( … }, choose the
radiobutton 'Transaction with parameters' Provide Transaction (SM30), select the
checkbox 'skip initial screen' , in gui support select the checkbox 'sap gui for
windows' and provide default values for the skipped screen at the end
Viewname z830emp
Update X
Note: For collecting screen field names, goto sm30 initial screen, press f1 in table/view
field and collect the screen field name, similarly put focus on 'maintain' button, press
f1 and collect the function code (upd) (equal to update)
Note: Whenever we create t-code for any object, select the check box 'SAP GUI for
windows', otherwise t-code cannot be used (incomplete).
Table creation using data elements and domains:
Data element: is a reusable dictionary object which provides description for the field.
I.e. the description (labels) maintained at data element level will automatically
appear on the screen wherever the data element is referred. It can be created by
referring to a direct data type / referring to a domain. We can also associate a
search help (f4 help) as part of data element.
Domain: is a reusable dictionary object which stores technical properties of the field like
data
type, size, fixed values, value table….
Note:
If it is client dependent table we have to give minimum two primary key fields otherwise if
only
'mandt' is primary key field then we can maintain maximum of single