Documentation View

We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!

ABAPFREE_OBJECT - FREE OBJECT

ABAPFREE_OBJECT - FREE OBJECT

PERFORM Short Reference   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
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.






General Material Data   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.

Length: 2555 Date: 20230328 Time: 161437     sap01-206 ( 43 ms )