ABAPFREE_OBJECT - FREE OBJECT

General Material Data   General Material Data  
This documentation is copyright by SAP AG.

FREE OBJECT - OLE

Short Reference



Syntax

FREE OBJECT ole [NO FLUSH].

Addition:

... NO FLUSH

Effect

This statement releases the memory occupied for the object ole on theapplication server. The automation object must have been created with the special statementCREATE OBJECT.After the release, the object is still available on the current presentation server, but can no longer be processed in the ABAP program. For thetypingof ole and the meaning of the addition NO FLUSH, the same description applies as for CREATE OBJECT.

The transfer of the statement FREE OBJECT to the presentation layer causes the transfer ot the entire automation queue collected using the addition NO FLUSH.

System fields

sy-subrcMeaning
0Successful memory release
1Error during communication to SAP GUI
2Error during function call in SAP GUI

Note

An automation object ole created using CREATE OBJECT must also be released using FREE OBJECT to avoid memory bottlenecks and terminations of the application to be controlled.

Addition

... NO FLUSH

Effect

The same description applies for the addition NO FLUSH as for the statement CREATE OBJECT.

Example

Release of an Excel object.

DATA app TYPE ole2_object.

CREATE OBJECT app 'Excel.Application' NO FLUSH.
...
FREE OBJECT app NO FLUSH.


ROGBILLS - Synchronize billing plans   ABAP Short Reference  
This documentation is copyright by SAP AG.


Length: 2803 Date: 20120522 Time: 061008     triton ( 101 ms )