Auditing RQ04 users

 4 Replies
 0 Subscribed to this topic
 1 Subscribed to this forum
Sort:
Author
Messages
TBonney
Veteran Member Send Private Message
Posts: 281
Veteran Member
Has anybody ever audited their RQ04 users in order to determine how many of those users that are set up with an RQ04 record actively create requisitions, either directly through RQ10 or through RSS? Our organization has about 3500 total employees and we have close to 1000 RQ04 records. However, it is believed that many of the existing RQ04 records may be obsolete (and if so, we'd like to get rid of them). Therefore, I have been asked to determine how long it's been since each of these RQ04 requesters has actually generated a requisition. Can anyone provide any insight on how I could go about doing this? I am unsure which tables I could query, etc. Thank you for any ideas you can provide!
Ragu Raghavan
Veteran Member Send Private Message
Posts: 477
Veteran Member
I would start with REQHEADER. A SQL query select distinct(requester) from reqheader will list of all requesters that ever created a requisition. Whoever is not on this list ......
Mark Larochelle
Basic Member Send Private Message
Posts: 9
Basic Member
Basically you can compare the REQUESTER column from REQUESTER table to REQUESTER in the REQHEADER table. The following SQL code will work. Just replace lawsonprd with your own company's schema name: select rq.company, rq.requester from lawsonprd.requester rq where rq.requester not in (select requester from lawsonprd.reqheader rh where rq.requester = rh.requester) This code will tell you which requester has a requester record, and has no requisitions entered.
ridjayc
New Member Send Private Message
Posts: 0
New Member
You can change that SQL slightly to "...where rq.requester = rh.requester and rh.creation_date > getdate() - 365)' This would tell you all requesters that haven't created a requisition in the last year. There is also a status column on the requester table so you can exclude requesters that are already marcked as inactive.
TBonney
Veteran Member Send Private Message
Posts: 281
Veteran Member
Thank you all for this information!!