SAP Function RH_START_EXCEL_WITH_DATA - Starting Excel with Data Download and Execution of a Macro

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
DATA_FILENAME STRING g 0 X Name of Data File on Frontend
DATA_PATH_FLAG HRPATHFLAG C 1 'W' X Flag for Directory Extension
DATA_TABLE TABLE T 0 X Data Table
DELETE_FILE FLAG C 1 'X' X General Flag
MACRO_ENVIRONMENT HRPATHENVM g 8 X Environment Variable for Path Determination
MACRO_FILENAME STRING g 0 X Name of Macro to Be Started
MACRO_PATH_FLAG HRPATHFLAG C 1 'E' X Flag for Directory Extension
WAIT FLAG C 1 'X' X X=Start Excel and Wait

Exception Text
CANCELLED Action cancelled by user
DOWNLOAD_ERROR File could not be created
EXCEL_NOT_INSTALLED Excel Is not Installed on the Frontend
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

Functionality
This module enables you to transfer ASCII data (Parameter DATA_TABLE)to a front end and subsequently to start Excel. The systemautomatically opens the file with the data (parameter DATA_FILENAME).
You can start Excel modally or modelessly (parameter WAIT). If youstart Excel modally, you can specify that the file is to beautomatically deleted when Excel is closed (DELETE_FILE = 'X').
Standard path specifications can be added automatically to the filenames transferred (Parameters DATA_PATH_FLAG, DATA_ENVIRONMENT,MACRO_PATH_FLAG, and MACRO_ENVIRONMENT). Refer to thefunction RH_COMPILE_FILENAME for a listof the index abbreviations currently supported.
In addition, when you start Excel, you can simultaneously load a macro.The name of the macro is in the parameter MACRO_NAME.

Notes
The function module cannot be run in batch. The 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.