You are on page 1of 22

Table Creation, Maintenance and

Authorization

Applies to:
ECC 6.0. For more information, visit the ABAP homepage.

Summary
The paper is about what all steps related to creation of Customized table, table maintenance through SM30
and Table Authorization.
Author:

Maheshsingh Mony

Company: Capgemini India


Created on: 15 January 2010

Author Bio
Maheshsingh Mony is working with Capgemini India. He has 3+ years of full time experience
in implementation of SAP BI projects, Migration, Rollout, and Support Projects. His expertise
includes SAP BI, ABAP.

SAP COMMUNITY NETWORK


2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com


1

Table Creation, Maintenance and Authorization

Table of Contents.
Creating Customized tables for Table Maintenance .......................................................................................... 3
Create Authorization Object................................................................................................................................ 8
Table Maintenance Generator .......................................................................................................................... 11
Exceptions: .................................................................................................................................................... 12
Changing the Source Code of Table Maintenance. ......................................................................................... 13
Related Content ................................................................................................................................................ 21
Disclaimer and Liability Notice .......................................................................................................................... 22

SAP COMMUNITY NETWORK


2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com


2

Table Creation, Maintenance and Authorization

Creating Customized tables for Table Maintenance


Go to SE11 and Give the table name that you want to create.

Give the Description of the table and enter the Following Details.
1. Delivery Class
Delivery Class

Used for

Application table (master and transaction data).

Customer table, data is maintained by the customer only

Table for storing temporary data

Customer table, SAP may insert new data records, but may not overwrite or delete existing
data records. The customer namespace must be defined in table TRESC. (Use Report
RDDKOR54 here).

System table with its own namespaces for customer entries. The customer namespace must
be defined in table TRESC. (Use Report RDDKOR54 here.)

System table, data changes have the same status as program changes.

System table (e.g. table of the development environment) whose data is transported with its
own transport objects (e.g. R3TR PROG, R3TR TABL, etc.).

2. Data Browser/Table View Maint.


Options Available:

Display/maintenance not allowed


The usage of standard table maintenance tools is not allowed.

SAP COMMUNITY NETWORK


2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com


3

Table Creation, Maintenance and Authorization

Maintenance and display of this Dictionary object is not possible in transaction SE16.

Transaction SE54 does not allow the generation of a maintenance dialog, which means
automatically that calling transactions SM30/SM34 for this Dictionary object is no longer possible.

Display/maintenance allowed to limited extent


Usage of standard table maintenance tools is allowed to a limited extent:

Transaction SE16 allows the display function for this Dictionary object, but no maintenance.

Generation of a maintenance dialog for this Dictionary object is possible using transaction SE54.

Transaction SM30 does not allow maintenance and display functions for this Dictionary object

Display/maintenance allowed:
The usage of standard table maintenance tools is allowed:

Transaction SE16 allows the maintenance and display functions for this Dictionary object.
Note: If an SM30 maintenance dialog exists for this Dictionary object, it is called.

Transaction SE54 allows the generation of a maintenance dialog for this Dictionary object.

Transaction SM30 allows the display and maintenance functions for this Dictionary object.

SAP COMMUNITY NETWORK


2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com


4

Table Creation, Maintenance and Authorization

Enter the Fields of the table

Significance of the Above fields:

Fields

Significance

LASTCHANGED

Username of the person who Created or changed


the data

CHANGEDATE

The Date on which the records was created or


changed

CHANGE_TIME

The Time on which the records was created or


changed

COMMENTS

The Reason for the changes made to be specified by


the user

SAP COMMUNITY NETWORK


2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com


5

Table Creation, Maintenance and Authorization

Once all the fields have been entered then click on Technical Settings and Enter the following details on the next
screen:-

Data Class: The data class defines the physical area of the database (for ORACLE the TABLESPACE) in which
your table is logically stored. If you choose a data class correctly, your table will automatically be assigned to the
correct area when it is created on the database.
The most important data classes are (other than the system data):

APPL0

Master data

APPL1

Transaction data

APPL2

Organizational and customizing data

Master data is data which is frequently read, but rarely updated. Transaction data is data which is frequently
updated. Organizational und customizing data is data which is defined when the system is initialized and then
rarely changed.

SAP COMMUNITY NETWORK


2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com


6

Table Creation, Maintenance and Authorization

There are two more data classes available, USR and USR1. These are reserved for user developments. The
tables assigned to these data classes are stored in a table space for user developments.
Note: The data class only has an effect on table storage for the database systems ORACLE and INFORMIX
Size category: The size category determines the probable space requirement for a table in the database.
You can select the categories 0 to 4 for your table. Each category is assigned a specific fixed storage area value in
the database. When you create a table, initial space is saved for it in the database. If more space is required later
as a result of data that has been entered, the storage space is increased in accordance with the category selected.
Press F4 on the field Size category to see the number of data records that can be maintained for the individual
categories of your table without complications ensuing. These complications could be for example a reorganization
becoming necessary because the maximum space to be reserved for the table was exceeded due to the
maintained size category.
Buffering status: The buffering status specifies whether or not a table may be buffered.
This depends on how the table is used, for example on the expected volume of data in the table or on the type of
access to a table. (Mainly read or mainly write access to the table. In the latter case, for example, one would not
select buffering).
You should therefore select

Buffering not allowed if a table may not be buffered.


Buffering allowed but not activated if buffering is principally allowed for a table, but at the moment no
buffering should be active. The buffering type specified in this case is only a suggestion.
Buffering allowed if the table should be buffered. In this case a buffering type must be specified.

Buffering type: The buffering type defines whether and how the table should be buffered.
There are the following types of buffering:

single-record buffering
generic area buffering
full buffering

Press F1 for more details


Press F1 for more details
Press F1 for more details

In generic area buffering, a number of key fields between 1 and no. of key fields-1 must be specified.
No. of key fields for generic buffers: If you read a record from a generically buffered table, all records whose the
left-justified part of the key corresponds to that of this record (generic key fields) are loaded into the buffer.
This left-justified part of the key is determined in this field by entering a number n of key fields. The first n key fields
of the table are thus the generic key fields.

SAP COMMUNITY NETWORK


2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com


7

Table Creation, Maintenance and Authorization

Create Authorization Object


To create Authorization Object go to transaction SE54.
Enter the Table/View name for which the Authorization object has to be created.
Select Radio Button Authorization groups.
Then click on Create/Change.

SAP COMMUNITY NETWORK


2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com


8

Table Creation, Maintenance and Authorization

Then the next screen will give a list of Authorization Objects already present in the system. You can
Select one of them from the avaliable list as per the requirement.
But if the table demands a new authorization object then click on New Entries pushbutton given on the
screen.

SAP COMMUNITY NETWORK


2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com


9

Table Creation, Maintenance and Authorization

Enter the new authorization object name with its description as shown in the screen below. Certain
Naming convention is to be followed for the authorization object. (It should always start with Z).
Click on Save.

SAP COMMUNITY NETWORK


2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com


10

Table Creation, Maintenance and Authorization

Table Maintenance Generator


1. Go to SE12 transaction. Open the table for which the table maintenance is to be implemented.
2. Change it to the Editable mode and then click on Utilities -> Table maintenance generator.

Enter the following details on the next screen:Authorization group - assigned/created for the table by following the procedure given in Section I.
Function Group - Name of the function group, to which the generated maintenance modules will belong.
Maintenance type According to the table requirement, any one should be selected.
One Step - Only one maintenance screen is processed during extended table maintenance. The
entries are displayed in list form on this screen.
Two Step - Two maintenance screens are processed during the extended table maintenance:
On the Overview screen the entries are displayed in list form.
On the Single screen one entry is displayed. The single screen can be called from the overview
screen, by function key, for every entry.
Maintenance Screen no. - According to the Maintenance type selected, overview screen and single screen
should be entered.
Recording routine Indicator for recording routine which should be used for the table contents.
Standard recording routine
No, or user, recording routine
Compare Flag This flag indicates whether the maintenance transaction allows the (checked) activation of
Business Configuration Sets (BC Sets), and the adjustment. This is the case if the maintenance transaction
can run in the background. There are four options present for the compare flag:
No Information
Not Adjustable
Adjustable in Dialog
Automatically Adjustable

SAP COMMUNITY NETWORK


2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com


11

Table Creation, Maintenance and Authorization

Once done. Click on Create.


Exceptions:
If there are changes made to the table after the generation of table maintenance. Table maintenance should
be re-generated for the table.
1. Click on Utilities -> Table Maintenance Generator.
2. Click on Edit button. A pop-up would ask for Reason for change. Select the appropriate reasons.
3. Then Save the data.
4. Go to System -> Status and copy the Program Name.

SAP COMMUNITY NETWORK


2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com


12

Table Creation, Maintenance and Authorization

Changing the Source Code of Table Maintenance.


For fields last changed on, last changed by etc if present in the table, logic should be included so that they
are saved by the system.
1. Go to transaction SE80 and open the program which is received from above logic.
2. Go to the Screens drop-down list and click on 0001. In the PAI event of that screen add a module to
include the logic.
3. Double-click on the module. It will ask for the Include in which this module should be included.
4. Select the Include where we need to include the logic.

5. Enter the logic to update the table with the parameters --> person responsible for making change,
timestamp etc. It is as shown below:-

SAP COMMUNITY NETWORK


2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com


13

Table Creation, Maintenance and Authorization

6. Go to the layout of the screen

SAP COMMUNITY NETWORK


2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com


14

Table Creation, Maintenance and Authorization

7. Once you click on the Layout button the below screen will appear.

8. Enter the text to be displayed as the coloum heading in the output screen.

SAP COMMUNITY NETWORK


2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com


15

Table Creation, Maintenance and Authorization

9. Change the attributes of the fields of table which are required to be non-editable as 'OUTPUT ONLY'.
i.e the fileds LASTCHANGED, CHANGEDATE and CHANGE_TIME.
The Coloumns would automatically be grayed out that would be uneditable in the output screen.

10. Save and Activate the changes.

SAP COMMUNITY NETWORK


2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com


16

Table Creation, Maintenance and Authorization

Create Transaction.
1. To create transaction, go to transaction SE93. Enter the transaction name which is to be created.
2. Click on Create.

3. Enter the Short text and the Start Object.


4. Click on

SAP COMMUNITY NETWORK


2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com


17

Table Creation, Maintenance and Authorization

5. Enter the below details and the Click on SAVE

SAP COMMUNITY NETWORK


2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com


18

Table Creation, Maintenance and Authorization

6. Enter the created T-code and the below screen would appear as output.

7. Click on New Entries button to create an entry in the table. Enter the details and then click on SAVE.

8. As soon as you click on the save button the username,Date and Time appears automatically.

SAP COMMUNITY NETWORK


2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com


19

Table Creation, Maintenance and Authorization

9. You can check the same data in the Se16 transaction for the table.

SAP COMMUNITY NETWORK


2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com


20

Table Creation, Maintenance and Authorization

Related Content
http://forums.sdn.sap.com/thread.jspa?messageID=8393949#8393949
http://forums.sdn.sap.com/thread.jspa?messageID=8424845#8424845
http://forums.sdn.sap.com/thread.jspa?messageID=8620547#8620547
For more information, visit the ABAP homepage.

SAP COMMUNITY NETWORK


2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com


21

Table Creation, Maintenance and Authorization

Disclaimer and Liability Notice


This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not
supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade.
SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document,
and anyone using these methods does so at his/her own risk.
SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or
code sample, including any liability resulting from incompatibility between the content within this document and the materials and
services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this
document.

SAP COMMUNITY NETWORK


2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com


22

You might also like