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”.

create switch

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”.

switch table display

There are choices by direct assignment

  • Screen elements & Flow logic
  • Menu entries & functions
  • IMG nodes
  • Easy Access Menu
  • Customizing

For example :

sap switch screen element

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”.

sap switch framework

sap used switch

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”

sap switch business function

Steps to change the status of Business function.

Go to SFW5.
Change the status of Business function to “ON” and activate it.

activate switch

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.
Please send us your questions, comments or assistance, and our team would be glad to assist you.

By Sreedhar Babu. (on behalf of SAP Consulting Team)


Apprisia
SAP :: Streamlined

We offer variety of services including SAP ECC ,SAP HR,SAP BW,SAP CRM, SAP SCM,SAP BPM, Business Objects, SAP ABAP DevelopmentSAP BASIS and SAP NetWeaver consulting. We have expertise in providing implementation,development, SAP Migration and SAP support services to SAP customers across diverse industries at a global level.
Have a question on SAP? Write to our SAP Architect.

(We promise a no-obligation consulting reply)