SAP ABAP Class CL_DEMO_FLIGHTS (Flights)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-ABA-LA (Application Component) Syntax, Compiler, Runtime
     SABAPDEMOS (Package) Demos for ABAP Documentation, not meant for productive use
Meta Relationship - Using
# Relationship type Using Short Description Created on
1 Inheritance (c INHERITING FROM c_ref)  CL_SHM_AREA Shared Memory: General Area Handle 20120330
Properties
Class CL_DEMO_FLIGHTS  
Short Description Flights    
Super Class CL_SHM_AREA Shared Memory: General Area Handle 
Instantiability of a Class 0  Private 
Final    
General Data
Message Class    
Program status S  System Program 
Category 45  Area Class (Shared Objects) 
Package SABAPDEMOS   Demos for ABAP Documentation, not meant for productive use 
Created 20120330   SAP 
Last change 20130531   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
Class CL_DEMO_FLIGHTS has no forward declaration.
Interfaces
Class CL_DEMO_FLIGHTS has no interface implemented.
Friends
# Friend Modeled only Created on Description
1 CL_SHM_AREA 20120330 Shared Memory: General Area Handle
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 AREA_NAME Constant Public Type reference (TYPE) SHM_AREA_NAME 'CL_DEMO_FLIGHTS' Name of Area Class 20120330
2 ROOT Instance attribute Public Object reference (TYPE REF TO) CL_DEMO_FLIGHT_LIST SHM: Model of a Data Class 20120330
3 _CLIENT_DEPENDENT Constant Private Type reference (TYPE) ABAP_BOOL ABAP_FALSE 20120330
4 _LIFE_CONTEXT Constant Private Type reference (TYPE) SHM_LIFE_CONTEXT CL_SHM_AREA=>LIFE_CONTEXT_APPSERVER Lifetime of an Area (Constants in CL_SHM_AREA) 20120330
5 _TRACE_ACTIVE Static Attribute Private Type reference (TYPE) ABAP_BOOL ABAP_FALSE (Internal) Flag: Trace Active? 20120330
6 _TRACE_SERVICE Static Attribute Private Object reference (TYPE REF TO) IF_SHM_TRACE (Internal) Reference to Trace Class 20120330
7 _TRANSACTIONAL Constant Private Type reference (TYPE) ABAP_BOOL ABAP_FALSE 20120330
8 _VERSION_ Constant Private Type reference (TYPE) I 20 (internal) 20120330
Methods
# Method Level Visibility Method type Description Created on
1 ATTACH_FOR_READ Static method Public Method Request Read Lock 20120330
2 ATTACH_FOR_UPDATE Static method Public Method Request Change Lock 20120330
3 ATTACH_FOR_WRITE Static method Public Method Request Write Lock 20120330
4 BUILD Static method Public Method Direct Call of Area Constructur 20120330
5 CLASS_CONSTRUCTOR Static method Public Constructor CLASS_CONSTRUCTOR 20120330
6 DETACH_AREA Static method Public Method Remove all locks on all instances 20120330
7 FREE_AREA Static method Public Method Delete All Instances 20120330
8 FREE_INSTANCE Static method Public Method Delete Instance 20120330
9 GET_GENERATOR_VERSION Static method Public Method Query Generator Version 20120330
10 GET_INSTANCE_INFOS Static method Public Method Supplies All Names of an Instance 20120330
11 INVALIDATE_AREA Static method Public Method Active versions of all instances are set to obsolete 20120330
12 INVALIDATE_INSTANCE Static method Public Method Active version on an instance is set to obsolete 20120330
13 SET_ROOT Instance method Public Method Sets Root Object 20120330
Events
Class CL_DEMO_FLIGHTS has no event.
Types
Class CL_DEMO_FLIGHTS has no local type.
Method Signatures

Method ATTACH_FOR_READ Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning HANDLE Value transfer Object reference (TYPE REF TO) CL_DEMO_FLIGHTS SHM: Modell einer Gebietsklasse 20120330
2 Importing INST_NAME Call by reference Type reference (TYPE) SHM_INST_NAME CL_SHM_AREA=>DEFAULT_INSTANCE Name einer Shared Object Instanz eines Areas 20120330
# Exception Resumable Description Created on
1 CX_SHM_CHANGE_LOCK_ACTIVE Eine Änderungssperre ist schon aktiv 20120330
2 CX_SHM_EXCLUSIVE_LOCK_ACTIVE Instanz ist schon gesperrt 20120330
3 CX_SHM_INCONSISTENT Unterschiedliche Definitionen zwischen Program und Gebiet 20120330
4 CX_SHM_NO_ACTIVE_VERSION Keine aktive Version für ein Attach vorhanden 20120330
5 CX_SHM_PARAMETER_ERROR Falscher Parameter übergeben 20120330
6 CX_SHM_READ_LOCK_ACTIVE Anforderung einer 2. Lesesperre 20120330

Method ATTACH_FOR_UPDATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing ATTACH_MODE Call by reference Type reference (TYPE) SHM_ATTACH_MODE CL_SHM_AREA=>ATTACH_MODE_DEFAULT Modus des ATTACHS (Konstanten in CL_SHM_AREA) 20120330
2 Returning HANDLE Value transfer Object reference (TYPE REF TO) CL_DEMO_FLIGHTS SHM: Modell einer Gebietsklasse 20120330
3 Importing INST_NAME Call by reference Type reference (TYPE) SHM_INST_NAME CL_SHM_AREA=>DEFAULT_INSTANCE Name einer Shared Object Instanz eines Areas 20120330
4 Importing WAIT_TIME Call by reference Type reference (TYPE) I 0 Maximale Wartezeit (in Millisekunden) 20120330
# Exception Resumable Description Created on
1 CX_SHM_CHANGE_LOCK_ACTIVE Eine Schreibsperre ist schon aktiv 20120330
2 CX_SHM_EXCLUSIVE_LOCK_ACTIVE Instanz ist schon gesperrt 20120330
3 CX_SHM_INCONSISTENT Unterschiedliche Definitionen zwischen Program und Gebiet 20120330
4 CX_SHM_NO_ACTIVE_VERSION Keine aktive Version für ein Attach vorhanden 20120330
5 CX_SHM_PARAMETER_ERROR Übergebener Parameter hat falschen Wert 20120330
6 CX_SHM_PENDING_LOCK_REMOVED Shared Objects: wartende Sperre wurde gelöscht 20120330
7 CX_SHM_VERSION_LIMIT_EXCEEDED Keine weiteren Versionen verfügbar 20120330

Method ATTACH_FOR_WRITE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing ATTACH_MODE Call by reference Type reference (TYPE) SHM_ATTACH_MODE CL_SHM_AREA=>ATTACH_MODE_DEFAULT Modus des ATTACHS (Konstanten in CL_SHM_AREA) 20120330
2 Returning HANDLE Value transfer Object reference (TYPE REF TO) CL_DEMO_FLIGHTS SHM: Modell einer Gebietsklasse 20120330
3 Importing INST_NAME Call by reference Type reference (TYPE) SHM_INST_NAME CL_SHM_AREA=>DEFAULT_INSTANCE Name einer Shared Object Instanz eines Areas 20120330
4 Importing WAIT_TIME Call by reference Type reference (TYPE) I 0 Maximale Wartezeit (in Millisekunden) 20120330
# Exception Resumable Description Created on
1 CX_SHM_CHANGE_LOCK_ACTIVE Eine Schreibsperre ist schon aktiv 20120330
2 CX_SHM_EXCLUSIVE_LOCK_ACTIVE Instanz ist schon gesperrt 20120330
3 CX_SHM_PARAMETER_ERROR Übergebener Parameter hat falschen Wert 20120330
4 CX_SHM_PENDING_LOCK_REMOVED Shared Objects: wartende Sperre wurde gelöscht 20120330
5 CX_SHM_VERSION_LIMIT_EXCEEDED Keine weiteren Versionen verfügbar 20120330

Method BUILD Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing INST_NAME Call by reference Type reference (TYPE) SHM_INST_NAME CL_SHM_AREA=>DEFAULT_INSTANCE Name einer Shared Object Instanz eines Areas 20120330
# Exception Resumable Description Created on
1 CX_SHMA_INCONSISTENT SHMA: Inkonsistente Attribut-Kombination 20120330
2 CX_SHMA_NOT_CONFIGURED SHMA: Gebietseigenschaft ist nicht konfiguriert 20120330
3 CX_SHM_BUILD_FAILED Konstruktorlauf ist fehlgeschlagen 20120330

Method CLASS_CONSTRUCTOR Signature

Method CLASS_CONSTRUCTOR on class CL_DEMO_FLIGHTS has no parameter.
Method CLASS_CONSTRUCTOR on class CL_DEMO_FLIGHTS has no exception.

Method DETACH_AREA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RC Value transfer Type reference (TYPE) SHM_RC Detach-Rückgabewert (Konstanten in CL_SHM_AREA) 20120330

Method DETACH_AREA on class CL_DEMO_FLIGHTS has no exception.

Method FREE_AREA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RC Value transfer Type reference (TYPE) SHM_RC Rückgabewert (Konstanten in CL_SHM_AREA) 20120330
2 Importing TERMINATE_CHANGER Call by reference Type reference (TYPE) ABAP_BOOL ABAP_TRUE Schreiber werden beendet 20120330
# Exception Resumable Description Created on
1 CX_SHM_PARAMETER_ERROR Falscher Parameter übergeben 20120330

Method FREE_INSTANCE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing INST_NAME Call by reference Type reference (TYPE) SHM_INST_NAME CL_SHM_AREA=>DEFAULT_INSTANCE Name einer Shared Object Instanz eines Areas 20120330
2 Returning RC Value transfer Type reference (TYPE) SHM_RC Rückgabewert (Konstanten in CL_SHM_AREA) 20120330
3 Importing TERMINATE_CHANGER Call by reference Type reference (TYPE) ABAP_BOOL ABAP_TRUE Schreiber werden beendet 20120330
# Exception Resumable Description Created on
1 CX_SHM_PARAMETER_ERROR Falscher Parameter übergeben 20120330

Method GET_GENERATOR_VERSION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning GENERATOR_VERSION Value transfer Type reference (TYPE) I 20120330

Method GET_GENERATOR_VERSION on class CL_DEMO_FLIGHTS has no exception.

Method GET_INSTANCE_INFOS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning INFOS Value transfer Type reference (TYPE) SHM_INST_INFOS Übersicht aller Instanzen eines SHM-Gebiets 20120330
2 Importing INST_NAME Call by reference Type reference (TYPE) SHM_INST_NAME Name einer Shared Object Instanz eines Areas 20120330

Method GET_INSTANCE_INFOS on class CL_DEMO_FLIGHTS has no exception.

Method INVALIDATE_AREA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RC Value transfer Type reference (TYPE) SHM_RC Detach-Rückgabewert (Konstanten in CL_SHM_AREA) 20120330
2 Importing TERMINATE_CHANGER Call by reference Type reference (TYPE) ABAP_BOOL ABAP_TRUE Aktive Schreiber werden beendet 20120330
# Exception Resumable Description Created on
1 CX_SHM_PARAMETER_ERROR Falscher Parameter übergeben 20120330

Method INVALIDATE_INSTANCE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing INST_NAME Call by reference Type reference (TYPE) SHM_INST_NAME CL_SHM_AREA=>DEFAULT_INSTANCE Name einer Shared Object Instanz eines Areas 20120330
2 Returning RC Value transfer Type reference (TYPE) SHM_RC Detach-Rückgabewert (Konstanten in CL_SHM_AREA) 20120330
3 Importing TERMINATE_CHANGER Call by reference Type reference (TYPE) ABAP_BOOL ABAP_TRUE Aktive Schreiber werden beendet 20120330
# Exception Resumable Description Created on
1 CX_SHM_PARAMETER_ERROR Falscher Parameter übergeben 20120330

Method SET_ROOT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing ROOT Call by reference Object reference (TYPE REF TO) CL_DEMO_FLIGHT_LIST Wurzelobjekt 20120330
# Exception Resumable Description Created on
1 CX_SHM_INITIAL_REFERENCE Initiale Referenz übergeben 20120330
2 CX_SHM_WRONG_HANDLE Falsches Handle 20120330
History
Last changed by/on SAP  20130531 
SAP Release Created in