Ansicht
Dokumentation

ABAPFREE_OBJECT - FREE OBJECT

ABAPFREE_OBJECT - FREE OBJECT

General Data in Customer Master   General Material Data  
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.






CL_GUI_FRONTEND_SERVICES - Frontend Services   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 2555 Date: 20240614 Time: 034535     sap01-206 ( 29 ms )