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 Name | Description | Visability |
| CHECK_STATUS | Checks the Status of the Service for a BOR Object | Protected |
| CALL METHOD cl_gos_service=>CHECK_STATUS...more details | ||
| CONSTRUCTOR | Constructor | Public |
| CALL METHOD cl_gos_service=>CONSTRUCTOR...more details | ||
| EXECUTE | Executes the Service | Public |
| CALL METHOD cl_gos_service=>EXECUTE...more details | ||
| EXECUTE_ITS | Executes the Service in the ITS Environment | Public |
| CALL METHOD cl_gos_service=>EXECUTE_ITS...more details | ||
| GET_DEFAULT_ATTRIBUTE | Reads the Default Attributes | Protected |
| CALL METHOD cl_gos_service=>GET_DEFAULT_ATTRIBUTE...more details | ||
| ON_MODE_CHANGED | RW Mode Has Changed | Public |
| CALL METHOD cl_gos_service=>ON_MODE_CHANGED...more details | ||
|
| ||
| ON_SERVICE_CANCELED | Clean Up of Controls After Termination | Public |
| CALL METHOD cl_gos_service=>ON_SERVICE_CANCELED...more details | ||
| ON_SERVICE_SUCCEEDED | Reacts to Successful Termination of a Different Service | Public |
| CALL METHOD cl_gos_service=>ON_SERVICE_SUCCEEDED...more details | ||
| SET_OBJECT | Allocate Service an Object | Public |
| CALL METHOD cl_gos_service=>SET_OBJECT...more details | ||
| UPDATE_SERVICE | Internal Use | Public |
| 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.
| Name | Level | Description | Initial Value | Type | Visability |
| GO_MODEL | Instance Attribute | Publication for Generic Object Services | LIKE CL_GOS_TOOLBOX_MODEL | Protected | |
| GP_CHANGED | Instance Attribute | SGOS: Service Requires Commit Work for Data Backup | LIKE SGS_COMMIT | Public | |
| GP_CMODE | Instance Attribute | SGOS: Call Mode with/Without Commit or Own Roll Area | LIKE SGS_CMODE | Protected | |
| GP_DEF_ATTRIB | Instance Attribute | BOR Default Attribute | LIKE SWC_VALUE | Protected | |
| GP_MODE | Instance Attribute | SGOS: Display/Change Mode of Generic Object Services | LIKE SGS_RWMOD | Protected | |
| GP_STATUS | Instance Attribute | Status of the Service | 0 | LIKE SGS_STATUS | Protected |
| GP_TITLEBAR | Instance Attribute | Description of Service | LIKE SYTITLE | Public | |
| GS_LPORB | Instance Attribute | Local Persistent Object Reference - BOR Compatible | LIKE SIBFLPORB | Protected | |
| GS_OBJECT | Instance Attribute | Obsolete: To Be Deleted | LIKE BORIDENT | Protected | |
| MP_MODE_READ | Constant | SGOS: Display/Change Mode of Generic Object Services | 'D' | LIKE SGS_RWMOD | Public |
| MP_MODE_WRITE | Constant | SGOS: Display/Change Mode of Generic Object Services | 'E' | LIKE SGS_RWMOD | Public |
| MP_STATUS_ACTIVE | Constant | Status: Active | 0 | LIKE SGS_STATUS | Public |
| MP_STATUS_INACTIVE | Constant | Status: Inactive | 1 | LIKE SGS_STATUS | Public |
| MP_STATUS_INVISIBLE | Constant | Status: Invisible | 2 | LIKE 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 SetSERVICE_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