Working With the Link Server 

The link server contains the R/3 System objects that users can incorporate in the office documents. You also save a list of permitted objects on the link server.

Prerequisites

Before proceeding, you must create the central instance control for managing Office Integration. Refer to Instance for Managing Desktop Office Integration.

Process flow

Initialization

1. Declare an instance with reference to the interface i_oi_link_server:

data: link_server type ref to i_oi_link_server.

2. Use the method get_link_server on the central object for Desktop Office Integration control to create an instance for the link server.

3. Use the method start_link_server in the instance link_server to start the link server

Document Design Phase

4. Use the methods add_string_item, add_table_item and add_binary_item to add items to the link server. Use the method remove_link_item to delete items from the link server.

Before opening the document, you must declare all of the links that you will use in it to the link server.

  1. The data in the link server is placed on the clipboard of the desktop application using the copy_link_item_to_clipboard method.
  2. Document Runtime

  3. If you have changed the data in your application program, and need to update it in the desktop application, use the methods add_string_item, add_table_item and add_binary_item to update them.
  4. Before you leave your program, use the method stop_link_server to switch off the link server and release the memory area.

The links are only updated when you pass the link that you want to update using one of the methods add_string_item, add_table_item2, add_table_item, or add_binary_item.

Remember that you should include error handling after each method call.

Any parameters not contained in the individual method descriptions are listed under Generic Parameters.