SAP OLE2



Get Example source ABAP code based on a different SAP table
  



ABAP and OLE
ABAP can be used to process 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 the Visual Basic Editor called using the Macro menu option.
All automation applications that can be used from ABAP are contained in the database table TOLE, which is maintained using transaction SOLE. This table contains the names of the classes and components supported by the ABAP runtime framework. It also contains type information for adapting different data formats. The automation command set consists of the following ABAP statements:
CREATE OBJECT
CALL METHOD
GET PROPERTY
SET PROPERTY
FREE OBJECT,
where CREATE OBJECT and CALL METHOD must not be confused with the identically named ABAP Objects statements.
The statements of the automation command set are passed from the ABAP runtime framework to the SAP GUI on the current presentation server, which performs 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 the SAP GUI during a flush. By default, a flush is triggered by the next ABAP statement that does not belong to the automation command set.



Latest notes:

For processing 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.
ABAP_HINT_END