Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to deactivate overwrite exit of a class method

Former Member
0 Kudos

Hello all,

Need help on how to deactivate the overwrite exit of a class method so that the original method only will get executed.

I don't want to delete the exit as I will need it again.

THanks in advance

Best regards,

Karthik

2 REPLIES 2

madhu_vadlamani
Active Contributor
0 Kudos

Hi,

Can you try by creating a switch

Former Member
0 Kudos

Hello Karthik,

Check the package of the Overwrite Exit. It is probably associated to a switch that is switched on.
If there is no switch assigned to the package, this is why it is always on

Then you have no other choice to create a business function with a switch (TA SFW2, SFW1).

If your package becomes a switchable package, you may have to revised what is included in this package, since all type of 'extensions' will be then switchable.
This means table appends, Domain fixed value appends, View appends, Extension indexes, switch BC sets, etc. These are repository objects that are switchable through their packages, as well as Enhancement Implementations, such as Overwrite Methods.

If you create Business function will most probably need to make it reversible (see Properties Tab in TA SFW2). This will allow you to switch it on and off for testing purposes, but be careful, once the switched-on Business function reaches production system, it is no longer possible to switch it off.

Usually, business functions can be made reversible if there is no possibility of data loss when they are switched off. This implies that physical tables do not contain switchable appends.

Switch Framework - SAP Library

Regards,

Pascale Boyer
SAP SFW IMS Support