Hi Experts,
I have created one enhancement spot, with two implementations, see the image below. Both implementations are assigned to the same package. When I run the program, only enhancement 1 that is implementation "ZSAC_IMP1" is executed, but I want second implementation to execute and first one to suppress/deactivate, how could I do it, kindly suggest.
Moreover, if only one implementation can be created for an enhancement section, then why does SAP allow us to create more than one implementation, I believe there is some reason behind it, please could anyone share some thoughts on this topic.
![Enhancement section.jpg]()
I have written the same code here:
DATA: iTYPEi.
START-OF-SELECTION.
i = 20.
ENHANCEMENT-SECTION ZSAC_TEST1 SPOTS ZSAC_SPOT1 .
DO iTIMES.
WRITE : 'Hello'.
ENDDO.
END-ENHANCEMENT-SECTION.
*$*$-Start: ZSAC_TEST1--------------------------------------------------------------------------$*$*
ENHANCEMENT1 ZSAC_IMP1. "active version
DO iTIMES.
WRITE : 'sachin'.
ENDDO.
ENDENHANCEMENT.
ENHANCEMENT1 ZSAC_IMP2. "active version
write : '/'.
DO iTIMES.
WRITE : 'sharma'.
ENDDO.
ENDENHANCEMENT.
*$*$-End: ZSAC_TEST1--------------------------------------------------------------------------$*$*
you can copy paste the above code and try.