The main purpose of the Switch Framework is to simplify an ABAP-based system landscape by adopting one or more industry solutions in a standard system. The Switch Framework allows you to externally control the visibility of repository objects or their components by means of switches.
A switch is a repository object that controls the visibility of other repository objects.A business function is a self-contained function from a business perspective and consists of a set of switchesA business function set corresponds to an industry solution and is a group of business functions
Switch Framework Components
It’s possible to have child-parent relationships between the main components of the Switch Framework. Not only can you assign switches to business functions and business functions to business function sets, you also can assign business function sets to business functions and switches to business functions. Business function sets can be nested and can have superordinate and subordinate business function sets.
Switch
A switch is the technical level of switching objects on and off. You use a switch to control the behaviour of the objects assigned to it.
Here we discuss about the creation of switches. Starting with Tcode SFW1, where we will create a new switch. In the ‘Package’ tab, we can add our package name. Here I have added my package ‘ZSWF_NEW’, where I will be saving the enhancements which I add later. Save and activate the switch.
Business Function
Next, we need to create a Business Function via the Tcode SFW2.
A Business Function is a a group/set of switches.
A business function is a building block of a business function set.
From a business perspective, it represents a self-contained function that you can switch on. From a technical point of view, it is a set of switches that assign repository objects to the business function. Business functions are switched on at a system level.
A switch controls the visibility or run time behavior of different repository objects assigned to it. A switch can have 3 states as on, off & standby.
ON- The objects behave like non switchable objects.OFF- The system behaves as these objects do not exists.STAND BY- All dictionary objects and all static code enhancements like enhancement point point & section (STATIC) are switched on but other objects are switched off.
When you switch on a business function, all switches assigned to it are switched to ON or STANDBY, respectively, depending on the definition of the business function.
The business functions can be reversible and non-reversible. Only reversible business functions can be switched off.
The following types of business functions are available:
Industry Business Function: always needs a business function set to be attached to Enterprise Business Function: independent of business function sets Enterprise Add-Ons: can no longer be created. Semantically they are the same as Enterprise Business Functions but are based on another technique.
I have created a business function with Type G which is an enterprise business function.
In the Business function, I have added the switch which we have created in the previous step. See the image below.
In case if you have created an Industry Business Function, it’s always needing a business function set to be attached to. Those who are following with Enterprise Business Function (as followed above) can avoid this step of creating Business function set and can continue with SFW5 to switch on business functions.
Business Function Set
You use a business function set to bundle business functions into your system.
Next, we need to create a Business Function Set via the Tcode SFW3.
Business Function set is a group/collection of business functions.
Business Function Set is the top component of the Switch Framework and represents an industry solution that you tailor from existing solutions in the SAP system.
Add your business function to business function tab then, save and activate.
Now, goto transaction SFW5 and expand the ENTERPRISE_BUSINESS_FUNCTIONS and below
We can see our business function, for activating switch we need to click the click box and do activate
In this switch package we added append structure in custom table, once switch is activated, we can go and see the that append structure, it will show now switch on we can see in below image.
Conclusion:
The Switch is reversable, if we want to do deactivate the switch, we need to do reversable.
The main purpose of the Switch Framework is to simplify an ABAP-based system landscape by adopting one or more industry solutions in a standard system. The Switch Framework allows you to externally control the visibility of repository objects or their components by means of switches.A switch is a repository object that controls the visibility of other repository objects.A business function is a self-contained function from a business perspective and consists of a set of switchesA business function set corresponds to an industry solution and is a group of business functionsSwitch Framework ComponentsIt’s possible to have child-parent relationships between the main components of the Switch Framework. Not only can you assign switches to business functions and business functions to business function sets, you also can assign business function sets to business functions and switches to business functions. Business function sets can be nested and can have superordinate and subordinate business function sets. Switch A switch is the technical level of switching objects on and off. You use a switch to control the behaviour of the objects assigned to it.Here we discuss about the creation of switches. Starting with Tcode SFW1, where we will create a new switch. In the ‘Package’ tab, we can add our package name. Here I have added my package ‘ZSWF_NEW’, where I will be saving the enhancements which I add later. Save and activate the switch.Business FunctionNext, we need to create a Business Function via the Tcode SFW2.A Business Function is a a group/set of switches.A business function is a building block of a business function set.From a business perspective, it represents a self-contained function that you can switch on. From a technical point of view, it is a set of switches that assign repository objects to the business function. Business functions are switched on at a system level.A switch controls the visibility or run time behavior of different repository objects assigned to it. A switch can have 3 states as on, off & standby.ON- The objects behave like non switchable objects.OFF- The system behaves as these objects do not exists.STAND BY- All dictionary objects and all static code enhancements like enhancement point point & section (STATIC) are switched on but other objects are switched off. When you switch on a business function, all switches assigned to it are switched to ON or STANDBY, respectively, depending on the definition of the business function.The business functions can be reversible and non-reversible. Only reversible business functions can be switched off. The following types of business functions are available: Industry Business Function: always needs a business function set to be attached to Enterprise Business Function: independent of business function sets Enterprise Add-Ons: can no longer be created. Semantically they are the same as Enterprise Business Functions but are based on another technique.I have created a business function with Type G which is an enterprise business function.In the Business function, I have added the switch which we have created in the previous step. See the image below.In case if you have created an Industry Business Function, it’s always needing a business function set to be attached to. Those who are following with Enterprise Business Function (as followed above) can avoid this step of creating Business function set and can continue with SFW5 to switch on business functions.Business Function SetYou use a business function set to bundle business functions into your system.Next, we need to create a Business Function Set via the Tcode SFW3.Business Function set is a group/collection of business functions.Business Function Set is the top component of the Switch Framework and represents an industry solution that you tailor from existing solutions in the SAP system.Add your business function to business function tab then, save and activate.Now, goto transaction SFW5 and expand the ENTERPRISE_BUSINESS_FUNCTIONS and belowWe can see our business function, for activating switch we need to click the click box and do activate In this switch package we added append structure in custom table, once switch is activated, we can go and see the that append structure, it will show now switch on we can see in below image.Conclusion:The Switch is reversable, if we want to do deactivate the switch, we need to do reversable. Read More Technology Blogs by Members articles
#SAP
#SAPTechnologyblog
+ There are no comments
Add yours