Hi group,
We have the following scenario:
- On 01.01.2014 an employee changes JUPER (in a merge of companies)
- Feature LEAVE and ENTRY have (amongst other) return value JUPER X
- SAP has a standard program for Norwegian pension fund. It should record a leave from old JUPER 31.12.2013 and entry in new JUPER 01.01.2014.
- This does not happen, only the entry is recorded.
I debugged their program and find they call the FM RP_HIRE_FIRE with dates 01.01.1900 and 31.01.2014
The FM returns firedate = 31.12.9999. This explains why there is no leave in old JUPER.
However, when I test FM HR_LEAVING_DATE with the same parameters, it returns 31.12.2013. So if this FM was used, it should give a leave.
My question is: Is there a bug in RP_HIRE_FIRE or should SAP use HR_LEAVING_DATE (and then HR_ENTRY_DATE) instead.
When checking the code, it looks like RP_HIRE_FIRE is just concerned with PA0000 and PA0001, and doesn't consider the features at all.
Regards
Kirsten