Offering the Toolbox Directly 

Use

You don't want the services to be available only when the button is pressed, but rather immediately.

Procedure

  1. When generating an instance from cl_gos_manager you do not enter an object ID. Thus the object is not published:
  2. data: go_myobject type ref to cl_gos_manager.

    create object go_myobject.

  3. When calling directly, you transfer the object ID as a parameter:

data: ...,

lo_container type ref to cl_gui_custom_container,

ls_object type borident.

call method go_myobject->display_toolbox

exporting is_object = ls_object

io_container = lo_container.

The parameter io_container is optional: If you do not transfer a reference to a container, then the toolbox is started in a separate system like in the standard system.