SAP RSAH_BIW_CALL_SERVER Function Module for RFC Server module for calling the front end RFC server
RSAH_BIW_CALL_SERVER is a standard rsah biw call server SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for RFC Server module for calling the front end RFC server processing and below is the pattern details for this FM, 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 biw call server FM, simply by entering the name RSAH_BIW_CALL_SERVER into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSAH
Program Name: SAPLRSAH
Main Program: SAPLRSAH
Appliation area: B
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function RSAH_BIW_CALL_SERVER 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_BIW_CALL_SERVER'"RFC Server module for calling the front end RFC server.
EXPORTING
* I_HIDE_SAPGUI = "Single-Character Flag
I_PROGID = "Program Name (Complete Path)
I_GWSERV = "Gateway service
I_GWHOST = "Gateway Host Name
EXCEPTIONS
INVALID_PROGRAM_ID = 1 SERVER_NOT_REGISTERED = 2 CONNECT_TO_GATEWAY_FAILED = 3 CONNECT_TO_REG_SERVER_FAILED = 4 CONNECTION_FAILED = 5
IMPORTING Parameters details for RSAH_BIW_CALL_SERVER
I_HIDE_SAPGUI - Single-Character Flag
Data type: CHAR1Optional: Yes
Call by Reference: No ( called with pass by value option)
I_PROGID - Program Name (Complete Path)
Data type: RFCOPT-RFCEXECOptional: No
Call by Reference: No ( called with pass by value option)
I_GWSERV - Gateway service
Data type: RFCOPT-RFCGWSERVOptional: No
Call by Reference: No ( called with pass by value option)
I_GWHOST - Gateway Host Name
Data type: RFCOPT-RFCGWHOSTOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
INVALID_PROGRAM_ID -
Data type:Optional: No
Call by Reference: Yes
SERVER_NOT_REGISTERED -
Data type:Optional: No
Call by Reference: Yes
CONNECT_TO_GATEWAY_FAILED -
Data type:Optional: No
Call by Reference: Yes
CONNECT_TO_REG_SERVER_FAILED -
Data type:Optional: No
Call by Reference: Yes
CONNECTION_FAILED -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for RSAH_BIW_CALL_SERVER 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: | ||||
| lv_i_hide_sapgui | TYPE CHAR1, " | |||
| lv_invalid_program_id | TYPE CHAR1, " | |||
| lv_i_progid | TYPE RFCOPT-RFCEXEC, " | |||
| lv_server_not_registered | TYPE RFCOPT, " | |||
| lv_i_gwserv | TYPE RFCOPT-RFCGWSERV, " | |||
| lv_connect_to_gateway_failed | TYPE RFCOPT, " | |||
| lv_i_gwhost | TYPE RFCOPT-RFCGWHOST, " | |||
| lv_connect_to_reg_server_failed | TYPE RFCOPT, " | |||
| lv_connection_failed | TYPE RFCOPT. " |
|   CALL FUNCTION 'RSAH_BIW_CALL_SERVER' "RFC Server module for calling the front end RFC server |
| EXPORTING | ||
| I_HIDE_SAPGUI | = lv_i_hide_sapgui | |
| I_PROGID | = lv_i_progid | |
| I_GWSERV | = lv_i_gwserv | |
| I_GWHOST | = lv_i_gwhost | |
| EXCEPTIONS | ||
| INVALID_PROGRAM_ID = 1 | ||
| SERVER_NOT_REGISTERED = 2 | ||
| CONNECT_TO_GATEWAY_FAILED = 3 | ||
| CONNECT_TO_REG_SERVER_FAILED = 4 | ||
| CONNECTION_FAILED = 5 | ||
| . " RSAH_BIW_CALL_SERVER | ||
ABAP code using 7.40 inline data declarations to call FM RSAH_BIW_CALL_SERVER
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 RFCEXEC FROM RFCOPT INTO @DATA(ld_i_progid). | ||||
| "SELECT single RFCGWSERV FROM RFCOPT INTO @DATA(ld_i_gwserv). | ||||
| "SELECT single RFCGWHOST FROM RFCOPT INTO @DATA(ld_i_gwhost). | ||||
Search for further information about these or an SAP related objects