Application Development 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: 

Enhance sorce code in Function module option

Former Member
0 Kudos

Dear Expets ,

Please let me the advantage of the button - enhance source code in the menu bar of the standard function module.

Can i write my own logic there .

I am planning to modify the function module - CK_F_INTERNAL_ACTIVITY_VAL - based on certain condition.

Thanks,

Dev

1 REPLY 1

Former Member
0 Kudos

Hi,

The option mentioned is a part of the enhancement framework provided by SAP to write Implict enhancements

Search for Keyword "Implict enhancements" in SDN and elsewhere to get a brief idea

Using this we can write codes in specific areas of the code as indicated by SAP.

To view these locations -> click on the " enhance source code " button and then go to EDIT->Enhancement Operations -> show Implicit Enhancements ...SAP will highlight the areas where code can be written.

Right Click on the area required->Enhancement Impelemtation -> Create

It asks for a "Enhancement Implementation" as a table control pop-up -> Creata a new one using the "create Icon" and give a suitable name .Your enhancement code will be save under this.

In case you plan to undo the changes,go to the spot created Right Click ->Enhancement Impelemtation -> Undo

Always use the "Where -used list" to analyse the impact of the changes when the function module code is changed and use this "Implict enhancement" only as the last option to edit source code.Implicit options may not always be available for all source codes and at all locations desired.

Hope it helps!

Regards

Byju