Entering content frameProcedure documentation Publishing Object and Offering Context Menu Locate the document in its SAP Library structure

Use

This procedure allows you to publish your object and to offer the object services in the context menu of the object. Users do not call the services from the toolbox, but rather by right mouse-clicking.

Procedure

  1. You must generate an instance of the class cl_gos_manager. However, do not transfer the BOR-ID or the callback class so that no object is published.
  2. This graphic is explained in the accompanying text

  3. You must create the context menu and also transfer the BOR-ID in order to publish the object.
  4. This graphic is explained in the accompanying text

    The import parameter lo_menu contains a reference to the context menu.

  5. You can use the context menu in various controls. . Normally you write an event handler which forwards the menu entries selected by the user. In the event handler call the method dispatch_menu_command of the cl_gos_manager class for generic object services:

This graphic is explained in the accompanying text

You only have to request the import parameter lo_menu if you have requested more than one context menu within the same instance from cl_gos_manager.

 

 

 

Leaving content frame