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

Tracking changes in database tables

Former Member
0 Likes
1,117

Hi,

I have a couple of database tables on which more than 20 people work each day, throughout the day. I have the requirement of tracking each and every change made on any row of the table.

For example, If a user accesses a specific row, and updates, or deletes it, i need to keep a track of the userid of the user who did it.

Is that possible?

3 REPLIES 3
Read only

Former Member
0 Likes
900

USe the Property Log Data Changes in the Tech Setting of the Table. You need to Select the CheckBox provided for this.

Read only

KalC
Active Participant
0 Likes
900

Hi Bharat,

If they are Z tables i.e custom tables then you can incorporate two more fields userid and time. Now goto Table maintanence generator through SE11.Then select Environment->Modification->events. Now in the next screen select F4 for first field to select the event i.e when your code has to be executed.Then give a new form name and click on editor icon. write your code here. When ever a user changes any record his name will be included in user id and sy-uzeit in time field. This way you can track who has changed the record. Other option is activating table changes recording by selecting "LogChanges " check box in technical settings of table.and profile parameter rec/client should also be switched on. Then you can see your table changes in SCU3 transaction. Hope this helps.

Regards,

Kalyan.

Read only

Former Member
0 Likes
900

My tables are present in ECA (ecatt) system. I guess they have turned off logging of the database table changes system wide. I tried with scu3, and no logs are being displayed. The only alternative is the one you have mentioned is it?