SAP RSAH_LAUNCH_EXCEL Function Module for









RSAH_LAUNCH_EXCEL is a standard rsah launch excel SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for rsah launch excel FM, simply by entering the name RSAH_LAUNCH_EXCEL into the relevant SAP transaction such as SE37 or SE38.

Function Group: RRMX
Program Name: SAPLRRMX
Main Program: SAPLRRMX
Appliation area: B
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function RSAH_LAUNCH_EXCEL pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'RSAH_LAUNCH_EXCEL'"
EXPORTING
* I_GENUNIID = "
* I_WORKBOOKID = "
* I_OBJVERS = RS_C_OBJVERS-ACTIVE "Object Version
* I_HIDE_SAPGUI = "Single-Character Indicator

IMPORTING
E_LOG_HANDLE = "Anwendungs-Log: Handle eines Protokolls
E_SUBRC = "Returncode

TABLES
* I_T_VAR = "Transfer structure for variables

EXCEPTIONS
EXCEL_WRONG_VERSION = 1 EXCEL_VIEWER_NOT_INSTALLED = 2 BEXANALYZER_NOT_INSTALLED = 3 OLE_COMMUNICATION_ERROR = 4 CONNECTION_FAILED = 5 ERROR = 6
.



IMPORTING Parameters details for RSAH_LAUNCH_EXCEL

I_GENUNIID -

Data type: RSRREPDIR-GENUNIID
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_WORKBOOKID -

Data type: RSRWBINDEX-WORKBOOKID
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_OBJVERS - Object Version

Data type: RSRWBINDEX-OBJVERS
Default: RS_C_OBJVERS-ACTIVE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_HIDE_SAPGUI - Single-Character Indicator

Data type: CHAR1
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for RSAH_LAUNCH_EXCEL

E_LOG_HANDLE - Anwendungs-Log: Handle eines Protokolls

Data type: BALLOGHNDL
Optional: No
Call by Reference: No ( called with pass by value option)

E_SUBRC - Returncode

Data type: SY-SUBRC
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for RSAH_LAUNCH_EXCEL

I_T_VAR - Transfer structure for variables

Data type: RRX_X_VAR
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

EXCEL_WRONG_VERSION -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEL_VIEWER_NOT_INSTALLED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

BEXANALYZER_NOT_INSTALLED -

Data type:
Optional: No
Call by Reference: Yes

OLE_COMMUNICATION_ERROR -

Data type:
Optional: No
Call by Reference: Yes

CONNECTION_FAILED -

Data type:
Optional: No
Call by Reference: Yes

ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for RSAH_LAUNCH_EXCEL Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lt_i_t_var  TYPE STANDARD TABLE OF RRX_X_VAR, "   
lv_i_genuniid  TYPE RSRREPDIR-GENUNIID, "   
lv_e_log_handle  TYPE BALLOGHNDL, "   
lv_excel_wrong_version  TYPE BALLOGHNDL, "   
lv_e_subrc  TYPE SY-SUBRC, "   
lv_i_workbookid  TYPE RSRWBINDEX-WORKBOOKID, "   
lv_excel_viewer_not_installed  TYPE RSRWBINDEX, "   
lv_i_objvers  TYPE RSRWBINDEX-OBJVERS, "   RS_C_OBJVERS-ACTIVE
lv_bexanalyzer_not_installed  TYPE RSRWBINDEX, "   
lv_i_hide_sapgui  TYPE CHAR1, "   
lv_ole_communication_error  TYPE CHAR1, "   
lv_connection_failed  TYPE CHAR1, "   
lv_error  TYPE CHAR1. "   

  CALL FUNCTION 'RSAH_LAUNCH_EXCEL'  "
    EXPORTING
         I_GENUNIID = lv_i_genuniid
         I_WORKBOOKID = lv_i_workbookid
         I_OBJVERS = lv_i_objvers
         I_HIDE_SAPGUI = lv_i_hide_sapgui
    IMPORTING
         E_LOG_HANDLE = lv_e_log_handle
         E_SUBRC = lv_e_subrc
    TABLES
         I_T_VAR = lt_i_t_var
    EXCEPTIONS
        EXCEL_WRONG_VERSION = 1
        EXCEL_VIEWER_NOT_INSTALLED = 2
        BEXANALYZER_NOT_INSTALLED = 3
        OLE_COMMUNICATION_ERROR = 4
        CONNECTION_FAILED = 5
        ERROR = 6
. " RSAH_LAUNCH_EXCEL




ABAP code using 7.40 inline data declarations to call FM RSAH_LAUNCH_EXCEL

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
"SELECT single GENUNIID FROM RSRREPDIR INTO @DATA(ld_i_genuniid).
 
 
 
"SELECT single SUBRC FROM SY INTO @DATA(ld_e_subrc).
 
"SELECT single WORKBOOKID FROM RSRWBINDEX INTO @DATA(ld_i_workbookid).
 
 
"SELECT single OBJVERS FROM RSRWBINDEX INTO @DATA(ld_i_objvers).
DATA(ld_i_objvers) = RS_C_OBJVERS-ACTIVE.
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!