SAP LDAP_STARTRFC_LOCAL Function Module for
LDAP_STARTRFC_LOCAL is a standard ldap startrfc local 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 ldap startrfc local FM, simply by entering the name LDAP_STARTRFC_LOCAL into the relevant SAP transaction such as SE37 or SE38.
Function Group: SLDAP_CCMS
Program Name: SAPLSLDAP_CCMS
Main Program: SAPLSLDAP_CCMS
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function LDAP_STARTRFC_LOCAL 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 'LDAP_STARTRFC_LOCAL'".
EXPORTING
* RFCDEST = '' "
IMPORTING
EF_COMMAND = "
EXCEPTIONS
NO_AUTHORIZ = 1 NO_CONNECTOR = 2 NO_RFCDEST = 3 NOT_LOCAL = 4 CONFIG_ERROR = 5 MULTIPLE_REG = 6 GATEWAY_FAILURE = 7
IMPORTING Parameters details for LDAP_STARTRFC_LOCAL
RFCDEST -
Data type: LDAPGATEW-RFCDESTDefault: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for LDAP_STARTRFC_LOCAL
EF_COMMAND -
Data type: STPA-FILEOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_AUTHORIZ -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_CONNECTOR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_RFCDEST -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOT_LOCAL -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CONFIG_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MULTIPLE_REG -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
GATEWAY_FAILURE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for LDAP_STARTRFC_LOCAL 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_rfcdest | TYPE LDAPGATEW-RFCDEST, " '' | |||
| lv_ef_command | TYPE STPA-FILE, " | |||
| lv_no_authoriz | TYPE STPA, " | |||
| lv_no_connector | TYPE STPA, " | |||
| lv_no_rfcdest | TYPE STPA, " | |||
| lv_not_local | TYPE STPA, " | |||
| lv_config_error | TYPE STPA, " | |||
| lv_multiple_reg | TYPE STPA, " | |||
| lv_gateway_failure | TYPE STPA. " |
|   CALL FUNCTION 'LDAP_STARTRFC_LOCAL' " |
| EXPORTING | ||
| RFCDEST | = lv_rfcdest | |
| IMPORTING | ||
| EF_COMMAND | = lv_ef_command | |
| EXCEPTIONS | ||
| NO_AUTHORIZ = 1 | ||
| NO_CONNECTOR = 2 | ||
| NO_RFCDEST = 3 | ||
| NOT_LOCAL = 4 | ||
| CONFIG_ERROR = 5 | ||
| MULTIPLE_REG = 6 | ||
| GATEWAY_FAILURE = 7 | ||
| . " LDAP_STARTRFC_LOCAL | ||
ABAP code using 7.40 inline data declarations to call FM LDAP_STARTRFC_LOCAL
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 RFCDEST FROM LDAPGATEW INTO @DATA(ld_rfcdest). | ||||
| DATA(ld_rfcdest) | = ''. | |||
| "SELECT single FILE FROM STPA INTO @DATA(ld_ef_command). | ||||
Search for further information about these or an SAP related objects