Finding Employee 'active' groups during a time period

Sort:
You are not authorized to post a reply.
Author
Messages
oregon
New Member
Posts: 4
New Member
    Hi..
         I am new to Lawson and I have a question that is probably pretty obvious to most Lawson users.
     
    Question: What Lawson database tables do I need to use in order to get a group of ‘Active’  employees during a specific time period.

    Example: The time period might be from 2007 to 2009, and I need all the acitve employees during that time period.
     
     I am having a hard time finding history and period where a group of employees were active.
     
    If anyone could help me out, I would be very appreciative of their time.
     
    Take care…
    John Henley
    Senior Member
    Posts: 3348
    Senior Member
      Oregon, there are several parts to the answer.







      First, historical "as of" data is stored in the HRHISTORY table, which has records for each employee, effective date of the change, and the new field value effective on that date. One of the elements used to store that data is a field number.







      In Lawson HR, each data element has a field number. So the second part of the answer is that it depends on your organization's definition of "active", i.e., is it based on an employee's status, or is it the absence of a term date? Depending on that, you would need to look at a different field stored in HRHISTORY.







      Another aspect of this issue is that the "track history" flag needs to be turned on via HR10 for any fields you want to use for effective date reporting. If the flag is turned on post-implementation, history will only be kept for that field for changes made after the flag is set--Lawson has no way of going back in time and rebuilding it.







      If you converted data into HR as part of your implementation, one of the conversion steps -should- have been the conversion of history--at least for the values current as of the conversion, and also ideally for values prior to the conversion. I have done conversions where we have converted some values such as status codes, pay rates, going back for decades!







      So, once you know which fields to look at in HRHISTORY, the last part of the puzzle is to find the employee's value "as of" a given date.







      That is the basis for how this report works:



      https://www.lawsonguru.co...54096&id=3612826







      It returns employee data "as of" a given date, and you would then use Crystal selection criteria to select whatever (status code, "blank" term date, etc) to include the desired employees.
      Thanks for using the LawsonGuru.com forums!
      John
      oregon
      New Member
      Posts: 4
      New Member
        John... 
         
         Thank you for your time and advice.
        This is a tough one for me, as a 'point in time' report from lawson (to me) was kinda tough.

        My final solution was to use a pay  perid and a check to find a active user. I guess my logic was: 1) If a person has a paycheck, they were active during that period they actually worked. (-14 days from the check date).

        Our HR departments seem to like the report. (crossing my fingers they accept the report).

        But thank you.... I have actually learned alot about Lawson looking at the HRHistory table. Thank you for pointing me in that direction.
        riegerj
        Veteran Member
        Posts: 44
        Veteran Member
          Oregon,
           
          I know I am kind of late on this but I would say be careful using a paycheck as an indicator of a person being active.  They could have been on a leave of absence or their paperwork could have been delayed and maybe they didn't get into the system in time so they were paid a period late.  Maybe you don't have these issues at your organization, but it's something to watch for.  The HRHISTORY on an emp-status or term date is probably a lot safer.  Good luck!

          Jen
          You are not authorized to post a reply.