Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Table maintenance events

Former Member
0 Likes
908

How to define Table Maintenance Events for Z table. Can anybody help on this.

Regards,

Naseer.

How to define Table Maintenance Events for Z table. Can anybody help on this.

Regards,

Naseer.

5 REPLIES 5
Read only

Former Member
Read only

Former Member
0 Likes
873

Hi Naseer,

There are many events which allow you to change the generated table maintenance dialog at predefined positions...

You can get a clear explanation from the below link:

[http://help.sap.com/saphelp_nw04s/helpdata/en/91/ca9f0ea9d111d1a5690000e82deaaa/content.htm]

Reward if helpful.

Thankyou,

Regards.

Read only

Former Member
0 Likes
873

We have a following custom table which contains the fields “Date on which record was created” and “Name of the person who created the object”. We would like to have these to be filled up with SY-DATUM and SY-UNAME respectively.

Using the events, we can achieve this.

Please refer the following link:

http://abapliveinfo.blogspot.com/2007/12/events-in-table-maintenance-in-sap.html

Read only

Former Member
0 Likes
873

hi,

Write a form routine in table maintanance generator.

1. SE11 > utilities > table maintenance generator

2. environment > modification > event

define the event and form routine to make use of the tigger. in the form routine define an object for the class and call the relevant method.

Or u can do it as:

Table maintenance generator is basically used to do table operations like (insert, delete, modify...).

if you create table maintenance for your table it will build a module pool program, by using you do the above operations.

below is the procedure to create table maintenance generator.

1) Create one function group.

2) after activating your Ztable, choose 'Utilities'----> 'Table maintenance genrator'.

3) then give the authorization group and function group created abobe in the next screen.

4) Then choose the "create" button in your application tool bar, which will creates the module pool program.

5) then create one Tcode by chosing "Transaction with parameters( parameter transaction)".

6) in transaction field give "SM30", select the check box "Skip initial screen".

7) in the below of that screen you can find the "Default values" frame.

😎 there under the "name of screen field" select the "View name' and 'update".

9) in value column against to "view name" give you table name, and against to "Update" put 'X' in capital letters.

save it then you can straight away use this newly created Tcode to maintain your table.

Note:- 1) make the modification while saving the data into your table using this newly generated program to carry out your validation (even though it looks like standard program; no need to enter the access key).

2) if you do any changes to your table and press the activate button automatically the table maintenace generator will be goes off, you need to create this again.

Reward if useful.

thanks and regards

suma sailaja pvn