Show TOC

Publishing Object and Excluding ServicesLocate this document in the navigation structure

Use

You should exclude object services when it doesn't make sense to use them in connection with your object. The end user is not offered these services in the toolbox or context menu of his or her object.

Procedure

Generate an instance of class cl_gos_manager . Enter a selection table for the constructor with the services to be excluded. Here, you can enter intervals or individual services (with the names from the table SGOSATTR).

Information on the possible entries can be found in the documentation for Selection Tables .

Example

You do not want to exclude the creation of general and personal notes for an object.

data:      go_myobject type ref to cl_gos_manager,
        lt_services type tgos_sels,
        ls_service type sgos_sels,
        ls_object type borident.
…
ls_service-sign = 'E'.
ls_service-option = 'EQ'.
ls_service-low = 'NOTE_CREA'.
append ls_service to lt_services.
ls_service-low = 'PERS_NOTE'.
append ls_service to lt_services.

create object go_myobject
        exporting       is_object = ls_object
                        it_service_selection = lt_services
        exceptions      others = 1.