on 08-10-2010 9:14 PM
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
I don't think it is an issue with the function call. Have you tried the same scenario in PA30?
~Suresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
85 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.