2015 Jan 13 8:46 PM
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.
2015 Jan 13 8:58 PM
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.
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?
2015 Jan 13 8:58 PM
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.
2015 Jan 15 7:31 PM
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?
2015 Jan 15 7:38 PM
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.
2015 Jan 15 7:42 PM
Thanks, was thinking the same. Not sure we'll use that functionality, but I suppose it's good to set up for it.
2015 Jan 16 8:49 AM
For painfully slow systems, activation of sales order user exit can take 15 minutes, whereas activation of enhancement would be significantly faster.
2015 Jan 16 11:55 AM
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)..
2015 Jan 16 11:56 AM
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)..
2015 Jan 16 8:41 AM
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.
/.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |