SAP FREE OBJECT ABAP Statements



Get Example source ABAP code based on a different SAP table
  


ID FREE-OBJECT
• FREE OBJECT - OLE ABAP Statement

FREE OBJECT, OLE
Short Reference

ABAP_SYNTAX
FREE OBJECT ole $[NO FLUSH$].

ABAP Addition
... NO FLUSH

What does it do?
This statement releases the memory occupied by the object ole on the current ABAP_ASINSTANCE . 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-subrcMeaning 0Memory released successfully. 1Error in communication with SAP GUI. 2Error in function call in SAP GUI.



Latest notes:

An automation object ole created using CREATE OBJECT must also be released using FREE OBJECT to avoid memory bottlenecks and terminations of the application.
ABAP_HINT_END
• NO FLUSH FREE OBJECT - OLE

ABAP Addition

What does it do?
The meaning of the addition NO FLUSH is included in the description of the statement CREATE OBJECT.



Example ABAP Coding

Release of an Excel object.
ABEXA 00289
ABAP_EXAMPLE_END

Return to menu