Login
Register
Search
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Forums
Human Capital Management
Lawson S3 HR/Payroll/Benefits
Supervisor History report
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:
314
Members:
0
Total:
314
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
Human Capital Management
Lawson S3 HR/Payroll/Benefits
Supervisor History report
Please
login
to post a reply.
11 Replies
1
Subscribed to this topic
68 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
CherylB
Basic Member
Posts: 5
7/14/2009 3:27 PM
I'm working on a report to show an employees Previous supervisors (Emp Num and name) I am having difficulty finding the data in HRHistory - - I believe I should be using FLD_NBR = 721 but am having problems tying back to an employee. Any suggestions?
John Henley
Posts: 3353
7/14/2009 3:45 PM
Is history tracking enabled on HR10 for the supervisor?
CherylB
Basic Member
Posts: 5
7/14/2009 5:42 PM
Yes History is enabled on HR 10 for the supervisor fields – I have records that seem to be the supervisor history but can’t find how they join back to the employee. The Employee field is 0 for all of the records where the field number is 721
CherylB
Basic Member
Posts: 5
7/14/2009 5:45 PM
Yes History is enabled on HR 10 for the supervisor fields – I have records that seem to be the supervisor history but can’t find how they join back to the employee. The Employee field is 0 for all of the records where the field number is 721
Attachments
~WRD000.jpg
Ragu Raghavan
Veteran Member
Posts: 476
7/14/2009 6:15 PM
Doens't fld-nbr 18 give you what you need ? company + employee + fld_nbr = 18 ?
Standard Input Line:1 Pct:0%
File - padict.
FldNbr ItemName
1 Employee
2 Name - Last
3 Name - First
4 Name - Middle Init
5 Address Line 1
6 Address Line 2
7 City
8 State or Prov
9 Postal Code
10 Country
11 Telephone - Work
12 Telephone - Work Ext
13 Telephone - Home
14 Process Level
15 Department
16 User Level
17 Location
18 Supervisor
19 Job Code
20 Status
John Henley
Posts: 3353
7/14/2009 7:15 PM
Fld_Nbr 18 is what you need, which is the SUPERVISOR code for the employee.
Fld_Nbr 721 is the employee associated with the SUPERVISOR code.
So, as an example:
EMPLOYEE 2 has SUPERVISOR code CEO.
SUPERVISOR CEO is assigned to EMPLOYEE 1.
In other words, EMPLOYEE 2 works for EMPLOYEE 1.
EMPLOYEE 1 SUPERVISES EMPLOYEE 2.
HRHISTORY records are stored for the EMPLOYEE,
so you would see a record for EMPLOYEE 2 with Fld_Nbr 18 and A_VALUE = 'CEO'
CherylB
Basic Member
Posts: 5
7/14/2009 8:19 PM
What I'm Looking for is something like this:
Employee1
- current Supervisor - 10001 John
- previous Supervisor - 10002 Joe
- previous Supervisor - 10003 Kate
if using the Supervisor Code History from Field 18 how would I get to the actual employee who was in the Supervisor code for a point in time? - I wouldn't want the person who is currently in the supervisor code - does that make any sense?
Thanks For your Help!
Ragu Raghavan
Veteran Member
Posts: 476
7/14/2009 10:33 PM
This is how I would go about in 4GL:
Employee 1
- use current supervisor from HR11 - lookup HRSUPER to get HSU.employee, HSU.Name
- walk thru hrhistory for fld_nbr 18, descending order of Beg_date
----relate HRHISTORY.a_value to HRSUPER.code
---------- relate HRSHUPER.obj_id to HRHISTORY.obj_id, where type = S and fld_nbr = 721 and beg_date is not later than one in fld_nbr 18
---------------------relate HRHISTORY.n_value to EMPLOYEE.employee to get Emp# and Name
MichelleW
Basic Member
Posts: 20
7/20/2009 1:46 PM
CherylB-
Did you get this to work for you? I have not had any luck in pulling any history other than the current employee attached to a supervisor code. I run monthly lists and have to refer to them to see who populated a supervisor code before the current employee assigned to the code.
iramesh
New Member
Posts: 1
7/20/2009 3:15 PM
select
EE.EMPLOYEE
, EE.NICK_NAME
, EE.LAST_NAME
, EE2.NICK_NAME AS SUPERFIRST
, EE2.LAST_NAME AS SUPERLAST
, EE3.NICK_NAME AS INSPRFIRST
, EE3.LAST_NAME AS INSPRLAST
from EMPLOYEE as EE
LEFT JOIN EMPLOYEE EE2 ON EE.SUPERVISOR=EE2.POSITION
LEFT JOIN EMPLOYEE EE3 ON EE.SUPERVISOR_IND=EE3.POSITION
where
EE.emp_status<'TA'
and
EE2.emp_status<'TA'
and
EE3.emp_status<'TA'
John Henley
Posts: 3353
7/20/2009 3:17 PM
Separate and apart from the employee-related data stored in HRHISTORY, the HRHISTORY table also records the fact that the supervisor record itself was changed via HR07, and when/who changed it, but ironically does not record what data changed on the supervisor record (i.e. who the employee is that is filling that supervisor slot).
CherylB
Basic Member
Posts: 5
7/20/2009 4:43 PM
Below is the Access Query I came up with from Ragu's reply - I still don't think I'm getting all the expected results maybe because of records missing from HRHistory or maybe something is incorerct in the query...- I haven't had a chance look at it again and do a data Audit on the results -
SELECT HRHISTORY.EMPLOYEE, employee_1.FIRST_NAME, employee_1.LAST_NAME, HRHISTORY.FLD_NBR, HRHISTORY.BEG_DATE, HRHISTORY.N_VALUE, HRHISTORY.A_VALUE, employee_1.EMP_STATUS, HRHISTORY_1.FLD_NBR, HRHISTORY_1.DATA_TYPE, HRHISTORY_1.BEG_DATE, HRHISTORY_1.N_VALUE, employee.NICK_NAME AS SupName, employee.LAST_NAME AS SupLastName
FROM employee AS employee_1 INNER JOIN (((HRHISTORY INNER JOIN dbo_HRSUPER ON HRHISTORY.A_VALUE = dbo_HRSUPER.CODE) INNER JOIN HRHISTORY AS HRHISTORY_1 ON dbo_HRSUPER.OBJ_ID = HRHISTORY_1.OBJ_ID) INNER JOIN employee ON HRHISTORY_1.N_VALUE = employee.EMPLOYEE) ON (employee_1.EMPLOYEE = HRHISTORY.EMPLOYEE) AND (employee_1.COMPANY = HRHISTORY.COMPANY)
WHERE (((HRHISTORY.FLD_NBR)=18) AND ((employee_1.EMP_STATUS)<"L3") AND ((HRHISTORY_1.FLD_NBR)=721) AND ((HRHISTORY_1.DATA_TYPE)="S") AND ((HRHISTORY_1.BEG_DATE)>[HRHISTORY].[BEG_DATE]))
ORDER BY HRHISTORY.EMPLOYEE, HRHISTORY.BEG_DATE DESC;
Please
login
to post a reply.