SAP Function RH_START_WWORD_WITH_DATA - Start Winword with Data Download

Parameter Reference Type Length Default Optional Text
CODEPAGE ABAP_ENCOD C 20 X Identifier for Character Format (UTF-8, UCS-2, ...)
DATA_ENVIRONMENT HRPATHENVM g 8 X Environment Variable for Path Determination
DATA_FILELENGTH I I 4 X File Length (Only for Binary Files)
DATA_FILENAME STRING g 0 X Name of Data File on Frontend
DATA_FILETYPE CHAR10 C 10 'ASC' X File Format (ASC/BIN)
DATA_PATH_FLAG HRPATHFLAG C 1 'W' X Flag for Directory Extension
DATA_TABLE TABLE T 0 X Text Table
DELETE_FILE FLAG C 1 'X' X X=Delete File Again (only with WAIT='X')
WAIT FLAG C 1 'X' X X=Start Wword and Wait

Exception Text
CANCELLED Action cancelled by user
DOWNLOAD_ERROR File could not be created
FILE_NOT_DELETED File Could Not Be Deleted After Call
INTERNAL_ERROR An Internal Error has Occurred
NO_AUTHORITY No Download Authorization
NO_BATCH Batch Call Not Permitted
WWORD_NOT_INSTALLED Excel Is not Installed on the Frontend

Functionality
This module enables you to transfer ASCII data (Parameter DATA_TAB) toa work center and to open it in Word. You can start Word modally ormodelessly (Parameter WAIT). If you start Word modally, you can specifyin DELETE_FILE whether the data should be removed from the work centerwhen you close Word.
Standard path specifications can be added automatically to the filenames transferred (parameters DATA_PATH_FLAG and DATA_ENVIRONMENT).
Refer to the function RH_COMPILE_FILENAMEfor a list of the index abbreviations currently supported.

Notes
The function module cannot be run in batch, and runtime takes severalseconds the first time the module is called, since a control flush mustbe generated.
This function module must not be used in customer programs.

872785Incorrect code page for Word download in Unicode systems