‎2007 Dec 24 9:49 AM
Hi Experts,
In a custom table i need to create a Last Changed by feild which need to be populated automatically when a new record is added or change the existing record.
‎2007 Dec 24 11:09 AM
Hi Raghvendra,
Are you going to update the Z table through a table maintenance?
If yes, then you have two approaches:
1. Since its a Z table - the table maintenance will be under a Z function group and hence you can create your own PAI module in LOOP~ENDLOOP in PAI section and have the module react to ON INPUT-REQUEST - and update the last changed by field with SY-UNAME
2. Use SAP modification events BEFORE_SAVE
Kind regards,
Aditya
‎2007 Dec 25 7:45 AM
Hi Raghavendra,
If you are updating table through SM30 (Table maintrenace generator ) then you can use events for this purpose.
Refer to this link
‎2007 Dec 26 9:50 AM
if it is a z then u can update it by assigning the field name to sy-ucome inside ur program..........