Monday, April 8, 2013

0 Events in Table Maintenance Generator ( TMG Events )


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

Go to Table Maintenance Generator: 

Enter TMG Authorization Group , Function Group and Maintenance Screens Data

Click On Create

Click On Save

Go to Menu bar Environment ------->Modification---->Events


Following screen is displayed.

Click On New Entries


Click on F4. Following entries are displayed: 

Here you can observe that there are different types of TMG events available like before saving the data, after saving the data, before deleting, after deleting , Creating a new entry and others. Let us go with “Creating a new entry”. 

Click on the button in the Editor column and enter the following code: (Please note that you should write  code in between FORM and ENDFORM).  

Click On Save and Activate
Testing the scenario :
Go to  menu bar Utilities ----> Table Contents -----> Create Entries


Click On New Entries

Enter Material no

 And click on save button  then system generate created on , created by, Last Changed on

Check your entries in the database table. You can observe that the date , user name and Last changed on  are automatically filled-in. See the screenshot below: 



 

SAP-ABAP Copyright © 2011 - |- Template created by Vishnu - |- Powered by Blogger Templates