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: 

Enhancement Implementation editor

Former Member
0 Kudos

When I create an implementation for implicit enhancements, etc., why is the editor so limited?

The way I edit source is do click the Display Code (Source) button from within the implementation.  This leads to a very limited lower-half of the screen editor for the implicit enhancement, with no apparent pretty print options.

Are there alternatives to this, to make the code conform to other code?  I thought of editing the code in another ZPROGRAM and then just cutting and pasting.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

I feel your pain.  I used to use the following

http://www.sapdev.co.uk/programs/custom/zclippretty.htm

Then I started using includes in all enhancements and coding in those includes.  This makes it nice and neat and allows you to use the pretty printer.

8 REPLIES 8

Former Member
0 Kudos

I feel your pain.  I used to use the following

http://www.sapdev.co.uk/programs/custom/zclippretty.htm

Then I started using includes in all enhancements and coding in those includes.  This makes it nice and neat and allows you to use the pretty printer.

0 Kudos

Thank you very much for both of those tips - great!

One followup question, from your experience, if I could.  Within Userexits, is there an advantage to placing an Implict Enhancement (with an INLCUDE to keep it neat), or would it be more efficient to simply place a customer namespace INCLUDE in the userexit, and skip the enhancement?

One of the only things I think an enhancement would add to the userexit is that it could become switchable in the switch framework.  Is that correct?

0 Kudos

That is something I have been pondering the last few weeks.  I used to just modify the user exist (if you are talking about the SD exits) using an include but I recently made the switch to use enhancements for the reason you mentioned.  It looks a bit dd at first (why would you enhance something that is "open" to customer modification) but it does add some nice advantages.

0 Kudos

Thanks, was thinking the same.  Not sure we'll use that functionality, but I suppose it's good to set up for it.

0 Kudos

For painfully slow systems, activation of sales order user exit can take 15 minutes, whereas activation of enhancement would be significantly faster.

0 Kudos

Great point.  I work on such a system.  It is also useful with multiple developers.  I am in the situation now where I need to back out changes that have been sitting in Dev since September.  I need to use the same SD include for an emergency fix so I have to back out the old code then re-implement it.  If the developer would have used includes or even enhancement points it would be a piece of cake (or blueberry pie in my case)..

0 Kudos

Great point.  I work on such a system.  It is also useful with multiple developers.  I am in the situation now where I need to back out changes that have been sitting in Dev since September.  I need to use the same SD include for an emergency fix so I have to back out the old code then re-implement it.  If the developer would have used includes or even enhancement points it would be a piece of cake (or blueberry pie in my case)..

Former Member
0 Kudos

I use regular SE38 New ABAP Editor to write code in implicit enhancement.

Clicking on spiral icon (Shift+F4 Enhance), right-click to show implicit enhancement points, right click again on marked line to create/change implementation.

For pretty printing, I cut tested code to custom report, pretty print and then paste back.

/.