Vous êtes sur la page 1sur 23

Table Maintenance Generator(TMG)

And Events in Table Maintenance.

- Manu Shetty

Table Maintenance Generator (TMG) :


is a tool which is used to customize tables created by end users can be changed as required, such as making an entry to that table, deleting an entry, modifying an existing entry etc.

Table Maintenance generator can be created using transaction SE54 or SE11. We can check the table maintenance dialog in SM30 or SE16.

Reasons to use Table Maintenance Generator


In the production system, end-users will not be having access to transaction codes like SE11 and SE16.

With the help of table maintenance generator, we can edit or create multiple entries.
Various events can be added to the table maintenance generator to maintain the entries.

Prerequisite to Create Table Maintenance Generator for a Custom Table


While creating the table the table, go in tab Delivery and Maintenance. Select the option Display/Maintenance allowed under Data Browser/Table View Maint. as shown below

TMG can also be created on Views.


Views : By defining a view, you can define an application-dependent view
that combines this data distributed on several tables. The data of a view is derived from one or more tables, but not stored physically.

Types of Views
o Projection views : are used to hide fields of a table o Help views : can be used as selection method in search helps. o Maintenance views : permit you to maintain the data distributed on several tables for one application object at one time.

Creation of Table Maintenance Generator for a Custom Table


Steps: 1. Let us take an example of a custom ZTABLE to implement the table maintenance generator and its events.

2. Go to Utilities -> Table Maintenance Generator.

3. The following screen would appear to implement the table maintenance generator.

The following are the options available in the screen.


Table/View: the name of the table or view for which table maintenance
generator has to be implemented. Authorization Group: (Authorization groups for a table/ view can be created using transaction SE54. ) Authorization Object: Authorization objects can be created using transaction SU21. Function group: The function group is the one in which all the maintenance modules of the given table or view are generated. Package: Package here refers to the function group package which is assigned to the table or view. A package can be created in transaction SE21 or SPACKAGE.

Maintenance Type: There are two maintenance types


One step dialog: One step dialogs only have one maintenance screen (overview screen) containing all the fields Two step dialog: Two step dialogs have one additional maintenance screen (single screen) along with overview screen

Maintenance Screen No.: Maintenance screen numbers are the internal number for each maintenance screen.

Recording Routine: It gives the option which recording routine should be used to record the changes to table contents. It can be done automatically and manually. There are two types of recording routines:
Standard routines:

No, or user, recording routine: Compare Flag : indicates whether the maintenance transaction allows the (checked) activation of Business Configuration Sets (BC Sets), and the adjustment.

All the fields are filled according to the above mentioned description. Then click on Create.

The Table Maintenance Generator has been implemented successfully Maintaining the Table Through SM30.
1. Go to SM30, give table name and click on Maintain. 2. The following screen would appear. You can click on New Entries to make the entries to the table.

Modifications in Table Maintenance Generator. There are different types of modifications available in the table maintenance generator. These are as follows: Maintenance screens User Interface Events Source Code

Maintenance Screens:
Maintenance screens can be modified so as to enable or disable any of the fields during table maintenance It can be achieved through following procedure: 1. Go to Environment ->Modifications -> Maintenance Screens

Click on Element List in the screen which appears. The following screen would appear thereafter.

4. The maintenance screen would now appear as follows in transaction SM30. In this Created by is now disabled.

Events
Table maintenance generator is used for handling events. Once table maintenance is implemented for a table, events can be handled. There is a list of predefined list of events in SAP. These events can be implemented using the table maintenance.
Events are used to add custom checks for table maintenance screen generated using the table maintenance generator in SE11. Many validations, checks and functionalities can be performed while maintaining the table entries. These events are triggered when a table/view is maintained through transaction SE16 or SM30.

Events can be implemented as follows:


1. The events can be added in table maintenance generator via Environment -> Modifications -> Events

In the next screen, click on F4 help and the following screen of events would appear.

EVENT 05- Creating a new entry.


This event gets triggered when clicks on New entries entry.

Questions?

Thank you

Vous aimerez peut-être aussi