Skip to content

ABAP Keyword Documentation →  ABAP − Reference →  Data Interfaces and Communication Interfaces 

ABAP and OLE

ABAP can be used to edit automation objects whose functions are available in the presentation layer in the form of an OLE Automation server. Only automation objects for Windows are supported. Typical applications that offer an automation interface are Microsoft Office products Excel and Word, for which the published classes and their attributes and methods are found in the object directory of Visual Basic Editor called using the Macro menu option.

All automation applications that can be used by ABAP are contained in the database table TOLE, which is edited using transaction SOLE. This table contains the names of the classes and components supported by the ABAP runtime environment. It also contains type information for adapting different data formats. The automation command set consists of the following ABAP statements:

where CREATE OBJECT and CALL METHOD should not be confused with the ABAP Objects statements using the same syntax.

The statements of the automation command set are passed from the ABAP runtime environment to the SAP GUI on the current presentation server responsible for the actual communication with the automation server. The statements are not passed directly and are first buffered in an automation queue and passed together to SAP GUI in a flush call. By default, a flush is triggered by the next ABAP statement that does not belong to the automation command set.

Other versions: 7.31 | 7.40 | 7.54


Note

For editing some of the automation objects, the more general interfaces SAP Desktop Office Integration (DOI) and Control Framework (CFW) are now available. The statements of the automation command set should be used only to access automation applications for which there is no such wrapping.

Continue

CREATE OBJECT - OLE

CALL METHOD - OLE

GET PROPERTY - OLE

SET PROPERTY - OLE

FREE OBJECT - OLE