SAP ABAP Class CL_ABAP_SWITCH (Switch Handling in Connection with Enhancements)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-ABA-LA (Application Component) Syntax, Compiler, Runtime
     SABP_ENHANCEMENT (Package) Enhancement of Programs
Properties
Class CL_ABAP_SWITCH  
Short Description Switch Handling in Connection with Enhancements    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package SABP_ENHANCEMENT   Enhancement of Programs 
Created 20040519   SAP 
Last change 20130531   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 ABAP Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
Interfaces
Class CL_ABAP_SWITCH has no interface implemented.
Friends
Class CL_ABAP_SWITCH has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 C_NOT_FOUND Constant Public Type reference (TYPE) SFW_SWITCHPOS SPACE Switch Not Found 20040602
2 C_OFF Constant Public Type reference (TYPE) SFW_SWITCHPOS 'F' Off 20040602
3 C_ON Constant Public Type reference (TYPE) SFW_SWITCHPOS 'T' On 20040602
4 C_STAND_BY Constant Public Type reference (TYPE) SFW_SWITCHPOS 'S' Stand By 20040602
Methods
# Method Level Visibility Method type Description Created on
1 CHECK_SWITCH Static method Public Method Existence Check for a Switch 20040625
2 GET_ENABLED_SWITCHES Static method Public Method Find all activated switches in system 20120531
3 GET_OVERALL_SWITCH_STATE Static method Public Method Individual Query of Switch Position from System-Wide View 20040602
4 GET_SWITCHES_IN_USE Static method Public Method Find Activated Switch Positions 20040922
5 GET_SWITCH_BUFFER_CONTENT Static method Public Method Import Content of the Internal Switch Buffer 20050111
6 GET_SWITCH_STATE Static method Public Method Individual Query of Switch Position from Runtime View 20040519
7 IS_ANY_SWITCH_IN_USE Static method Public Method Query Existence of Activated Switches 20040907
Events
Class CL_ABAP_SWITCH has no event.
Types
Class CL_ABAP_SWITCH has no local type.
Method Signatures

Method CHECK_SWITCH Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing P_ONLY_ACTIVE_VERSION Value transfer Type reference (TYPE) ABAP_BOOL ABAP_TRUE Nur aktive oder auch inaktive Versionen? 20040625
2 Returning P_SWITCH_EXISTS Value transfer Type reference (TYPE) ABAP_BOOL Ist der Schalter vorhanden? 20040625
3 Importing P_SWITCH_ID Call by reference Type reference (TYPE) SFW_SWITCH_ID ID eines Schalters im Switchframework 20040625

Method CHECK_SWITCH on class CL_ABAP_SWITCH has no exception.

Method GET_ENABLED_SWITCHES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting P_ENABLED_SWITCHES Call by reference Type reference (TYPE) SFW_STATETAB 20120531
2 Importing P_ONLY_ACTIVE_VERSION Value transfer Type reference (TYPE) ABAP_BOOL ABAP_TRUE 20120531

Method GET_ENABLED_SWITCHES on class CL_ABAP_SWITCH has no exception.

Method GET_OVERALL_SWITCH_STATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing P_ONLY_ACTIVE_VERSION Value transfer Type reference (TYPE) ABAP_BOOL ABAP_TRUE Nur aktive oder auch inaktive Versionen? 20040602
2 Importing P_SWITCH_ID Call by reference Type reference (TYPE) SFW_SWITCH_ID ID eines Schalters im Switchframework 20040602
3 Returning P_SWITCH_STATE Value transfer Type reference (TYPE) SFW_SWITCHPOS Schalterstellung 20040602

Method GET_OVERALL_SWITCH_STATE on class CL_ABAP_SWITCH has no exception.

Method GET_SWITCHES_IN_USE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing P_CLIENT Call by reference Type reference (TYPE) SFW_CLIENT Mandant 20040922
2 Exporting P_IS_SWITCH_IN_USE Value transfer Type reference (TYPE) ABAP_BOOL Ist ein eingeschalteter Schalter vorhanden? 20040922
3 Importing P_ONLY_ACTIVE_VERSION Value transfer Type reference (TYPE) ABAP_BOOL ABAP_TRUE Nur aktive oder auch inaktive Versionen? 20040922
4 Importing P_ONLY_WITH_STATE_ON Value transfer Type reference (TYPE) ABAP_BOOL ABAP_TRUE Nur Zustand "on" betrachten oder auch "stand-by"? 20040922
5 Importing P_SWITCH_ID Call by reference Type reference (TYPE) SFW_SWITCH_ID ID eines Schalters im Switchframework 20040922
6 Exporting P_SWITCH_STATES Call by reference Type reference (TYPE) SFW_SETTINGS Tabellen mit Schalterstellungen 20040922

Method GET_SWITCHES_IN_USE on class CL_ABAP_SWITCH has no exception.

Method GET_SWITCH_BUFFER_CONTENT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing P_CLIENT Call by reference Type reference (TYPE) SFW_CLIENT Mandant 20050111
2 Exporting P_CLIENTS Call by reference Type reference (TYPE) SFW_CLIENTS Tabelle mit Mandanten 20050111
3 Exporting P_CONFL_SWITCHES Call by reference Type reference (TYPE) SFW_CONFL_SWITCHES Tabelle mit Konfliktschalterabhängigkeiten 20050111
4 Importing P_ONLY_ACTIVE_VERSION Value transfer Type reference (TYPE) ABAP_BOOL ABAP_TRUE Nur aktive oder auch inaktive Versionen? 20050111
5 Exporting P_SWITCH_STATES Call by reference Type reference (TYPE) SFW_SETTINGS Tabellen mit Schalterstellungen 20050111

Method GET_SWITCH_BUFFER_CONTENT on class CL_ABAP_SWITCH has no exception.

Method GET_SWITCH_STATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing P_CLIENT Call by reference Type reference (TYPE) SFW_CLIENT Mandant 20040524
2 Importing P_ONLY_ACTIVE_VERSION Value transfer Type reference (TYPE) ABAP_BOOL ABAP_TRUE Nur aktive oder auch inaktive Versionen? 20040524
3 Importing P_SWITCH_ID Call by reference Type reference (TYPE) SFW_SWITCH_ID ID eines Schalters im Switchframework 20040524
4 Returning P_SWITCH_STATE Value transfer Type reference (TYPE) SFW_SWITCHPOS Schalterstellung 20040524
5 Importing P_USERNAME Call by reference Type reference (TYPE) SFW_USERNAME User 20040524

Method GET_SWITCH_STATE on class CL_ABAP_SWITCH has no exception.

Method IS_ANY_SWITCH_IN_USE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing P_CLIENT Call by reference Type reference (TYPE) SFW_CLIENT Mandant 20040907
2 Returning P_IS_SWITCH_IN_USE Value transfer Type reference (TYPE) ABAP_BOOL Ist ein eingeschalteter Schalter vorhanden? 20040907
3 Importing P_ONLY_ACTIVE_VERSION Value transfer Type reference (TYPE) ABAP_BOOL ABAP_TRUE Nur aktive oder auch inaktive Versionen? 20040907
4 Importing P_ONLY_WITH_STATE_ON Value transfer Type reference (TYPE) ABAP_BOOL ABAP_TRUE Nur Zustand "on" betrachten oder auch "stand-by"? 20050113

Method IS_ANY_SWITCH_IN_USE on class CL_ABAP_SWITCH has no exception.
History
Last changed by/on SAP  20130531 
SAP Release Created in 700