Professional Documents
Culture Documents
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.
Here you can observe that there are different types of events available like before
saving the data, after saving the data, before deleting, after deleting 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 also code FORM and ENDFORM as well).
Go to SM30 and try creating new entries. Do not enter the values for “Created on”
and “Created by”.
Check your entries in the database table. You can observe that the date and user
name are automatically filled-in. See the screenshot below: