Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Issue with HR_MAINTAIN_MASTERDATA

Former Member
0 Likes
620

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

2 REPLIES 2
Read only

Former Member
0 Likes
513

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

Read only

former_member184675
Active Participant
0 Likes
513

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