4th Jan Notes-Complete Process of Table Creation and Maintainance
4th Jan Notes-Complete Process of Table Creation and Maintainance
Master data:-
Example :-
Transaction data:-
Example:-
We can also create the 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 records in these tables are specific to the client i.e. the record inserted
in one client and will not available in other client.
The record’s in this tables are not specific to any client’s i.e. they are
available across the client’s .
Table creation:-
A table is dictionary object which is a collection of rows
(records) and columns (fields)
Tables are used for storing the data permanently.
iv. Declare and define events (if required) at the table maintenance
level.
1. Delivery class .
Delivery class:
It is used for controlling the transporting of table data.
A -> application table used for storing master and transaction data.
In dialog box:
Note:
In this we can only view the data but we can’t perform the operatons
like insertion, deletion and modification.
It supports all the operations we can view, insert , delete and modify.
Technical settings:-
1. Data class.
2. Size category.
Data class:-
Example:-
Size category:
Its specifies the initial amount of memory that needs to be allocated for the
database table.
Enhancement category:-
Its specifies the type of enhancement i.e. that can be made to the table.
Disadvantages:
Table maintenance :-
After creating every database table, ABAP consultant must
generate Table Maintenance.
The table maintenance allows end user to maintain the table
for performing the operations like insertion, deletion,
Modification and view.
For generating table maintenance we require function group.
A function group is an object which stores the objects related
to table maintenance. i.e. dependent objects (screens,
subroutines,f.m’s) related to table maintenance are stored
inside function group.
As part of generating table maintenance, we need to specify
maintenance type which is of two types.
Maintenance type is of two types:-
i. Step 1:
In one step only one screen is generated called as overview
screen in which all the CRUD operations are performed.
ii. Step 2 :
In two step, Two screens will be generated, overview screen
and single screen.
In overview screen we can view the data, delete the data
and modify the data.
In single screen we can insert the data.
Procedure for generating Table maintenance:
1. Create /Consider a function group (se80)
2. In SE11, navigate to the table, choose the menu ‘utilities
table maintenance generator’
Authorization group &nc&
Function group z930fgroup (existing function group)
Maintenance type one step (select)
Propose ‘overview screen’ no by choosing find scr
numbers on appl.toolbar
3. Click on create button (appl.toolbar)
T-code “SM30” is used for maintaining the database tables.
To minimize the process of table maintenance, we need to
create custom t-code for every table maintenance
Custom t-code creation SE93
Creating T-code for table maintenance:
SE93 .provide custom t-code (z930), create provide
short text( … ), choose the radiobutton ‘Transaction with
parameters’ Transaction (SM30), select the checkboxes
‘skip initial screen’ and provide default values for the skipped
screen at the end
Name of screen field value
Viewname z930emp
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 (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).
Note :-