sapdev logo background
sapdev logo sapdev logo
Comments

SAP OLE2 documentation, setup help and example usage



Return to SAP documentation index


ARTICLE

ABAP and OLE
You can use ABAP to process automation objects whose functions are available in the presentation layer in the form of an OLE Automation server. Only automation objects for Windows are supported. Typical applications that offer an automation interface are Microsoft Office products Excel and Word, in which public classes, their attributes and methods are found in the object catalog of the
Visual Basic Editor at Tools - Macro - Visual Basic Editor - Object Browser .
All automation applications that can be used by ABAP are contained in the database table TOLE , which is maintained using transaction SOLE . This table contains the names of the classes and components supported by the ABAP runtime environment . It also contains type information for adapting different data formats. The automation command set consists of the following ABAP statements:
  • CREATE OBJECT

  • CALL METHOD

  • GET PROPERTY

  • SET PROPERTY

  • FREE OBJECT ,

  • CREATE OBJECT and CALL METHOD should not be confounded with the ABAP Objects statements using the same syntax.
    The statements of the automation command set are transferred from the ABAP runtime environment to the SAP GUI on the current presentation server which is responsible for the actual communication with the automation server. The transfer is not direct, the statements are first buffered in an automation queue and transferred at once to the SAP GUI in a flush call. By default, a flush is triggered by the next ABAP statement that does not belong to the automation command set.

    Note
    For processing some of the automation objects , now the more general interfaces SAP Desktop Office Integration (DOI) and
    Control Framework (CFW) are available. The statements of the automation command set should be used only to access automation applications for which there is no such wrapping.
    Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




    OK_FIELD_GLOSRY
    OLE_AUTOMATION_GLOSRY




    comments powered by Disqus