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.
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.
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:
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
17 | |
6 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 |