SAP C1SVC_LOCAL_CONNECTION_CHECK Function Module for NOTRANSL: EHS: Prüft, ob ein Dienst für das aktuelle SAP-System konfigurie
C1SVC_LOCAL_CONNECTION_CHECK is a standard c1svc local connection check SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: EHS: Prüft, ob ein Dienst für das aktuelle SAP-System konfigurie 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 c1svc local connection check FM, simply by entering the name C1SVC_LOCAL_CONNECTION_CHECK into the relevant SAP transaction such as SE37 or SE38.
Function Group: C1SVC
Program Name: SAPLC1SVC
Main Program: SAPLC1SVC
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function C1SVC_LOCAL_CONNECTION_CHECK 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 'C1SVC_LOCAL_CONNECTION_CHECK'"NOTRANSL: EHS: Prüft, ob ein Dienst für das aktuelle SAP-System konfigurie.
EXPORTING
I_GWHOST = "Gateway Host Name
* I_FLG_REFRESH_GWINFO = 'X' "Truth Value
* I_GWSERV = '' "Gateway Service
* I_PROGID = "Identification of a registered RFC server program
EXCEPTIONS
NOT_THIS_R3_SYSTEM = 1 PARAMETER_ERROR = 2 NO_GATEWAYS_FOUND = 3 GWY_NOT_AUTHORIZED = 4 INTERNAL_ERROR = 5
IMPORTING Parameters details for C1SVC_LOCAL_CONNECTION_CHECK
I_GWHOST - Gateway Host Name
Data type: RCGRFCOPT-GWHOSTOptional: No
Call by Reference: No ( called with pass by value option)
I_FLG_REFRESH_GWINFO - Truth Value
Data type: ESEBOOLEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_GWSERV - Gateway Service
Data type: RCGRFCOPT-GWSERVDefault: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_PROGID - Identification of a registered RFC server program
Data type: RCGRFCOPT-PROGIDOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOT_THIS_R3_SYSTEM -
Data type:Optional: No
Call by Reference: Yes
PARAMETER_ERROR -
Data type:Optional: No
Call by Reference: Yes
NO_GATEWAYS_FOUND -
Data type:Optional: No
Call by Reference: Yes
GWY_NOT_AUTHORIZED -
Data type:Optional: No
Call by Reference: Yes
INTERNAL_ERROR - Internal Processing Error
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for C1SVC_LOCAL_CONNECTION_CHECK 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_gwhost | TYPE RCGRFCOPT-GWHOST, " | |||
| lv_not_this_r3_system | TYPE RCGRFCOPT, " | |||
| lv_parameter_error | TYPE RCGRFCOPT, " | |||
| lv_i_flg_refresh_gwinfo | TYPE ESEBOOLE, " 'X' | |||
| lv_i_gwserv | TYPE RCGRFCOPT-GWSERV, " '' | |||
| lv_no_gateways_found | TYPE RCGRFCOPT, " | |||
| lv_i_progid | TYPE RCGRFCOPT-PROGID, " | |||
| lv_gwy_not_authorized | TYPE RCGRFCOPT, " | |||
| lv_internal_error | TYPE RCGRFCOPT. " |
|   CALL FUNCTION 'C1SVC_LOCAL_CONNECTION_CHECK' "NOTRANSL: EHS: Prüft, ob ein Dienst für das aktuelle SAP-System konfigurie |
| EXPORTING | ||
| I_GWHOST | = lv_i_gwhost | |
| I_FLG_REFRESH_GWINFO | = lv_i_flg_refresh_gwinfo | |
| I_GWSERV | = lv_i_gwserv | |
| I_PROGID | = lv_i_progid | |
| EXCEPTIONS | ||
| NOT_THIS_R3_SYSTEM = 1 | ||
| PARAMETER_ERROR = 2 | ||
| NO_GATEWAYS_FOUND = 3 | ||
| GWY_NOT_AUTHORIZED = 4 | ||
| INTERNAL_ERROR = 5 | ||
| . " C1SVC_LOCAL_CONNECTION_CHECK | ||
ABAP code using 7.40 inline data declarations to call FM C1SVC_LOCAL_CONNECTION_CHECK
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 GWHOST FROM RCGRFCOPT INTO @DATA(ld_i_gwhost). | ||||
| DATA(ld_i_flg_refresh_gwinfo) | = 'X'. | |||
| "SELECT single GWSERV FROM RCGRFCOPT INTO @DATA(ld_i_gwserv). | ||||
| DATA(ld_i_gwserv) | = ''. | |||
| "SELECT single PROGID FROM RCGRFCOPT INTO @DATA(ld_i_progid). | ||||
Search for further information about these or an SAP related objects