Ansicht
Dokumentation

HR_PL_WORD_OLE_FORMLETTER - Export to MSWord 6.0 via Download

HR_PL_WORD_OLE_FORMLETTER - Export to MSWord 6.0 via Download

PERFORM Short Reference   General Data in Customer Master  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

With this function module you can use the mail merge function in MS Word6. As a frontend, you must have a PC with Windows 3.1 or higher and MS WinWord6. This function module does not check the system environment.

The function module takes table data entered by you and transfers it to MS Word in the form of mail merge fields. To do this, it stores the table contents on the PC in a folder you specify (download_path). If you do not enter a file_name, the system uses the default file names WORDFOLE.TXT and WORDFOLE.DOC. If files with those names (or with the name you entered: yourfilename.TXT or .DOC) already exist, they are overwritten.

Activate MS Word

If MS Word is not open, open it. If you want to insert the mail merge fields into an existing document, you can either start MS Word by hand and open the document required, or you can enter the corresponding path and document name under the WORD_DOCUMENT parameter. If you have not set this parameter and there is no word document open, the system creates a new one.

You have the following options regarding the data file of the mail merge document:

- Hide the document
- Create a password for the document
- Create the document without further parameters
- Specify a document name (without extension)

If you save your word document, the system does not ask explicitly for a password. However, if the mail merge document is password-protected, you must enter the password if you want to open the document again.
If you intend to use the mail merge fields again in the future, you should create a password for this function module. If a password is generated, it is only known during runtime.

Example

Notes

The system carries out the transfer from the SAP system to the frontend using the 'WS_DOWNLOAD' function module.

Further information





Parameters

DATA_TAB
DOWNLOAD_PATH
FIELDNAMES
FILE_NAME
HIDDEN
MERGE
NEW_DOCUMENT
PASSWORD_OPTION
PRINT
WORD_DOC_FILE
WORD_PASSWORD

Exceptions

COMMUNICATION_ERROR
DOWNLOAD_PROBLEM
INVALID_FIELDNAMES
USER_CANCELLED

Function Group

HRBASPL_MSWORD_EXPORT

ABAP Short Reference   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 2920 Date: 20240523 Time: 090555     sap01-206 ( 60 ms )