SAP LDA_CHECK_LDAP_QUERY Function Module for









LDA_CHECK_LDAP_QUERY is a standard lda check ldap query 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 lda check ldap query FM, simply by entering the name LDA_CHECK_LDAP_QUERY into the relevant SAP transaction such as SE37 or SE38.

Function Group: LDA_QUERY_MAPPING
Program Name: SAPLLDA_QUERY_MAPPING
Main Program:
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function LDA_CHECK_LDAP_QUERY 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 'LDA_CHECK_LDAP_QUERY'"
EXPORTING
* WORK' ' = "
USERGROUP = "
QUERYNAME = "
* QUERYVARIANT = "
* CHECK_MAPPING = "

EXCEPTIONS
QUERY_NOT_FOUND = 1 INFOSET_NOT_FOUND = 2 PERNR_MISSING = 3 VARIANT_NOT_FOUND = 4 MAPPING_INCOMPLETE = 5 QUERY_NOT_GENERATED = 6
.



IMPORTING Parameters details for LDA_CHECK_LDAP_QUERY

WORKSPACE -

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

USERGROUP -

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

QUERYNAME -

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

QUERYVARIANT -

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

CHECK_MAPPING -

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

EXCEPTIONS details

QUERY_NOT_FOUND -

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

INFOSET_NOT_FOUND -

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

PERNR_MISSING -

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

VARIANT_NOT_FOUND -

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

MAPPING_INCOMPLETE -

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

QUERY_NOT_GENERATED -

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

Copy and paste ABAP code example for LDA_CHECK_LDAP_QUERY 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_workspace  TYPE LDA_TYPES-WORKSPACE, "   
lv_query_not_found  TYPE LDA_TYPES, "   
lv_usergroup  TYPE LDA_TYPES-USERGROUP, "   
lv_infoset_not_found  TYPE LDA_TYPES, "   
lv_queryname  TYPE LDA_TYPES-QUERYNAME, "   
lv_pernr_missing  TYPE LDA_TYPES, "   
lv_queryvariant  TYPE LDA_TYPES-QUERYVARIANT, "   
lv_variant_not_found  TYPE LDA_TYPES, "   
lv_check_mapping  TYPE LDA_TYPES-FLAG, "   
lv_mapping_incomplete  TYPE LDA_TYPES, "   
lv_query_not_generated  TYPE LDA_TYPES. "   

  CALL FUNCTION 'LDA_CHECK_LDAP_QUERY'  "
    EXPORTING
         WORKSPACE = lv_workspace
         USERGROUP = lv_usergroup
         QUERYNAME = lv_queryname
         QUERYVARIANT = lv_queryvariant
         CHECK_MAPPING = lv_check_mapping
    EXCEPTIONS
        QUERY_NOT_FOUND = 1
        INFOSET_NOT_FOUND = 2
        PERNR_MISSING = 3
        VARIANT_NOT_FOUND = 4
        MAPPING_INCOMPLETE = 5
        QUERY_NOT_GENERATED = 6
. " LDA_CHECK_LDAP_QUERY




ABAP code using 7.40 inline data declarations to call FM LDA_CHECK_LDAP_QUERY

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 WORKSPACE FROM LDA_TYPES INTO @DATA(ld_workspace).
 
 
"SELECT single USERGROUP FROM LDA_TYPES INTO @DATA(ld_usergroup).
 
 
"SELECT single QUERYNAME FROM LDA_TYPES INTO @DATA(ld_queryname).
 
 
"SELECT single QUERYVARIANT FROM LDA_TYPES INTO @DATA(ld_queryvariant).
 
 
"SELECT single FLAG FROM LDA_TYPES INTO @DATA(ld_check_mapping).
 
 
 


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!