SAP Control Framework 

Purpose

In the R/3 System, you can use ABAP to control desktop applications (custom controls). The application logic runs on the R/3 application server (automation client), which drives the custom control (automation server) at the frontend.

The SAPgui ( SAPGUI.APPLICATION ) functions as a container for custom controls at the frontend. A custom control can be either an ActiveX control or a JavaBean.

The following graphic illustrates an SAP Tree Control in use together with an SAP Textedit Control:

Features

The Control Framework supports controls (ActiveX and JavaBeans) that are implemented within the SAPgui.

The Automation Controller communicates with a single control ( SAPGUI.APPLICATION ), which itself is a container for further controls.

The Automation Controller is run from ABAP using the classes CL_GUI_CFW , CL_GUI_OBJECT , and CL_GUI_CONTROL . These allow you to create and destroy custom controls, set and get their attributes, and call their methods.

To assure adequate performance in the client/server environment, the system provides a buffer mechanism called the automation queue, which buffers a series of method calls to different instances of custom controls before sending them all to the frontend in a single step.

Events that are triggered in a custom control are processed in two steps:

The lifetime of a control is regulated by the lifetime management. Lifetime management automatically destroys controls at the frontend when they are no longer needed. However, you can, of course, destroy a control explicitly in your application program.

Constraints

Certain methods and events in some of the individual controls are not supported in the SAPGUI for HTML environment. Others are only available in a restricted form. For precise details, refer to the individual control documentation.