Table Maintenance TMG and Events in TM

Embed Size (px)

Citation preview

  • 8/3/2019 Table Maintenance TMG and Events in TM

    1/23

    Table Maintenance

    Generator(TMG)

    And Events in Table Maintenance.

    - Manu Shetty

  • 8/3/2019 Table Maintenance TMG and Events in TM

    2/23

    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.

  • 8/3/2019 Table Maintenance TMG and Events in TM

    3/23

    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.

  • 8/3/2019 Table Maintenance TMG and Events in TM

    4/23

    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

  • 8/3/2019 Table Maintenance TMG and Events in TM

    5/23

    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 storedphysically.

    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.

  • 8/3/2019 Table Maintenance TMG and Events in TM

    6/23

    Creation of Table Maintenance Generator for a Custom TableSteps:

    1. Let us take an example of a custom ZTABLE to implement the table

    maintenance generator and its events.

  • 8/3/2019 Table Maintenance TMG and Events in TM

    7/23

    2. Go to Utilities -> Table Maintenance Generator.

  • 8/3/2019 Table Maintenance TMG and Events in TM

    8/23

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

    generator.

  • 8/3/2019 Table Maintenance TMG and Events in TM

    9/23

    The following are the options available in the screen.

    Table/View: the name of the table or view for which table maintenancegenerator 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 isassigned to the table or view. A package can be created in transaction

    SE21 or SPACKAGE.

  • 8/3/2019 Table Maintenance TMG and Events in TM

    10/23

    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 maintenancescreen (single screen) along with overview screen

    Maintenance Screen No.: Maintenance screen numbers are

    the internal number for each maintenance screen.

  • 8/3/2019 Table Maintenance TMG and Events in TM

    11/23

    Recording Routine: It gives the option which recording routine

    should be used to record the changes to table contents. It canbe 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.

  • 8/3/2019 Table Maintenance TMG and Events in TM

    12/23

    All the fields are filled according to the above mentioned

    description. Then click on Create.

  • 8/3/2019 Table Maintenance TMG and Events in TM

    13/23

    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 thetable.

  • 8/3/2019 Table Maintenance TMG and Events in TM

    14/23

    Modifications in Table Maintenance Generator.

    There are different types of modifications available in the tablemaintenance generator. These are as follows:

    Maintenance screens

    User Interface

    Events

    Source Code

  • 8/3/2019 Table Maintenance TMG and Events in TM

    15/23

    Maintenance Screens:

    Maintenance screens can be modified so as to enable or disable any of thefields during table maintenance

    It can be achieved through following procedure:

    1. Go to Environment ->Modifications -> Maintenance Screens

  • 8/3/2019 Table Maintenance TMG and Events in TM

    16/23

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

    would appear thereafter.

  • 8/3/2019 Table Maintenance TMG and Events in TM

    17/23

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

  • 8/3/2019 Table Maintenance TMG and Events in TM

    18/23

    Events

    Table maintenance generator is used for handling events. Once tablemaintenance 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 screengenerated 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.

  • 8/3/2019 Table Maintenance TMG and Events in TM

    19/23

    Events can be implemented as follows:

    1. The events can be added in table maintenance generator via

    Environment -> Modifications -> Events

  • 8/3/2019 Table Maintenance TMG and Events in TM

    20/23

    In the next screen, click on F4 help and

    the following screen of events wouldappear.

  • 8/3/2019 Table Maintenance TMG and Events in TM

    21/23

    EVENT05- Creating a new entry.

    This event gets triggered when clicks on New entries entry.

  • 8/3/2019 Table Maintenance TMG and Events in TM

    22/23

  • 8/3/2019 Table Maintenance TMG and Events in TM

    23/23

    Thank you