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

Enhancing Standard Function Module.

Former Member
0 Likes
1,288

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.

1 ACCEPTED SOLUTION
Read only

paul_bakker2
Active Contributor
564

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

2 REPLIES 2
Read only

madhu_vadlamani
Active Contributor
0 Likes
564

HI Divesh,

Try to keep a debug point and check whether it is triggering or not.

Regards,

Madhu.

Read only

paul_bakker2
Active Contributor
565

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