Application Development and Automation 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: 
Read only

what is business function switch?

suhaskrishna_sondur
Product and Topic Expert
Product and Topic Expert
0 Likes
1,486

Hi,

Can anyone tell me what business function switches are? And also how they are to be checked in the

program (as to whether a business function is switched on or not)? Thanks.

Regards,

Suhas

Hi,

Can anyone tell me what business function switches are? And also how they are to be checked in the

program (as to whether a business function is switched on or not)? Thanks.

Regards,

Suhas

2 REPLIES 2
Read only

former_member156446
Active Contributor
0 Likes
919

Hi check this [link|http://help.sap.com/saphelp_nw70/helpdata/en/de/899442047b0831e10000000a1550b0/content.htm]

Read only

Former Member
0 Likes
919

Hi,

Here are the links which give wealthy info on Enhancement Frame Work(SWITCH).

/people/thomas.weiss/blog/2006/01/24/what-the-new-enhancement-framework-is-for-150-its-basic-structure-and-elements-for-beginners

/people/thomas.weiss/blog/2006/03/15/the-new-enhancement-framework-part-2--what-else-you-need-to-know-before-building-an-enhancement

/people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-series

/people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework

/people/thomas.weiss/blog/2006/05/03/source-code-enhancements--part-5-of-the-series-on-the-new-enhancement-framework

/people/thomas.weiss/blog/2007/12/12/the-three-use-cases-of-the-enhancement-and-switch-framework--part-1

/people/thomas.weiss/blog/2008/01/07/the-three-use-cases-of-the-enhancement-and-switch-framework--part-2

/people/thomas.weiss/blog/2008/01/14/the-three-use-cases-of-the-enhancement-and-switch-framework--part-3

/people/thomas.weiss/blog/2008/01/23/the-three-use-cases-of-the-enhancement-and-switch-framework--part-4-the-many-ways-to-enhance-a-sap-application-with-the-new-framework

/people/thomas.weiss/blog/2008/02/04/the-three-use-cases-of-the-enhancement-and-switch-framework--part-5-the-basics-about-switching

Creating Switch.

1. in SFW1, Once you create your SWITCH and assign your package and Activate it, it shows in Active mode but the SWITCH is not still Active GLOBALLY.

2. To activate it, create a Bussiness Function in SFW2 and assign your SWITCH to this and Activate it.

2.1 Here if you select the Business Function as type ' INDUSTRY ', then again you need to assign this Business Function to Business Function Set in SFW3.

2.1.1 In SFW3, Create a Business Funstion Set, and assign this Business Function to it and Activate it. But your SWICT is still it not active Globally.

2.1.2 Go to SFW5, and Activate your Business Function Set here, then your SWICT is GLOBALLY ACTIVE

2.2 If your Business Function is of type ' Add On ', then there is no need to assign it to any Business Function Set.

2.2.1 Directly, go to SFW5, click on type ' Add Ons ', and after identifing your Business Function, Activate your Business Function here, then your SWITCH is GLOBALLY ACTIVE.

But the final problem is : Once you activate your SWITCH, there is no other way to deactivate your SWICTH.

Enhancement implementations are switchable.

Steps to assign a switch to BADI Implementation:

1) Assign the Enhancement Implementation containing the BADI implementation to a Package/development class.

2)Assign this Package/development class to a switch in transaction SFW1.

3)Make sure the switch you are using has state ON. For this assign this switch to an ACTIVE business function using transaction SFW2. A switch inherits the state of the business function.

Reward Points if answer is useful.

Regards,

Raj.