ABAP as OLE2 Automation Controller 

Task

Create an OLE connection between the R/3 system as OLE client and the desktop application EXCEL as OLE server. Create a simple ABAP program that passes customer data to EXCEL and writes it into an EXCEL worksheet, where you can process the data further.

In detail, the ABAP program shall

Overview: Unit Objectives

In this unit you will learn how

Prerequisites

Basics

OLE2 Automation is an OLE2 enhancement in form of an object-oriented interface, which ensures an integration of all Windows applications in the R/3 system that support this interface. This allows you to analyze and process data as from within an ABAP program, but thereby using the entire functionality of a desktop application, such as Microsoft's EXCEL or WINWORD.

OLE2 Automation is an object-oriented interface within R/3, based on RFC. An OLE client (ABAP program) can access objects provided by an OLE server (for example, EXCEL). Control, in this case, is executed by the OLE client.

The objects are accessed via properties and methods. ABAP offers the following key words for manipulating OLE objects:

How to Continue

Architecture

or

Exercise 1: Define OLE Objects and Other Data