Ansicht
Dokumentation

ABAPFREE_OBJECT - FREE OBJECT

ABAPFREE_OBJECT - FREE OBJECT

Vendor Master (General Section)   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.
SAP E-Book

FREE OBJECT, OLE

Short Reference



FREE OBJECT ole $[NO FLUSH$].

Addition:

... NO FLUSH

Effect

This statement releases the memory occupied by the object ole on the current . The automation object must have been created using the special statement CREATE OBJECT for automation objects. After the release, the object remains on the current automation server, but can no longer be processed in the ABAP program. The description of the statement CREATE OBJECT applies to the typing of ole.

When the statement FREE OBJECT is passed to the presentation layer, the entire automation queue collected using the addition NO FLUSH is passed.

System Fields

sy-subrc Meaning
0 Memory released successfully.
1 Error in communication with SAP GUI.
2 Error in 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.

Addition

... NO FLUSH

Effect

The meaning of the addition NO FLUSH is included in the description of the statement CREATE OBJECT.

Example

Release of an Excel object.






BAL Application Log Documentation   General Material Data  
This documentation is copyright by SAP AG.

Length: 2555 Date: 20240420 Time: 140229     sap01-206 ( 35 ms )