‎2011 May 02 7:15 AM
We have added some custom fields in table HRP5102 which is getting updated from this function module HRRCF_MDL_REG_NAMED_USR_CREATE.
I have created the enhancement implementation for this but that is not working .
if ( lv_is_consistent eq 'X' ).
move record-lastname to ls_centraldataperson-lastname.
move record-firstname to ls_centraldataperson-firstname.
move record-middlename to ls_centraldataperson-middlename.
Setting the default correspondance language
move sy-langu to ls_centraldataperson-correspondlanguage.
I have to add my codes under this IF condition .
so can any body sugget me how i can do this.
‎2011 May 03 2:04 AM
Hi,
The only implicit enhancement options for this function module are (as usual) at the very top and the very bottom.
I don't think you will be able to use these, if your goal is to update custom fields in ls_centraldataperson before the 'register' method is called.
The 'top' enhancement is too early (because ls_centraldataperson is not yet declared), and the 'bottom' enhancement is too late (because 'register' has already been called).
So, as far as I can tell, it seems you will need a repair!
regards
Paul
‎2011 May 02 4:17 PM
HI Divesh,
Try to keep a debug point and check whether it is triggering or not.
Regards,
Madhu.
‎2011 May 03 2:04 AM
Hi,
The only implicit enhancement options for this function module are (as usual) at the very top and the very bottom.
I don't think you will be able to use these, if your goal is to update custom fields in ls_centraldataperson before the 'register' method is called.
The 'top' enhancement is too early (because ls_centraldataperson is not yet declared), and the 'bottom' enhancement is too late (because 'register' has already been called).
So, as far as I can tell, it seems you will need a repair!
regards
Paul