Exercise 5: Terminate Program 

Procedure

Close EXCEL with the method QUIT of object excel and return to ABAP. Then, release OLE objects and resources.

call  method  of  excel  'QUIT'.

 

*

* release storage space reserved for OLE objects

*

free  object  cell.

free  object  book.

free  object  books.

free  object  excel.

 

How to Continue

This was a simple example of an ABAP program that accesses objects of the OLE server MS EXCEL. You can now proceed to enhance the program, for example, by using other OLE servers or by listing in detail the errors possible with an OLE Automation call.