Announcements
I need to run a history of benefits posted in payroll for health insurance. This is filtered by department. The kicker is that the department is closed and literally 50 employees are now in new departments. When I run a smartlist for the benefits, these employees who were in the department at the time are not showing. I am using Smartlist builder
How do I include and "as of date" to return all people who were in that specific department as of the specific check date?
Thanks for your help!
Hi karlcgray,
While I can’t speak to Smartlist Builder functionality, I can tell you that the information you’re looking for can be pulled from the UPR30300 table.
Here’s an example of a view you could create in SQL (which can be used to create a smart list in GP):
CREATE VIEW [dbo].[Payroll_Benefit_History]
AS
SELECT
EMPLOYID AS EMPLOYEE,
DEPRTMNT AS DEPARTMENT,
PAYROLCD AS BENEFIT,
UPRTRXAM AS BENEFIT_AMOUNT,
CHEKNMBR AS CHECK_NUMBER,
AUCTRLCD AS AUDITTRAILCODE,
CHEKDATE AS CHECK_DATE
FROM UPR30300 WHERE PYRLRTYP = 3
GO
grant select on [Payroll_Benefit_History] TO DYNGRP
This blog talks about how to create a smart list based on a view in Smartlist Designer:
I’m sure it’s possible to do something similar in Smartlist Builder as well. Others who use builder will likely have more advice for you there.
Hope this helps!
André Arnaud de Cal... 291,359 Super User 2024 Season 2
Martin Dráb 230,370 Most Valuable Professional
nmaenpaa 101,156