FREE - Release memory occupied by an external object


Basic form

FREE OBJECT obj.

Effect

Releases the memory needed for object obj . The object cannot be processed afterwards.

The return code value is set as follows:


SY-SUBRC = 0 Object was released successfully.
SY-SUBRC = 1 Error during communication with SAPGUI .
SY-SUBRC = 2 Error during function call in SAPGUI .
The OLE function modules are only implemented in Windows.
FREE OBJECT

Example

Release an EXCEL object:
INCLUDE OLE2INCL. DATA EXCEL TYPE OLE2_OBJECT. CREATE OBJECT EXCEL 'Excel.Application'. FREE OBJECT EXCEL.
Related CREATE OBJECT , SET PROPERTY , GET PROPERTY , CALL METHOD

Index
© SAP AG 1996