2008 Apr 01 1:58 PM
Hi,
I just want to include one line of code in Standard Function Module. Im Trying Enhancement option in Function Module but not succeeded (Im getting short dump after creating Enhancement Implementations, not going edit mode).
Can you please give me the detail step to put one line in the function module through enhancement.
System info - > SAPK-60011INERECRUIT
Regards,
...Naddy
2008 Apr 03 11:39 AM
Hi,
If there is any z include in the standard function module then only it is possible to enhance. double click on the include program. and create it in the same function group. then write code in that.
Reward.
2008 Apr 01 7:20 PM
You can accomplish that using implicit enhancements.
There is a button 'Enhance source code' in the tool bar of Function module builder, click it once.
Then go to Edit-> Enhancement Operations->Show Implicit Enhancement Options.
Go to the very end of source code , right click your mouse and say Enhancement Implementation->Create.
Then you can create Enhancement implementation for the implicit enhancement provided before statement ENDFUNCTION.
G@urav.
2008 Apr 01 7:26 PM
when i followed the step, i received the message 'The Enhancement Object ENHS cannot be read'.
...Naddy
2008 Apr 01 7:38 PM
Did you got a popup box asking to choose type of enhancement, providing options as declaration and Code?
I followed the same steps, and it works...
G@urav
2008 Apr 01 7:43 PM
yes, i got the pop up and your steps is works in other system.
My issue with some thing to do with BASIS.
...nAdDy
2008 Apr 01 7:54 PM
Cool.. then if you have got the solution, then please close this thread and reward the post if found helpful.
G@urav.
2008 Apr 03 8:28 AM
Now we updated Basis and able to go into edit mode.
i have diferent problem now,
Structure 'ls_centraldata_person' type is 'BAPIBUS1006_CENTRAL_PERSON' and it has field 'NICKNAME'.
Structure 'personal_data' type is 'RCF_S_MDL_CAND_PERSONAL_DATA' and included 'ZNICKNAME' through append structure.
If i include one line 'move ls_centraldata_person-nickname to personal_data-znickname' in enhancement area of FM 'HRRCF_MDL_CAND_PERS_RETRIEVE', i'm getting activation error.
any solution?
...Naddy
2008 Apr 03 3:42 PM
what is that error?
can you put details of that error here..
G@urav.
2008 Apr 03 11:39 AM
Hi,
If there is any z include in the standard function module then only it is possible to enhance. double click on the include program. and create it in the same function group. then write code in that.
Reward.
2008 Apr 03 11:54 AM
Hi Kamal,
i've created Z include and put my one line code but still error shows up.
Do let me knoe, if i'm not clear.
can you show me the help.sap.com link for Function module enhancement?
...Naddy
2008 Apr 03 4:33 PM