ABAP Keyword Documentation → ABAP - Release-Specific Changes → Changes in Release 3.0
OLE2 Automation Controller in Release 3.0
In Release 3.0, the ABAP interpreter command set has been expanded to include key words that allow application programmers to edit external objects. OLE2 was supported as the first object model. The new language elements
CREATE OBJECT
SET PROPERTY
GET PROPERTY
CALL METHOD
FREE OBJECT
make it possible to address all applications that provide functions in the form of an OLE2 Automation Server from ABAP. Examples of this are Microsoft products such as EXCEL or WINWORD.
All applications addressed from ABAP must be entered in a table edited using the transaction
SOLE. This table defines whether type information exists for an application. The type information
describes all the objects that an application can handle, all their methods and properties, and their parameters. It can be loaded into an
AS ABAP so that the ABAP
processor can perform the necessary type conversions and is not dependent on the language of the OLE application.
SAP recommends that only the English names of the methods and object properties are used in ABAP. In
this way, the ABAP program can edit the applications, regardless of the language in which they were installed.
The transaction OLE
makes it possible to activate 3 OLE servers and to test methods and properties by pressing certain keys.
Apart from the ABAP enhancements, an OLE-compatible SAP GUI for 3.0 must also be active.
Other versions: 7.31 | 7.40 | 7.54
AS ABAP as OLE Automation Server
Conversely, an AS ABAP
can itself be used as an automation server, which makes it possible to call function modules remotely
from any OLE Automation Controller. For this purpose, the server program RFCSRV.EXE
must be installed on the front end. For further information, see the RFC Automation User's Guide.