08-08-2008 12:04 PM
Hi all!
I have been searching for an answer. I have yet to find anything.
Anyway here's my question:
I am using an SAP provided enhancement point. (I think)
It looks like this in the code:
ENHANCEMENT-POINT me_print_po_01 SPOTS es_saplmedruck.
$$-Start: ME_PRINT_PO_01----
$$
ENHANCEMENT 16 ISAUTO_SCH_EMM_SAPLMEDRUCK.
I double click on the 16 and entered my code. Then I looked at the properties and found the switch AM_SCH_MM was off.
So I created a business function via sfw2 included the switch AM_SCH_MM and activated the business function. Since I've been reading the forum. I activated my new business function in sfw5 as well.
I put my program into debug. It is still skipping over the enhancement. I'm sure I've missed a step somewhere as we are just implmenting from 4.5C.
Does anyone know why this isn't working? Or simply how to activate an SAP supplied enhancement. I've been reading on creating a custom enhacement and using a BADI. Do I have to do the same thing for the SAP supplied one?
Thank you,
Michelle
08-22-2008 10:15 AM
Hi Michelle,
I dont think you should change the original enhancement implementation. What I could understand from what you have written is that you are changing the original SAP standard implementation. Make a new implemention and try it.
Thanks ,
Aditya.
08-22-2008 10:15 AM
Hi Michelle,
I dont think you should change the original enhancement implementation. What I could understand from what you have written is that you are changing the original SAP standard implementation. Make a new implemention and try it.
Thanks ,
Aditya.
08-22-2008 12:59 PM
That was exactly what was going on. I created my own, and it worked!
Thank you,
Michelle
09-02-2008 4:35 PM
Hi Michelle
Would you please let me know what you did to resolve your problem above
09-02-2008 4:51 PM
Sure.
I went into the SAP code. Then I used the menu path:
Function Module -> Enhanceme source code
-OR-
Program -> Enhance.
I determined where in the source code that I wanted my code to be at then I right clicked.
Enhancement Implementation -> Create
Entered the name and text, package.
Selected the implementation.
Entered my code.
Activated the enhancement or Ctrl-F3.
09-02-2008 4:52 PM
Also I found the eLearning on enhancement points on SDN very useful.
09-02-2008 5:25 PM
One more thing to add. If you can not find an explicit point. (Enhancement or Enhancement spot) I had that problem. I didn't want to use the SAP spot because it wasn't turned on. Then use the implicit enhancement. Once you are in the enhancement view of the workbench, then find the implicit enhancement. To find an implicit enhancement the menu path is:
Edit -> Enhancement Operations -> Show implicit enhancement options
Then you can create the enhancement as detailed. (Right click, create enhancement...)