Steps to create SWITCH.
- In transaction SFW1 , click on Append Row.
- Enter the name of the switch, and enter other details.
- Select the row and click on Details.
- You will see a panel with many tabs like package, GUI/ Dynpro etc.
- Enter the name of the package to which you want to assign switch “ZTEST” e.g. “ZDEMO”
- SAVE it and activate it.
- To check the status, enter transaction SFW1 again, you will see status is changed to “ACTIVE”
This way all the objects which are specified in Switchable objects by package assignment below are assigned to switch “ZTEST”. If this switch “ZTEST” is “ON”, then all switchable objects under package “ZDEMO” becomes active.
Switchable Objects by package assignment
- Enhancement Implementations
- Appends, SI-, CI-includes for dictionary structures
- Fixed value appends to domains
- Append Search Helps
- Secondary Indexes
- Switch Business Configuration Sets
For example:
Following screen shot shows that switch “ZTEST” is created and assigned to package “ZDEMO”.
Following screen shot shows that “ZTEST” is a table having “ZSSP” append structure. As package “ZDEMO” is assigned to switch “ZTEST” and “ZTEST” is in “ON” state so append structure “ZSSP” is available in table “ZTEST”.
There are choices by direct assignment
- Screen elements & Flow logic
- Menu entries & functions
- IMG nodes
- Easy Access Menu
- Customizing
For example :
Here screen element “CUSTOMID” is assigned to switch “ZTEST” . SO this element is available only if switch “ZTEST” is “ON”. You can go to SFW1 and select GUI/ Dynpro tab here you will see screens which comes under switch “ZTEST”.
Steps to create business function.
- Go to transaction SFW2.
- Click on Append row.
- Enter Business Function name and other details.
- Select the row and click on Details.
- You will see a panel with many tabs like switches, Excluded etc.
- Enter the name of the switch to which you want to assign Business function “ZTEST”.
- SAVE it and activate it.
To check the status, enter transaction SFW1 again, you will see status is changed to “ACTIVE”
Steps to change the status of Business function.
Go to SFW5.
Change the status of Business function to “ON” and activate it.So all the objects under the switch to which business function is assigned becomes available.
For further information,refer my blog on SAP Switch Framework.
ArchitectSAP Solutions
SAP. Streamlined.
SAP ECC, HR, SCM and NetWeaver consulting, implementation, outsourcing, offshore support and SAP consultancy services to SAP customers across diverse industries globally.
Have a question on SAP? Write to our SAP Architect : AskTheArchitect@architectsap.com
(We promise a no-obligation consulting reply)







