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

Function Module - Enhancement!

Former Member
0 Likes
3,534

Hi,

I just want to include one line of code in Standard Function Module. I’m Trying Enhancement option in Function Module but not succeeded (I’m 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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,460

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.

10 REPLIES 10
Read only

Former Member
0 Likes
2,460

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.

Read only

0 Likes
2,460

when i followed the step, i received the message 'The Enhancement Object ENHS cannot be read'.

...Naddy

Read only

0 Likes
2,460

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

Read only

0 Likes
2,460

yes, i got the pop up and your steps is works in other system.

My issue with some thing to do with BASIS.

...nAdDy

Read only

0 Likes
2,460

Cool.. then if you have got the solution, then please close this thread and reward the post if found helpful.

G@urav.

Read only

0 Likes
2,460

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

Read only

0 Likes
2,460

what is that error?

can you put details of that error here..

G@urav.

Read only

Former Member
0 Likes
2,461

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.

Read only

0 Likes
2,460

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

Read only

Former Member
0 Likes
2,460

Updated support pack...

SAP_BASIS 700 0014 SAPKB70014