Login
Register
Search
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Forums
Performance Management
Lawson Business Intelligence/Reporting/Crystal
Any issue using PAEMPPOS table to evaluate FTE?
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
Saef
Past 24 Hours:
0
Prev. 24 Hours:
0
Overall:
5226
People Online:
Visitors:
162
Members:
0
Total:
162
Online Now:
New Topics
User Group Announcements
Carolina User Group Meeting
12/20/2024 3:15 PM
Date & Time: February 6, 2025, 8:30am - 4:00pm
S3 Systems Administration
ADFS certificate - new cert
12/3/2024 9:38 PM
The certificates on the windows boxes expired and
Lawson S3 HR/Payroll/Benefits
Post Tax Benefit Plan Table
11/14/2024 9:16 PM
Hi, totally new to Laswon. I have a repor
Lawson S3 Procurement
ED501 Error: Map 850 not supported by /law/c15vda/lawson/test10/edi/bin/laws_out_91
11/12/2024 3:47 PM
Tried runnning ED501 and getting the atathced erro
Lawson S3 HR/Payroll/Benefits
Error
11/6/2024 9:54 PM
When I try to enroll a retiree in 72.1 health plan
Infor ERP (Syteline)
Syteline: New Data Maintenance Wizard (Error) Need help
11/1/2024 4:24 PM
Hi, I need help with an error on syteline while us
Dealing with Lawson / Infor
Implementing Lawson v10 with Cerner Surginet, Case Cart Picking, and Quick Adds for the OR
10/29/2024 4:20 PM
Hi Everyone, I am wondering if there is any org
Lawson S3 HR/Payroll/Benefits
Canada Tax Calculation (Federal and Provincial) Issue
10/23/2024 5:00 AM
Initially, we had problem with CPP2 calculation is
Lawson S3 HR/Payroll/Benefits
CA Section 125 401k Plan
10/22/2024 10:13 PM
Does anyone have any recommendations on how to fac
S3 Systems Administration
Running AC120 deleted records from ACMASTER table
10/22/2024 3:40 PM
We recently ran the AC120 as normal and somehow it
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3291
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1372
Roger French
1315
mark.cook
1244
Forums
Filtered Topics
Unanswered
Unresolved
Announcements
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
Performance Management
Lawson Business Intelligence/Reporting/Crystal
Any issue using PAEMPPOS table to evaluate FTE?
Please
login
to post a reply.
4 Replies
0
Subscribed to this topic
22 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
Sarah
Advanced Member
Posts: 33
9/14/2012 9:21 AM
Hello. I posted this on another board but realized this may be the better place for this question.
I am testing a new eligibility file that will be going to a vendor. We are required to send current employees who are eligible, employees who were eligible but are now ineligible because of a status change (old FTE>=.40 and newFTE<.40), or they termed in our system. The ineligible employees only need to pass on the file once.
Below is the criteria in a crystal report I put together (EMPLOYEE table has an outer join with PAEMPPOS so you can get the previous FTE on PAEMPPOS) to test the file. Our programmer is using PERSACTHST and is looking at reason codes to determine when an employee has lost eligibility and action code to determine when to send terms. The issue with this is:
1. They are missing employees who are keyed with a different reason code than what's hard coded and their FTE really did change;
2. They are showing employees on the file that had an FTE change BUT they were never eligible in the first place. EX: oldFTE .30 and newFTE .10.
I asked about using PAEMPPOS to evaluate this and all I get from any of the programmers is, "We don't write eligibility files that way. We've never done it that way." Okay, is there a reason why we haven't done it this way because it seems pretty accurate so far.
Eligible employees
{EMPLOYEE.EMP_STATUS}in["A","L"]AND
{EMPLOYEE.FTE_TOTAL}>=.40 OR
Employees who have lost eligibility in the past 7 days due to status change
{PAEMPPOS.DATE_STAMP}IN {?Date_Report}TO {?Date_Report}-6 AND
{PAEMPPOS.FTE} >= 0.4 and
{EMPLOYEE.FTE_TOTAL}< 0.4 and
{EMPLOYEE.FTE_TOTAL}<>{PAEMPPOS.FTE} OR
Employees who have termed in the last 7 days
{EMPLOYEE.EMP_STATUS} IN ["U","TP"] and
{EMPLOYEE.NBR_FTE} >=.40 and
{PAEMPPOS.DATE_STAMP} IN {?Date_Report}TO {?Date_Report}-6
Can anyone give me some good reasons why we wouldn't want to evaluate off of FTE in the PAEMPPOS table?
Thank you,
Sarah
Dave Curtis
Veteran Member
Posts: 136
9/14/2012 10:47 AM
Do you use multiple positions in Lawson?
If you do; Consider the position level into your criteria. If you have multiple positions - do changes to non-primary positions need to be picked up in your report? If not, make sure you are looking at POS_LEVEL = 1 only.
Your programer may not be using SQL, they may be using 4GL or something else to pull the eligibility file, so it may make some difference, but if you can create the SQL to pull it, your programmer should also be able to pull it in whatever manner they are using.
I am not an SQL wiz, or a programmer, but I have done something similar to what you are looking to do. If I were to create a report like you are trying to create, I would probably do it using an SQL command in the Crystal report - something like this would do what you want;
-- The first section will find the changes in FTE based on the PAEMPPOS table
-- The second section will use a union to pull in the people who have terminated
SELECT company
,employee
,effect_date
,date_stamp
,TO_CHAR(fte,'9.999999') as new_value
-- need to change the field type to string for the union to work
,TO_CHAR(previous_fte,'9.999999') as prev_value
-- need to change the field type to string for the union to work
,'FTE Change' as type_of_change
FROM (SELECT company
,employee
,position
,pos_level
,fte
,effect_date
,end_date
,job_code
,process_level
,department
,pay_rate
,date_stamp
,LAG(fte,1) OVER (PARTITION BY employee
ORDER BY employee
,effect_date
,date_stamp
,time_stamp) as previous_fte
FROM (SELECT * FROM lawson.paemppos WHERE pos_level = 1))
WHERE date_stamp between SYSDATE -6 and SYSDATE
-- You can replace SYSDATE with Crystal date parameter fields if you want to control the date parameter
AND (previous_fte >=.40 and fte <.40)
AND end_date = to_date('01/01/1700','mm/dd/yyyy')
-- The second section finds the terms for employees with FTE that would have made them eligible
-- This pulls terms based on the HRHISTORY table, looking for term status codes
UNION ALL
SELECT ch.company
,ch.employee
,ch.effect_date
,ch.date_stamp
,ch.new_value
,ch.prev_value
,ch.type_of_change
FROM (SELECT company
,employee
,beg_date as effect_date
,date_stamp
,TRIM(a_value) as new_value
,TRIM(LAG(a_value,1) OVER (PARTITION BY employee
ORDER BY employee
,beg_date
,date_stamp
,seq_nbr)) as prev_value
,'Term' as type_of_change
FROM lawson.hrhistory
WHERE fld_nbr = 20
-- fld_nbr 20 is the field for emp_status
ORDER BY employee
,beg_date desc
,date_stamp desc
,seq_nbr desc) ch
,(SELECT company, employee FROM lawson.employee
WHERE nbr_fte >=.40) e
WHERE date_stamp Between SYSDATE - 6 and SYSDATE
-- You can replace SYSDATE with Crystal date parameter fields if you want to control the date parameter
AND (new_value IN ('TV','TI','TD','RE') and prev_value NOT IN ('TV','TI','TD','RE'))
-- To capture your terms; Replace the above status codes with your own term status codes
AND (ch.company = e.company and ch.employee = e.employee)
Paul Berkowitz
Basic Member
Posts: 14
9/19/2012 10:59 AM
Sarah,
Like Dave, I had to do something similair only looking at fte. The only reason I did not use paemppos fte is that our benefit plans are based on total fte. Example is that posistion 1 is .4 and postion 2 is .6 the toal fte makes the employee eligible. If I looked only at the first postion the employee would be missed on the interface.
The code below only looks for fte changes between HRHISTORY and the Employee table.
with
FTE_changes As
(select b.employee,
b.fld_nbr,
--b.n_value,
b.beg_date,
B.DATE_STAMP,
lead(B.n_value,1) Over (Partition By b.Employee Order By B.date_stamp desc)previosfte
from
lawson9.hrhistory b
where b.company =1
--and b.employee = 56981
--fld _nbr 728 - fte_total in the history file
and b.fld_nbr =728)
select a.employee,a.last_name,a.first_name, a.fte_total,fte_changes.previosfte,fte_changes.date_stamp
--CASE WHEN fte_changes.previosfte <.4 AND A.FTE_TOTAL >=.40
from lawson9.employee a,
FTE_changes
where fte_changes.employee = a.employee
and a.company =1
and fte_changes.date_stamp >= '01-sep-2012'
--AND A.EMPLOYEE IN (203133,62997)
AND fte_changes.previosfte <.4 AND A.FTE_TOTAL >=.40
regards
Paul
Sarah
Advanced Member
Posts: 33
10/18/2012 12:01 PM
I wanted to just post a great big THANK YOU!!! Our programmers kept telling me this was "impossible" even though I could create it out of crystal reports. This week, with the support of my awesome boss, we sat down with our IS department and with the aid of your criteria (I copied and pasted to IS) they were able to alter how our file is generated so it's now more accurate.
Thank you, Thank you, Thank you!
Sarah
Paul Berkowitz
Basic Member
Posts: 14
10/18/2012 2:24 PM
Your welcome, any time you have a question let me know.
Paul
Please
login
to post a reply.