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

Enhancement Framework - Best Practice Guidelines?

Former Member
0 Likes
1,620

Hi Folks

I've searched but can't find any documentation on Best Practice Guidelines for implementing enhancements via the Enhancement Framework in NW7.0. Can anyone help?

What I'm specifically looking for are naming conventions for the different onject types (Enhancement Implementations, Composite Enhancement Implementations, etc.) and suggestions on how to structure the implementations (how should we group Enhancement Points within Enhancement Implementations and Enhancement Implementations within Composite Enhancement Implementations).

Please Note: I'm not looking for documentation on how to create enhancements - I can find that in SAP Help... I'm looking for the best way to set things up to allow for easy identification and maintenance.

Many Thanks!

Glen

Hi Folks

I've searched but can't find any documentation on Best Practice Guidelines for implementing enhancements via the Enhancement Framework in NW7.0. Can anyone help?

What I'm specifically looking for are naming conventions for the different onject types (Enhancement Implementations, Composite Enhancement Implementations, etc.) and suggestions on how to structure the implementations (how should we group Enhancement Points within Enhancement Implementations and Enhancement Implementations within Composite Enhancement Implementations).

Please Note: I'm not looking for documentation on how to create enhancements - I can find that in SAP Help... I'm looking for the best way to set things up to allow for easy identification and maintenance.

Many Thanks!

Glen

1 REPLY 1
Read only

Former Member
0 Likes
781

Hello ,

Implicit enhancement points - Changing standard SAP code using the implict enhamcement code points

Implicit enhancement points are basically points within ABAP code where an enhancement point is implied, and in which case can be created. Examples of implicit enhancement points are at the beginning and end of FORMu2019s, at the end of a program, include or function module etc. Below is a step by step demonstration of how to create and implicit enhancement point.

Step 1 - Activate the enhancement functionality

Within SE80 open up the program/include you want to enhance and click on the enhancement button (show below)

Step 2 - Show implict enhancement points

Goto menu 'edit->Enhamcement Operations->Show Implicit Enhancement Options' to display implicit enhancement points within the ABAP code

Step 3 - Enhancement points with the code

Once you have done this you will be able to see all the implicit enhancement points available within you code, these are denoted by the line of quotation marks and the black arrow at the start. In this example there are enhancement points at the start and end of each form and one at the very end of the include.

Step 4 - Create an implicit enhamcement point

Inorder to implement an implicit enhancement point simply right click on the required enhamcement point and select 'Enhancement Implementation->create'.

Step 5 - Enhamcement point type

Next click on the code button to create a code implementation

Step 6 - Enhancement point created

The enhamcement point will now have been created in the appropriate place. Denoted by the ENHANCEMENT...ENDENHANCEMENT

Step 7 - Enter code into enhancement

You can now enter your own code into the enhancement point!

Step 8 - Activate the enhancement point

Click the 'Activate Enhancements' button to activate it.

Step 9 - Turn enhancement mode off

Now click the 'Active <-> inactive' button to turn enhancement mode off and return to standard SE80,

For User Exit's

goto to tcode->status->program name->double click on that,

then goto to-> attribute take the package name and

Goto SMOD tcode ->Utilities->give the package name and F8

then a list of exits will display for that tcode as well as that package.

u can check the table MODSAP

u can check the table MODACT

For BADI's,

1)goto to tcode SE24 give the CL_EXITHANDLER and display and then double click on the GET_INSTANCE

keep Break point at this location 'call method cl_exithandler=>get_class_name_by_interface'

then the tcode it will trigger there and we can debugg there we can find badi'for that tcode and then remove the break point.

2)Goto to tcode->status->program name->double click on that program will display's

then press crtl+F then cl_exithandler

Thank U,

Santhosh