Show TOC

Mail Merge InterfaceLocate this document in the navigation structure

Use

You define it with reference to the interface i_oi_form. Use this interface to control the mail merge functions of the desktop application (if it supports the interface). The interface allows you to transfer data from the SAP system to the frontend and use it in a mail merge operation.

The interface currently supports Microsoft Word and Lotus Word Pro.

Prerequisites

You must create the instance for document management before you can use the interface.

Process

1. Declare an instance with reference to interfacei_oi_mail_merge:

DATA mail_merge TYPE REF TO i_oi_mail_merge.

2. Use the method get_mail_merge_interface on the document instance for document management to create the instance for the mail merge interface.

3. Use the mail merge interface methods.

Note

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

Caution

You have to ensure that the mail merge fields used within the MS office document are not enclosed by quotes (" "). See also SAP Note 1061381 Information published on SAP site.