Implementation
Use
Communication between the applications server and the frontend is via the RFC interface. The SAPGUI contains special OLE functions which you can address from ABAP programs with normal RFC calls (destination 'SAPGUI').
Process
The implementation is realized by means of the ABAP keywords CREATE OBJECT and FREE OBJECT (which call the function modules AC_CREATE_OBJECT and AC_FREE_OBJECT) and C functions which are written as RFC Server programs.
In CREATE OBJECT, function module OLE_CREATE_OBJECT is called on the frontend using RFC. Then the functions that are necessary for generating an OLE object are called from the Windows OLE library and an object handle is returned to the ABAP processor. From an OLE point of view, the SAPGUI represents the actual OLE client.
The commands CALL METHOD, GET PROPERTY, and SET PROPERTY are bundled on the application server and passed to the SAPGUI function OLE_FLUSH_CALL in the form of an internal table.
FREE OBJECT calls the SAPGUI function OLE_RELEASE_OBJECT which, besides the OLE call, also releases all resources retrieved for this object at the frontend.