|
|
This website is not affiliated with, sponsored by, or approved by SAP AG.
Development (ABAP Development WorkBench, ABAP/4 programming)
Moderators: thx4allthefish, Snowy, Gothmog, YuriT
by dubdec99 » Wed Apr 04, 2012 9:41 am
Hi,
We have recently upgraded to ECC 6.0 from 4.7 and are beginning to get a first look at the wonderful world of explicit/implicit enhancements...
I have read numerous blogs and articles (SDN, OSS note 1257033, Thomas Weiss blogs etc etc) on the subject of explicit enhancements but I'm finding that these throw up more questions than they answer....
So my question is this: Is it possible, in relation to a SAP standard program which already has existing enhancement implementations, to create your own enhancemnt spot and implementation and put it wherever you wish within the standard prgoram?
This came about because we are looking at trying to modify the behaviour of the selection screen of SDBILLDL in AT SELECTION-SCREEN OUTPUT - there are no existing enhancement implementations (explicit or implicit) at this event. OSS Note 1257033 seems to imply that it is possible but we haven't yet figured out how....any and all help most welcome
Thanks, Dub
-
dubdec99
-
- Posts: 25
- Joined: Fri Jul 07, 2006 6:33 am
- Location: Between a rock and a hard place...
by Gothmog » Wed Apr 04, 2012 9:52 am
You're talking about the method describe below? i) If you cannot find an explicit or an implicit enhancement point, use a modification to create your own explicit enhancement point or an enhancement section. To do this, use your own enhancement spot. Implement your enhancement point. Add the enhancement implementation to one of your switchable packages. After an upgrade or after you import a Support Package, you must first synchronize the modification. The advantage of this is that the enhancement is switchable and can be grouped with your other enhancements.
If so, the relevant part is "use a modification to create your own explicit enhancement point or an enhancement section" - you'll have to get a modification key and modify the standard code to insert your enhancement point/section (for your custom enhancement spot), then implement it.
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67
-
Gothmog
-
- Posts: 1467
- Joined: Wed Sep 12, 2007 4:46 am
- Location: Probably not home
by dubdec99 » Wed Apr 04, 2012 10:06 am
Yeah that's what I tried but it didn't work....
What I did was create a package, then a switch (assigning it to package), then a business function (assiging it to the switch), then the enhancement spot, then the implementation (both assigned to the same package as switch)....then modified the standard code at the desired point
When I tried to debug the enhancement, I couldn't set a breakpoint because the implementation wasn't switched on and for the life of me I couldn't figure out how to switch it on, no matter how much I activated, deactivated, reactivated all related objects...
As there was a rush on the fix, I directly modified the code to get it to QA
We will revisit it now that you have confirmed it is possible - Cheers Gothmog
Regards, Dub
-
dubdec99
-
- Posts: 25
- Joined: Fri Jul 07, 2006 6:33 am
- Location: Between a rock and a hard place...
by dubdec99 » Thu Apr 12, 2012 8:53 am
OK, I revisited the SDBILLDL program, opened the program for modification, inserted an enhancement point and at the same time created an enhancement spot, assigned these to an existing Z package (which has an existing switch assigned to it, and this switch has a business function associated with it), then in enhancement mode, implemented the enhancement, activated all enhancement/switch/business function objects - but it still does not work.
So I tried to debug but the message I keep getting is "Breakpoint not set because enhancement impl. ZEI_SDBILLDL is switched off "
Any ideas/pointers as to where I'm going wrong?
All help appreciated, Dub
-
dubdec99
-
- Posts: 25
- Joined: Fri Jul 07, 2006 6:33 am
- Location: Between a rock and a hard place...
by Gothmog » Thu Apr 12, 2012 9:22 am
You could get rid of the switch - I don't think you have to use one.
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67
-
Gothmog
-
- Posts: 1467
- Joined: Wed Sep 12, 2007 4:46 am
- Location: Probably not home
by dubdec99 » Thu Apr 12, 2012 9:44 am
Gothmog,
It may be the way to go alright, I've looked at the business function through SFW5 but can't activate it.
Thanks for all your help - If I find a solution, I'll post it back here.
Dub
-
dubdec99
-
- Posts: 25
- Joined: Fri Jul 07, 2006 6:33 am
- Location: Between a rock and a hard place...
Return to ABAP
Who is online
Users browsing this forum: No registered users and 13 guests
|
|