04-13-2007 10:38 AM
Hi everybody,
I use this function in order to update several infotypes from another infotype (and sometimes, for another employee). But I want only make the modifications in all the infotype or in noone infotype. For this reason I don't commit in the function, then I commit when all results are well done.
The problem is, if you call this function in performs, when you returns and make the commit, no infotype is updated.
can anyone help me?
04-13-2007 10:47 AM
I think try keeping the commit after the perform and
also keep nocommit = 'X' in hr_infotype_operation
04-13-2007 10:47 AM
>> (and sometimes, for another employee).
Interesting.. did you try HR_MAINTAIN_MASTERDATA instead.. you can bundle all the infotypes in one perform & probably use the LUW_MODE parameter to COMMIT all or none... not sure if it would work for 'another employee' though..
~Suresh
04-13-2007 10:57 AM
But the main problem is that when I leave a perform where I did the HR_INFOTYPE_OPERATION with no commit and make after make a commit work, the infotype vales are not updated: ex:
perform call_HR_INFOTYPE_OPERATION.
commit work and wait.
This does not work
04-13-2007 11:15 AM
This is unusal,
most of the times.. it works...
I dont have any idea then I am sorry
04-13-2007 11:18 AM
Hi jaime,
1. commit work concept does not work with this FM, after calling this FM.
(commit work happens,
or does not happen,
based upon the parameter No_Commit passed )
regards,
amit m.
04-13-2007 11:21 AM
R u modifying the Infotypes or creating new records for all the infotypes...
I think It is better you use BDC.. this is wht we do if we have to update many infotypes, jus check your entries using HR_INFOTYPE_OPERATION
and then update the entries using BDC