Show TOC

Procedure documentationPublishing Object and Offering the Toolbox Directly Locate this document in the navigation structure

 

This procedure allows you to publish your object and directly call the toolbox with the object services. As soon as a user calls the object, the toolbox is opened.

Procedure

  1. Generate an instance of class cl_gos_manager. However, do not transfer the BOR-ID or the callback class so that no object is published.

    Syntax Syntax

    1. data:	go_myobject type ref to cl_gos_manager.
    2. create object go_myobject.
    End of the code.
  2. Call the method display_toolbox and transfer the BOR-ID as the parameter:

    Syntax Syntax

    1. data:	...,
    2. 	lo_container type ref to cl_gui_custom_container,
    3. 	ls_object type borident.
      
    4. call method go_myobject->display_toolbox
    5. 	exporting	is_object = ls_object
    6. 	io_container	= lo_container.
    End of the code.

    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.