SAP CL_SHM_AREA OO Class - Shared Memory: General Area Handle









CL_SHM_AREA is a standard SAP object class available within R/3 SAP systems depending on your version and release level. You can view/maintain the class details by entering its name into the relevant SAP transactions such as SE24, SE80 or even SE84. Below is the documentation available for class CL_SHM_AREA including details of:

  • Interface class implementations
  • Inheritance details
  • Methods defined within class ( including link to full details )
  • Attributes ( including initial values )
  • Class Events

Inheritance

This OO class has a superclass assigned to it, which means it will inherit its objects and methods. The superclass for CL_SHM_AREA is CL_ABAP_MEMORY_AREA

Method list of CL_SHM_AREA SAP class


A method is a coding block that performs a certain procedure (i.e. ABAP functionality) on an object within the overall SAP class. In simple terms if the object is an SAP database table a method could be the procedure to add a record or to delete a record. If you are new to OO in many respects, the implementation of a method is similar to a function module and can be called in a very similar way using CALL METHOD. Instead of "CALL FUNCTION", Methods are referenced using the following syntax: CALL METHOD =>methodname EXPORTING/IMPORTING...


Method NameDescriptionVisability
CLASS_CONSTRUCTORCLASS_CONSTRUCTORPublic
CALL METHOD cl_shm_area=>CLASS_CONSTRUCTOR...more details

DETACHRemove Shared LockPublic
CALL METHOD cl_shm_area=>DETACH...more details

DETACH_ALL_AREASRelease all Locks for all AreasPublic
CALL METHOD cl_shm_area=>DETACH_ALL_AREAS...more details

DETACH_COMMITRelease Change Lock and Flag for COMMITPublic
CALL METHOD cl_shm_area=>DETACH_COMMIT...more details

DETACH_ROLLBACKRelease Change Lock and Discard VersionPublic
CALL METHOD cl_shm_area=>DETACH_ROLLBACK...more details

GET_LOCK_KINDReturns the Lock Type for an AreaPublic
CALL METHOD cl_shm_area=>GET_LOCK_KIND...more details

GET_ROOTReturns a Reference to the Root ObjectPublic
CALL METHOD cl_shm_area=>GET_ROOT...more details

MULTI_ATTACHMultiple Attach (Requires this Method)Public
CALL METHOD cl_shm_area=>MULTI_ATTACH...more details

_ATTACH_READPrivate
CALL METHOD cl_shm_area=>_ATTACH_READ...more details

_ATTACH_READ71Private
CALL METHOD cl_shm_area=>_ATTACH_READ71...more details

_ATTACH_UPDATE70Private
CALL METHOD cl_shm_area=>_ATTACH_UPDATE70...more details

_ATTACH_WRITE70Private
CALL METHOD cl_shm_area=>_ATTACH_WRITE70...more details

_DETACHPrivate
CALL METHOD cl_shm_area=>_DETACH...more details

_DETACH_ALL_AREASPrivate
CALL METHOD cl_shm_area=>_DETACH_ALL_AREAS...more details

_DETACH_AREAPrivate
CALL METHOD cl_shm_area=>_DETACH_AREA...more details

_DETACH_AREA71Private
CALL METHOD cl_shm_area=>_DETACH_AREA71...more details

_DETACH_COMMITPrivate
CALL METHOD cl_shm_area=>_DETACH_COMMIT...more details

_DETACH_ROLLBACKPrivate
CALL METHOD cl_shm_area=>_DETACH_ROLLBACK...more details

_FINISH_MULTI_ATTACHPrivate
CALL METHOD cl_shm_area=>_FINISH_MULTI_ATTACH...more details

_FREE_AREAPrivate
CALL METHOD cl_shm_area=>_FREE_AREA...more details

_FREE_AREA71Private
CALL METHOD cl_shm_area=>_FREE_AREA71...more details

_FREE_INSTANCEPrivate
CALL METHOD cl_shm_area=>_FREE_INSTANCE...more details

_FREE_INSTANCE71Private
CALL METHOD cl_shm_area=>_FREE_INSTANCE71...more details

_GET_INSTANCE_INFOSPrivate
CALL METHOD cl_shm_area=>_GET_INSTANCE_INFOS...more details

_GET_INSTANCE_INFOS71Private
CALL METHOD cl_shm_area=>_GET_INSTANCE_INFOS71...more details

_GET_INSTANCE_INFOS804Private
CALL METHOD cl_shm_area=>_GET_INSTANCE_INFOS804...more details

_HAS_ACTIVE_PROPERTIESPrivate
CALL METHOD cl_shm_area=>_HAS_ACTIVE_PROPERTIES...more details

_INVALIDATE_AREAPrivate
CALL METHOD cl_shm_area=>_INVALIDATE_AREA...more details

_INVALIDATE_AREA71Private
CALL METHOD cl_shm_area=>_INVALIDATE_AREA71...more details

_INVALIDATE_INSTANCEPrivate
CALL METHOD cl_shm_area=>_INVALIDATE_INSTANCE...more details

_INVALIDATE_INSTANCE71Private
CALL METHOD cl_shm_area=>_INVALIDATE_INSTANCE71...more details

_PREPARE_MULTI_ATTACH_READPrivate
CALL METHOD cl_shm_area=>_PREPARE_MULTI_ATTACH_READ...more details

_PREPARE_MULTI_ATTACH_READ71Private
CALL METHOD cl_shm_area=>_PREPARE_MULTI_ATTACH_READ71...more details

_PREPARE_MULTI_ATTACH_UPDATE70Private
CALL METHOD cl_shm_area=>_PREPARE_MULTI_ATTACH_UPDATE70...more details

_PREPARE_MULTI_ATTACH_WRITE70Private
CALL METHOD cl_shm_area=>_PREPARE_MULTI_ATTACH_WRITE70...more details

_PROPAGATE_AREAPrivate
CALL METHOD cl_shm_area=>_PROPAGATE_AREA...more details

_PROPAGATE_INSTANCEPrivate
CALL METHOD cl_shm_area=>_PROPAGATE_INSTANCE...more details

_SET_ROOTPrivate
CALL METHOD cl_shm_area=>_SET_ROOT...more details



CL_SHM_AREA attributes

List of attributes within class CL_ABAP_CHAR_UTILITIES. These can be referenced using the following syntax CL_ABAP_CHAR_UTILITIES=>. Although depending on where you are inserting the ABAP code you do need to check if the attribute is public or private.

NameLevelDescriptionInitial ValueTypeVisability
AFFECT_ALL_SERVERSConstantInvalidate/Delete Area on All Servers281119721LIKE
SHM_AFFECT_SERVER
Public
AFFECT_ALL_SERVERS_BUT_LOCALConstantInvalidate/Delete Area on All Servers Except Current281119722LIKE
SHM_AFFECT_SERVER
Public
AFFECT_LOCAL_SERVERConstantInvalidate/Delete Area Only on Current Server281119720LIKE
SHM_AFFECT_SERVER
Public
ALL_CLIENTSConstantAll Clients'*'LIKE
SHM_CLIENT
Public
ATTACH_MODE_DEFAULTConstantLock must be available immediately1302197000LIKE
SHM_ATTACH_MODE
Public
ATTACH_MODE_DETACH_READERConstantRead locks can be released1302197001LIKE
SHM_ATTACH_MODE
Public
ATTACH_MODE_WAITConstantLock must be available within a period of time1302197002LIKE
SHM_ATTACH_MODE
Public
ATTACH_MODE_WAIT_2ND_TRYConstant(Internal) Repeat Lock Request1302197003LIKE
SHM_ATTACH_MODE
Protected
AUTO_BUILD_CURRENT_USERConstantUsing the current user'X'LIKE
SHM_AUTO_BUILD
Public
AUTO_BUILD_NONEConstantNone' 'LIKE
SHM_AUTO_BUILD
Public
AUTO_BUILD_SYSTEM_USERConstantUsing the system user'S'LIKE
SHM_AUTO_BUILD
Public
BUILD_KIND_DUE_TO_INVALIDATIONConstantAutostart for Read Request and Every Invalidation1107197102LIKE
SHM_BUILD_KIND
Public
BUILD_KIND_DUE_TO_READ_REQUESTConstantAutostart for Read Request1107197101LIKE
SHM_BUILD_KIND
Public
BUILD_KIND_NONEConstantNo Autostart1107197100LIKE
SHM_BUILD_KIND
Public
BUILD_KIND_STARTUPConstantAutostart for Server Start and Every Invalidation1107197103LIKE
SHM_BUILD_KIND
Public
BUILD_KIND_STARTUP_OR_READConstantAutostart if read request and server start1107197104LIKE
SHM_BUILD_KIND
Public
BUILD_KIND_STARTUP_READ_OR_INVConstantAutostart if read request, invalidated, and server start1107197105LIKE
SHM_BUILD_KIND
Public
CLIENTInstance AttributeClientLIKE
MANDT
Public
DEFAULT_INSTANCEConstantDefault Name for the Area Instance'$DEFAULT_INSTANCE$'LIKE
SHM_INST_NAME
Public
DISPLACE_KIND_DISPLACABLEConstantDisplacement Possible1208200202LIKE
SHM_DISPLACE_KIND
Public
DISPLACE_KIND_NONEConstantDisplacement Not Possible1208200200LIKE
SHM_DISPLACE_KIND
Public
DISPLACE_KIND_SERIALIZABLEConstantDisplacement Possible with Backup and Recovery1208200201LIKE
SHM_DISPLACE_KIND
Public
INST_NAMEInstance AttributeName of a Shared Object Instance of an AreaLIKE
SHM_INST_NAME
Public
INST_TRACE_ACTIVEInstance Attribute(Internal) Flag: Trace Active?ABAP_FALSELIKE
ABAP_BOOL
Protected
INST_TRACE_SERVICEInstance Attribute(Internal) Reference to Trace ClassLIKE
IF_SHM_TRACE
Protected
INVOCATION_MODE_AUTO_BUILDConstantAutomatic Call of the Constructor0319200301LIKE
SHM_CONSTR_INVOCATION_MODE
Public
INVOCATION_MODE_EXPLICITConstantExplicit Call of the Constructor0319200300LIKE
SHM_CONSTR_INVOCATION_MODE
Public
LIFETIME_IDLEConstantMaximum Unused Time1125600003LIKE
SHM_LIFETIME_KIND
Public
LIFETIME_INVALIDATIONConstantExpiry Time1125600001LIKE
SHM_LIFETIME_KIND
Public
LIFETIME_NONEConstantNo Entry1125600000LIKE
SHM_LIFETIME_KIND
Public
LIFETIME_REFRESHConstantRefresh Time1125600002LIKE
SHM_LIFETIME_KIND
Public
LIFE_CONTEXT_APPSERVERConstantApplication Server0109200001LIKE
SHM_LIFE_CONTEXT
Public
LIFE_CONTEXT_MEMORYConstantABAP Memory0109200004LIKE
SHM_LIFE_CONTEXT
Public
LIFE_CONTEXT_MODEConstantExternal mode0109200003LIKE
SHM_LIFE_CONTEXT
Public
LIFE_CONTEXT_SESSIONConstantSession0109200002LIKE
SHM_LIFE_CONTEXT
Public
LOCK_KIND_COMPLETION_ERRORConstantChange Handle with Error When Using Commit0109199705LIKE
SHM_LOCK_KIND
Public
LOCK_KIND_DETACHEDConstantHandle Released0109199701LIKE
SHM_LOCK_KIND
Public
LOCK_KIND_OUT_OF_MEMORYConstantMemory error in area build0109199706LIKE
SHM_LOCK_KIND
Public
LOCK_KIND_READConstantRead Handle0109199702LIKE
SHM_LOCK_KIND
Public
LOCK_KIND_UPDATEConstantUpdate Handle0109199704LIKE
SHM_LOCK_KIND
Public
LOCK_KIND_WRITEConstantWrite Handle0109199703LIKE
SHM_LOCK_KIND
Public
PROPERTIESInstance AttributeArea AttributesLIKE
SHM_PROPERTIES
Public
PROP_KIND_AUTOMATICConstantAutomatic Using Dependencies0159200002LIKE
SHM_PROPAGATION_KIND
Public
PROP_KIND_NONEConstantNo Synchronization0159200000LIKE
SHM_PROPAGATION_KIND
Public
PROP_KIND_USER_TRIGGEREDConstantExplicit Call0159200001LIKE
SHM_PROPAGATION_KIND
Public
RC_DONEConstantReturn Value: Execution Without Error0304192400LIKE
SHM_RC
Public
RC_INSTANCE_NAME_NOT_FOUNDConstantReturn Value: Specified Instance Does Not Exist0304192402LIKE
SHM_RC
Public
RC_NOTHING_TO_BE_DONEConstantReturn Value: Operation Fulfilled Without Execution0304192401LIKE
SHM_RC
Public
RC_PRELOAD_ALREADY_IN_BUFFERInstance AttributeLIKE
Private
RC_PRELOAD_DONEInstance AttributeLIKE
Private
RC_PRELOAD_ERRORInstance AttributeLIKE
Private
RC_PRELOAD_FULL_BUFFERInstance AttributeLIKE
Private
STAT_TRACE_ACTIVEStatic Attribute(Internal) Flag: Trace Active?ABAP_FALSELIKE
ABAP_BOOL
Private
STAT_TRACE_SERVICEStatic Attribute(Internal) Reference to Trace ClassLIKE
IF_SHM_TRACE
Private
_LOCKInstance Attribute(Internal) ModeLockRefIdLIKE
%_C_POINTER
Protected
_MIN_VERSION_Constant(Internal) Minimum supported area version21LIKE
I
Public


Events of Class CL_SHM_AREA

Events are created within your class using special event handler methods. These must be registered at runtime for the event and can then be triggered using the ABAP syntax: RAISE EVENT EXPOTING... SHM_COMMIT_EVENT - Triggered During DETACH_COMMIT
SHM_ROLLBACK_EVENT - Triggered During DETACH_ROLLBACK

Links to Related Class(s)

CL_SHM_A...
Full list of available SAP object classes

Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!