Entering content frameProcess documentation Office Integration Programming Locate the document in its SAP Library structure

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.

  1. Create one or more documents:
  2. 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.

  3. Start the data transfer instance (optional):
  4. 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.

  5. If you want to use application-specific functions, instantiate the corresponding interface or interfaces:

· The Word Processor Interface

· The Form Interface

· The Mail Merge Interface

· The Script Collection

· The Spreadsheet Interface

  1. Interpret events for processing (optional):
  2. You can react to events that are triggered by the user in the office application or by the application itself.

  3. Close the individual documents or the entire office application:

You can destroy objects that you no longer need by calling special methods.

 

 

 

 

Leaving content frame