‎2009 Aug 20 7:59 AM
Dear all,
I'm facing an problem concerning the HR_MAINTAIN_MASTERDATA MF.
I intend to copy one infotype 1 entry with a different begin date.
I've tested the MF in se37 and it works fine. A new IT is created with the correct dates.
But when I call this MF in my Zprogram (with the exact same parameters), nothing happens.
After a few debugs, I've found that the problem comes from the "COMMIT WORK".
When I test the MF in se37, the "COMMIT WORK" runs the following line "PERFORM PUT_INFOTYP_BUFFER ON COMMIT." (which is called few lines upper in PERFORM PUT_INFOTYP_BUFFER_COMMIT). And the PUT_INFOTYP_BUFFER form is the one that write data that will be commited.
In my Zprogram, the "COMMIT WORK" that is in HR_MAINTAIN_MASTERDATA is doing... nothing.
Does somebody has an idea why ?
Is it something about global parameters ?
And is there any workaround ?
Thanks in advance for your help.
Br,
Pierre
‎2012 Nov 06 5:01 PM
Dear Pierre,
We face the same issue with COMMIT WORK inside FM HR_MAINTAIN_MASTERDATA used in a Zprogram : at the COMMIT WORK instruction, employee is unlocked and then, update of other infotypes fail in error. This behaviour is not the same between our development and quality system and we don't understand why, we search for a while and didn't find any solution.
Did you find a solution ? If yes, could you help me please ?
Thanks a lot
Lionel
‎2012 Nov 06 10:30 PM
Hi,
Please check note 1487481.
Also try inserting SET UPDATE TASK LOCAL. before the COMMIT WORK AND WAIT. Maybe there's some V2 Updates that don't commit in time.
Regards,
Andrei