Funktionsbaustein RH START EXCEL WITH DATA

Aus SAP-Wiki
Wechseln zu: Navigation, Suche

Dieser Funktionsbaustein RH_START_EXCEL_WITH_DATA startet Excel mit dem Inhalt einer mitgegebenen internen Tabelle. Es kann auch ein Makro angegeben werden, was beim Start der Excel-Datei ausgeführt wird.

CALL FUNCTION 'RH_START_EXCEL_WITH_DATA'
" EXPORTING
"   DATA_FILENAME             =
"   DATA_PATH_FLAG            = 'W'
"   DATA_ENVIRONMENT          =
"   DATA_TABLE                =
"   MACRO_FILENAME            =
"   MACRO_PATH_FLAG           = 'E'
"   MACRO_ENVIRONMENT         =
"   WAIT                      = 'X'
"   DELETE_FILE               = 'X'
"   CODEPAGE                  =
" EXCEPTIONS
"   NO_BATCH                  = 1
"   EXCEL_NOT_INSTALLED       = 2
"   INTERNAL_ERROR            = 3
"   CANCELLED                 = 4
"   DOWNLOAD_ERROR            = 5
"   NO_AUTHORITY              = 6
"   FILE_NOT_DELETED          = 7
"   OTHERS                    = 8
          .
IF SY-SUBRC <> 0.
* Implement suitable error handling here
ENDIF.

Literatur