Would the standard "Register Time" functionality work?
Register Time Field
The User Setup Table
Here you can specify whether the program will register the user's time usage. Place a check mark in the field if you want the program to register time for this user.
The program can use the User Time Register table to register how much time an individual user spends on the companies. When there is a check mark in the Register Time field, the program automatically enters information (about the user ID, date and number of minutes worked) in the User Time Register table each time the user leaves the program. The time is registered in whole minutes, so periods can be rounded up or down by as much as 30 seconds.
Comments
USERID
DATE
TIIME
......
The first codeunit that is runned is cdu 1. On this codunit, you can write code to insert records in the table. (Trigger LoginStart)
Hope this can help you.
Register Time Field
The User Setup Table
Here you can specify whether the program will register the user's time usage. Place a check mark in the field if you want the program to register time for this user.
The program can use the User Time Register table to register how much time an individual user spends on the companies. When there is a check mark in the Register Time field, the program automatically enters information (about the user ID, date and number of minutes worked) in the User Time Register table each time the user leaves the program. The time is registered in whole minutes, so periods can be rounded up or down by as much as 30 seconds.
/Bruno
Bruno
http://blogs.ittoolbox.com/erp/smb