1. Initialize the Desktop Office Integration:
This starts the SAP Document Container Control in the SAPgui.
When you initialize the Desktop Office Integration, you specify whether the document should be opened in a separate window or within the R/3 window (in-place).
Declare an instance for the central object of the Office Integration with reference to the interface i_oi_containercontrol.
Create an instance with reference to the interface i_oi_document_proxy for every document to be opened simultaneously. This starts a document container in the SAPgui, and the corresponding office application is started.
This allows you to work with the link server and table collection.
Link Server: The link server is used for managing data from the ABAP program and transporting it to the Desktop application. You define it with reference to the interface i_oi_link_server.
Objects that you define or store in the R/3 System (fields, internal tables, RTF files, pictures...) and want to insert in a document must be declared to the link server before you open the document.
Table Collection: The table collection is particularly useful for passing tables. You can also use it to pass tables to the R/3 System that have been filled in the desktop application. You create the table collection with reference to the interface i_oi_table_collection.
·
The Word Processor Interface·
The Form Interface·
The Mail Merge Interface·
The Script Collection·
The Spreadsheet InterfaceYou can react to events that are triggered by the user in the office application or by the application itself.
You can destroy objects that you no longer need by calling special methods.