2009 Jun 22 7:50 PM
Hello,
I have written a condition requirement where I want to add some code, but a field that I need is not available. So I have found the function module SD_COND_DETERMINATION that calls the requirement sub-routine and there happens to be an enhancement implementation right before the call. It is enhancement section SD_COND_DETERMINATION_05, enhancement number 7. I've managed to add some code there and activated it, but during debug, I don't see this code at all. Any ideas of what I'm missing?
Thanks.
Tim
2009 Jun 29 5:09 PM
Hi Tim,
have you changed the existing ENHANCEMENT-IMPLEMENTATION?
ENHANCEMENT-SECTION SD_COND_DETERMINATION_05 SPOTS ES_SAPLV61Z.
bedingung_programm-kvewe = usage.
END-ENHANCEMENT-SECTION.
*$*$-Start: SD_COND_DETERMINATION_05------------------------------------------------------------$*$*
ENHANCEMENT 7 DIMP_GENERAL_SAPLV61Z. "active version
if usage = '4'. "in here???
bedingung_programm-kvewe = 'J'.
else.
bedingung_programm-kvewe = usage.
endif.
ENDENHANCEMENT.
*$*$-End: SD_COND_DETERMINATION_05That would be like a modification, because the ENHANCEMENT 7 is belonging to some industry specific coding (IS DIMP). If you´re not using DIMP, that would explain why your code is not executed: The ENHANCEMENT 7 is bound to a switch DIMP_GENERAL, which would than be in status OFF.
See documentation on switch framework here:
http://help.sap.com/saphelp_erp60_sp/helpdata/en/af/e8b540afc87c2ae10000000a155106/frameset.htm
What you need to do is to create your own ENHANCEMENT IMPLEMENTATION: Go to enhancement mode and right-click on the statement ENHANCEMENT-SECTION -> create implementation.
Hope it helps,
BR,
Sebastian
2009 Jun 29 5:09 PM
Hi Tim,
have you changed the existing ENHANCEMENT-IMPLEMENTATION?
ENHANCEMENT-SECTION SD_COND_DETERMINATION_05 SPOTS ES_SAPLV61Z.
bedingung_programm-kvewe = usage.
END-ENHANCEMENT-SECTION.
*$*$-Start: SD_COND_DETERMINATION_05------------------------------------------------------------$*$*
ENHANCEMENT 7 DIMP_GENERAL_SAPLV61Z. "active version
if usage = '4'. "in here???
bedingung_programm-kvewe = 'J'.
else.
bedingung_programm-kvewe = usage.
endif.
ENDENHANCEMENT.
*$*$-End: SD_COND_DETERMINATION_05That would be like a modification, because the ENHANCEMENT 7 is belonging to some industry specific coding (IS DIMP). If you´re not using DIMP, that would explain why your code is not executed: The ENHANCEMENT 7 is bound to a switch DIMP_GENERAL, which would than be in status OFF.
See documentation on switch framework here:
http://help.sap.com/saphelp_erp60_sp/helpdata/en/af/e8b540afc87c2ae10000000a155106/frameset.htm
What you need to do is to create your own ENHANCEMENT IMPLEMENTATION: Go to enhancement mode and right-click on the statement ENHANCEMENT-SECTION -> create implementation.
Hope it helps,
BR,
Sebastian
2009 Jul 08 3:27 PM