Previous Value for a field updated by a Personnel Action

 2 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
Woozy
Veteran Member
Posts: 709
Veteran Member


    Hi All,

    I'm writing a process flow that populates a benefit date based on some specific rules. 

    The flow looks for Personnel Actions of a specific type (REHIRE) that were processed in the previous day, determine the employee's break-in-service (rehire date - term date = break in service), and then populate a Benefit Date field with either the rehire date or a calculated date depending on the break-in-service.

    What I need to do is find out what the TERM-DATE was before the Personnel Action was processed so  I can determine the employee's break in service.

    Any suggestions on how to get this historical value?  My best guess is to query the HRHISTORY table and get the TERM-DATE value for the greatest effective date before the PA - is there an easier/better way?

    Thanks!

     

    Kelly Meade
    J. R. Simplot Company
    Boise, ID
    Shane Jones
    Veteran Member
    Posts: 460
    Veteran Member
      Woozy,

      Did you ever get a solution to this? I have a flow that looks at HR History for the previous position. I was able to get it working by pulling the HRHISTORY.fld-nbr for the field I needed where the beg-date is less than the date I was comparing against. I was concerned that it would grab the wrong history record. (More than one record with a date less than the date I was looking for but it queried in order so I have not had any problems with the process.) If I would have had problems I planned on putting a branch within the query node to look at each history record to compare the dates as it went through the query. (Comparing the dates each time to find the highest dated item.)
      Shane Jones
      Tools: HR, Payroll, Benefits, PFI, Smart Office, BSI, Portal and Self-Service
      Systems: Lawson, Open Hire, Kronos, Crystal Reporting, SumTotal Learning
      ** Teach others to fish...
      KK - Infor
      Veteran Member
      Posts: 61
      Veteran Member
        Hi Kelly,
        Since you have PFI, I would do it using a SQL Query and use ORDER BY and Select MAX.
        This should be the cleanest way to go.

        KK