web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Summary report on Employee's Benefits for Code DD, Box 12 of W2

(0) ShareShare
ReportReport
Posted on by

I had a previous report request (https://community.dynamics.com/gp/f/32/t/144559.aspx) that I was able to setup on Employee Wages for a year, but now additional information has been requested to be included.

It is requested that this report also include anything reported on Box 12 (with code DD) of the employees W2. I can see in Great Plains, if I open up an employee and go to the Benefits tab, if I select a Benefit Code with W2 Label DD and click Summary, it will give me a nice breakdown by month/quarter/year.

Any thoughts how I can pull this information out in a SQL query?

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    I think I figured out how to calculate out to match what I see in the Summary window descripted above. Could someone tell me what the "pyrlrtyp = 3" restriction is doing?

    I'll just have to include all payrolcd's that are associated to code DD and that should get me what I want.

    SELECT a.year1,

    (a.MTDWAGES_1+a.MTDWAGES_2+a.MTDWAGES_3+a.MTDWAGES_4+a.MTDWAGES_5+a.MTDWAGES_6+

    a.MTDWAGES_7+a.MTDWAGES_8+a.MTDWAGES_9+a.MTDWAGES_10+a.MTDWAGES_11+a.MTDWAGES_12) as MTDWAGES

    FROM UPR30301 a

    WHERE employid='xxxx'

    AND payrolcd='benefitCodeX'

    AND pyrlrtyp = 3

  • tdcarp730 Profile Picture
    10 on at

    PYRLRTY  refers to the type of payroll transaction.  3 is a benefit.  type 1 is pay codes, type 2 is deductions, type 4 is state tax and type 5 is local taxes.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
mtabor Profile Picture

mtabor 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans