cancel
Showing results for 
Search instead for 
Did you mean: 

Duplicate records with HR_INFOTYPE_OPERATION

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

suresh_datti
Active Contributor
0 Kudos

I don't think it is an issue with the function call. Have you tried the same scenario in PA30?

~Suresh

Former Member
0 Kudos

Hi Suresh,

thanks for your reply. I have tried PA30 already. That works fine.

One point to note - I am executing this FM using a Batch job. I came to a conclusion today that when I executed the FM within a report directly, only one record gets created. However when its executed using the job , it creates duplicate records. I am still lost!

Your help is appreciated. Thanks, Liz

suresh_datti
Active Contributor
0 Kudos

that is very odd. One easy way out is to go for the normal BDC. I have seen HR_INFOTYPE_OPERATION do some funky stuff & it is for 'internal' use only.. you might find some help in HR_AUPBS_ON_BDC_UPDATE.

~Suresh

Former Member
0 Kudos

Thanks Suresh!

BDC was on my llist next. This is working now

The FM still remains a mystery though!

Thks, Liz

Answers (0)