Skip to main content

Notifications

Microsoft Dynamics GP forum
Suggested answer

Running Payroll "benefit" history via smartlist builder

Posted on by 10

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! 

  • Suggested answer
    Andrea Melroe Profile Picture
    Andrea Melroe 3,437 on at
    RE: Running Payroll "benefit" history via smartlist builder

    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:

    Microsoft Dynamics GP SQL Views for SmartList Designer to Enhance Reporting - Microsoft Dynamics GP Community

    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!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,522 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,441 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Product updates

Dynamics 365 release plans