SAP CL_GOS_SERVICE OO Class - Publication for Generic Object Services









CL_GOS_SERVICE 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_GOS_SERVICE including details of:

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



Method list of CL_GOS_SERVICE 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
CHECK_STATUSChecks the Status of the Service for a BOR ObjectProtected
CALL METHOD cl_gos_service=>CHECK_STATUS...more details

CONSTRUCTORConstructorPublic
CALL METHOD cl_gos_service=>CONSTRUCTOR...more details

EXECUTEExecutes the ServicePublic
CALL METHOD cl_gos_service=>EXECUTE...more details

EXECUTE_ITSExecutes the Service in the ITS EnvironmentPublic
CALL METHOD cl_gos_service=>EXECUTE_ITS...more details

GET_DEFAULT_ATTRIBUTEReads the Default AttributesProtected
CALL METHOD cl_gos_service=>GET_DEFAULT_ATTRIBUTE...more details

ON_MODE_CHANGEDRW Mode Has ChangedPublic
CALL METHOD cl_gos_service=>ON_MODE_CHANGED...more details

ON_SERVICE_CANCELEDClean Up of Controls After TerminationPublic
CALL METHOD cl_gos_service=>ON_SERVICE_CANCELED...more details

ON_SERVICE_SUCCEEDEDReacts to Successful Termination of a Different ServicePublic
CALL METHOD cl_gos_service=>ON_SERVICE_SUCCEEDED...more details

SET_OBJECTAllocate Service an ObjectPublic
CALL METHOD cl_gos_service=>SET_OBJECT...more details

UPDATE_SERVICEInternal UsePublic
CALL METHOD cl_gos_service=>UPDATE_SERVICE...more details



CL_GOS_SERVICE 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
GO_MODELInstance AttributePublication for Generic Object ServicesLIKE
CL_GOS_TOOLBOX_MODEL
Protected
GP_CHANGEDInstance AttributeSGOS: Service Requires Commit Work for Data BackupLIKE
SGS_COMMIT
Public
GP_CMODEInstance AttributeSGOS: Call Mode with/Without Commit or Own Roll AreaLIKE
SGS_CMODE
Protected
GP_DEF_ATTRIBInstance AttributeBOR Default AttributeLIKE
SWC_VALUE
Protected
GP_MODEInstance AttributeSGOS: Display/Change Mode of Generic Object ServicesLIKE
SGS_RWMOD
Protected
GP_STATUSInstance AttributeStatus of the Service0LIKE
SGS_STATUS
Protected
GP_TITLEBARInstance AttributeDescription of ServiceLIKE
SYTITLE
Public
GS_LPORBInstance AttributeLocal Persistent Object Reference - BOR CompatibleLIKE
SIBFLPORB
Protected
GS_OBJECTInstance AttributeObsolete: To Be DeletedLIKE
BORIDENT
Protected
MP_MODE_READConstantSGOS: Display/Change Mode of Generic Object Services'D'LIKE
SGS_RWMOD
Public
MP_MODE_WRITEConstantSGOS: Display/Change Mode of Generic Object Services'E'LIKE
SGS_RWMOD
Public
MP_STATUS_ACTIVEConstantStatus: Active0LIKE
SGS_STATUS
Public
MP_STATUS_INACTIVEConstantStatus: Inactive1LIKE
SGS_STATUS
Public
MP_STATUS_INVISIBLEConstantStatus: Invisible2LIKE
SGS_STATUS
Public


Events of Class CL_GOS_SERVICE

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... COMMIT_REQUIRED - A 'Commit Work' Must Be Set
SERVICE_CHANGED - Service Has Changed
SERVICE_SUCCEEDED - Service Successfully Completed

Links to Related Class(s)

CL_GOS_S...
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!