Office Integration Programming
Use
Process
-
Initialize the Desktop Office Integration:
This starts the SAP Document Container Control in the SAP GUI.
When you initialize the Desktop Office Integration, you specify whether the document should be opened in a separate window or within the SAP GUI window ( in-place).
Declare an instance for the central object of the Office Integration with reference to the interface i_oi_container_control.
-
Create one or more documents:
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 SAP GUI, and the corresponding office application is started.
-
Start the data transfer instance (optional):
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 SAP 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 SAP system that have been filled in the desktop application. You create the table collection with reference to the interface i_oi_table_collection.
-
If you want to use application-specific functions, instantiate the corresponding interface or interfaces:
-
Interpret events for processing (optional):
You can react to events that are triggered by the user in the office application or by the application itself.
-
Close the individual documents or the entire office application:
You can destroy objects that you no longer need by calling special methods.