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

Function LDAP_CHECK_MAPPING 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_CHECK_MAPPING'".
EXPORTING
* IF_SERVERID = "Server ID
* IF_LDAPAPPL = "LDAP Application
* IF_SYNC_ERR2WARNING = "
TABLES
* IT_LDAPMAP1 = "
* IT_LDAPMAP2 = "
* IT_LDAPMAP3 = "
* IT_LDAPMAP4 = "
* IT_LDAPMAP5 = "
* IT_LDAPMAP6 = "
ET_RETURN = "Return Parameters
IMPORTING Parameters details for LDAP_CHECK_MAPPING
IF_SERVERID - Server ID
Data type: LDAP_SERVOptional: Yes
Call by Reference: Yes
IF_LDAPAPPL - LDAP Application
Data type: LDAP_APPLOptional: Yes
Call by Reference: Yes
IF_SYNC_ERR2WARNING -
Data type: CHAR1Optional: Yes
Call by Reference: Yes
TABLES Parameters details for LDAP_CHECK_MAPPING
IT_LDAPMAP1 -
Data type: LDAPMAP1Optional: Yes
Call by Reference: Yes
IT_LDAPMAP2 -
Data type: LDAPMAP2Optional: Yes
Call by Reference: Yes
IT_LDAPMAP3 -
Data type: LDAPMAP3Optional: Yes
Call by Reference: Yes
IT_LDAPMAP4 -
Data type: LDAPMAP4Optional: Yes
Call by Reference: Yes
IT_LDAPMAP5 -
Data type: LDAPMAP5Optional: Yes
Call by Reference: Yes
IT_LDAPMAP6 -
Data type: LDAPMAP6Optional: Yes
Call by Reference: Yes
ET_RETURN - Return Parameters
Data type: BAPIRET2Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for LDAP_CHECK_MAPPING 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_if_serverid | TYPE LDAP_SERV, " | |||
| lt_it_ldapmap1 | TYPE STANDARD TABLE OF LDAPMAP1, " | |||
| lv_if_ldapappl | TYPE LDAP_APPL, " | |||
| lt_it_ldapmap2 | TYPE STANDARD TABLE OF LDAPMAP2, " | |||
| lt_it_ldapmap3 | TYPE STANDARD TABLE OF LDAPMAP3, " | |||
| lv_if_sync_err2warning | TYPE CHAR1, " | |||
| lt_it_ldapmap4 | TYPE STANDARD TABLE OF LDAPMAP4, " | |||
| lt_it_ldapmap5 | TYPE STANDARD TABLE OF LDAPMAP5, " | |||
| lt_it_ldapmap6 | TYPE STANDARD TABLE OF LDAPMAP6, " | |||
| lt_et_return | TYPE STANDARD TABLE OF BAPIRET2. " |
|   CALL FUNCTION 'LDAP_CHECK_MAPPING' " |
| EXPORTING | ||
| IF_SERVERID | = lv_if_serverid | |
| IF_LDAPAPPL | = lv_if_ldapappl | |
| IF_SYNC_ERR2WARNING | = lv_if_sync_err2warning | |
| TABLES | ||
| IT_LDAPMAP1 | = lt_it_ldapmap1 | |
| IT_LDAPMAP2 | = lt_it_ldapmap2 | |
| IT_LDAPMAP3 | = lt_it_ldapmap3 | |
| IT_LDAPMAP4 | = lt_it_ldapmap4 | |
| IT_LDAPMAP5 | = lt_it_ldapmap5 | |
| IT_LDAPMAP6 | = lt_it_ldapmap6 | |
| ET_RETURN | = lt_et_return | |
| . " LDAP_CHECK_MAPPING | ||
ABAP code using 7.40 inline data declarations to call FM LDAP_CHECK_MAPPING
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.Search for further information about these or an SAP related objects