Skip to Content
0
Former Member
Aug 10, 2010 at 08:14 PM

Duplicate records with HR_INFOTYPE_OPERATION

49 Views

Hi All,

I am facing a peculiar issue with FM - HR_INFOTYPE_OPERATION while trying to insert records to IT 2001.

For salaried employees, this works well and as expected.

For hourly EE, when I enter say 3 hours time off for absence type- SICK (for example), this creates two entries for this absence type on the same day from 8 - 11 am and 11 am - 2 pm.

In general, for any # of hours <= 4 hours, this creates duplicate entries for the absence type chosen.

I am clearing buffers using FM - HR_PSBUFFER_INITIALIZE before and after calling the FM -HR_INFOTYPE_OPERATION. That doesnt help though. I am also clearing all the parameters that I give to the FM -HR_INFOTYPE_OPERATION once its executed.

I have also added -

IF RETURN-NUMBER IS INITIAL.

COMMIT WORK AND WAIT.

ELSE.

ROLLBACK WORK.

EXIT.

ENDIF.

Please let me know if you have faced this issue before.

Thanks in advance for your help! Liz