SAPMLDAP is a standard Module pool for a dialog screen ABAP Program available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.
If you would like to execute this report or see the full code listing simply enter SAPMLDAP into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
LDAP - LDAP Customizing and Test
This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.
Title: Directory Connection
Text Symbol: 001 = Not Logged On
Text Symbol: 002 = Logged On
Text Symbol: ALR = Already logged on to LDAP server
Text Symbol: CON = Open connection
Text Symbol: DEL = The old connection will be closed when you log on again.
Text Symbol: NOO = No
Text Symbol: QUE = Do you really want to cancel the logon?
Text Symbol: SEQ = Do you want to continue?
Text Symbol: YES = Yes
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_red_light INFO = 'Nicht angemeldet'(001) IMPORTING RESULT = semaph EXCEPTIONS OTHERS = 0.
ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_green_light INFO = 'Angemeldet'(002) IMPORTING RESULT = semaph EXCEPTIONS OTHERS = 0.
POPUP_TO_DECIDE CALL FUNCTION 'POPUP_TO_DECIDE' EXPORTING defaultoption = '2' textline1 = text-alr textline2 = text-del textline3 = text-seq text_option1 = text-yes text_option2 = text-noo titel = text-con IMPORTING answer = choice.
LDAP_CHECKIN_RFCDEST CALL FUNCTION 'LDAP_CHECKIN_RFCDEST' EXPORTING newdest = dest EXCEPTIONS not_alive = 1 other_error = 2 OTHERS = 3.
LDAP_SIMPLEBIND CALL FUNCTION 'LDAP_SIMPLEBIND' EXPORTING serverid = serverid usr = usr pwd = pwd * IMPORTING * LDAPRC = LDAPRC * CHANGING * HOLDSESS = HOLD EXCEPTIONS no_authoriz = 1 config_error = 2 nomore_conns = 3 ldap_failure = 4 not_alive = 5 other_error = 6 OTHERS = 7.
LDAP_SYSTEMBIND CALL FUNCTION 'LDAP_SYSTEMBIND' EXPORTING serverid = serverid writeread = 'W' * IMPORTING * LDAPRC = LDAPRC * CHANGING * HOLDSESS = 0 EXCEPTIONS no_authoriz = 1 config_error = 2 nomore_conns = 3 ldap_failure = 4 not_alive = 5 other_error = 6 OTHERS = 7.
LDAP_CHECKOUT_CONNKEY CALL FUNCTION 'LDAP_CHECKOUT_CONNKEY' IMPORTING ckey = key.
LDAP_CHECKIN_CONNKEY CALL FUNCTION 'LDAP_CHECKIN_CONNKEY' EXPORTING ckey = key.
LDAP_SEARCH CALL FUNCTION 'LDAP_SEARCH' EXPORTING base = base scope = scope mode = mode * CROP = 'X' filter = filter timeout = timeout * IMPORTING * LDAPRC = LDAPRC TABLES dns_out = dns_out attrs_io = lt_attrs_io values_out = vals_out EXCEPTIONS no_authoriz = 1 conn_outdate = 2 ldap_failure = 3 not_alive = 4 other_error = 5 OTHERS = 6.
LDAP_LIST_ATTRIBUTES CALL FUNCTION 'LDAP_LIST_ATTRIBUTES' EXPORTING * SELECT = ' ' showdnx = 'X' aspopup = 'X' * ATTRTRA = ' ' mode = mode * CROPPED = 'X' * IMPORTING * EXIT = EXIT TABLES distnames = dns_out attributs = lt_attrs_io values = vals_out * ATTRLIST = EXCEPTIONS internal_error = 1 OTHERS = 2.
LDAP_COMPARE CALL FUNCTION 'LDAP_COMPARE' EXPORTING dn = dn attr = attr mode = mode IMPORTING res = result * LDAPRC = LDAPRC TABLES value_in = vals_in EXCEPTIONS no_authoriz = 1 conn_outdate = 2 ldap_failure = 3 hexval_error = 4 not_alive = 5 other_error = 6 OTHERS = 7.
LDAP_ADD CALL FUNCTION 'LDAP_ADD' EXPORTING dn = dn mode = mode TABLES attrs_in = attrs_in values_in = vals_in EXCEPTIONS no_authoriz = 1 conn_outdate = 2 param_error = 3 ldap_failure = 4 hexval_error = 5 not_alive = 6 other_error = 7 OTHERS = 8.
LDAP_MODIFY CALL FUNCTION 'LDAP_MODIFY' EXPORTING dn = dn mode = mode TABLES attrs_in = attrs_in values_in = vals_in EXCEPTIONS no_authoriz = 1 conn_outdate = 2 param_error = 3 ldap_failure = 4 hexval_error = 5 not_alive = 6 other_error = 7 OTHERS = 8.
LDAP_DELETE CALL FUNCTION 'LDAP_DELETE' EXPORTING dn = dn subtree = subtree * IMPORTING * LDAPRC = LDAPRC EXCEPTIONS no_authoriz = 1 conn_outdate = 2 ldap_failure = 3 not_alive = 4 other_error = 5 OTHERS = 6.
LDAP_RENAME CALL FUNCTION 'LDAP_RENAME' EXPORTING dn = dn new_rdn = newrdn new_parent = newpar delete_old = delete_old * IMPORTING * LDAPRC = LDAPRC EXCEPTIONS no_authoriz = 1 conn_outdate = 2 ldap_failure = 3 not_alive = 4 other_error = 5 OTHERS = 6.
LDAP_OPTIONS CALL FUNCTION 'LDAP_OPTIONS' EXPORTING writeread = writeread * IMPORTING * LDAPRC = LDAPRC TABLES options_io = opts_io CHANGING holdsess = hold EXCEPTIONS no_authoriz = 1 conn_outdate = 2 ldap_failure = 3 not_alive = 4 other_error = 5 OTHERS = 6.
POPUP_TO_DECIDE CALL FUNCTION 'POPUP_TO_DECIDE' EXPORTING defaultoption = choice textline1 = text-que text_option1 = text-yes text_option2 = text-noo titel = text-con cancel_display = ' ' IMPORTING answer = choice.
LDAP_UNBIND CALL FUNCTION 'LDAP_UNBIND' * IMPORTING * LDAPRC = LDAPRC EXCEPTIONS conn_outdate = 1 ldap_failure = 2 not_alive = 3 other_error = 4 OTHERS = 5.
CALL FUNCTION 'VIEWCLUSTER_MAINTENANCE_CALL' EXPORTING viewcluster_name = 'VC_LDAP' maintenance_action = 'S' EXCEPTIONS client_reference = 1 foreign_lock = 2 viewcluster_not_found = 3 viewcluster_is_inconsistent = 4 missing_generated_function = 5 no_upd_auth = 6 no_show_auth = 7 object_not_found = 8 no_tvdir_entry = 9 no_clientindep_auth = 10 invalid_action = 11 saving_correction_failed = 12 system_failure = 13 unknown_field_in_dba_sellist = 14 missing_corr_number = 15 OTHERS = 16.
VIEW_MAINTENANCE_CALL CALL FUNCTION 'VIEW_MAINTENANCE_CALL' EXPORTING action = 'S' * CORR_NUMBER = ' ' * GENERATE_MAINT_TOOL_IF_MISSING = ' ' * SHOW_SELECTION_POPUP = ' ' view_name = 'V_LDAPGW' * NO_WARNING_FOR_CLIENTINDEP = ' ' * RFC_DESTINATION_FOR_UPGRADE = ' ' * CLIENT_FOR_UPGRADE = ' ' * VARIANT_FOR_SELECTION = ' ' * COMPLEX_SELCONDS_USED = ' ' * TABLES * DBA_SELLIST = * EXCL_CUA_FUNCT = EXCEPTIONS client_reference = 1 foreign_lock = 2 invalid_action = 3 no_clientindependent_auth = 4 no_database_function = 5 no_editor_function = 6 no_show_auth = 7 no_tvdir_entry = 8 no_upd_auth = 9 only_show_allowed = 10 system_failure = 11 unknown_field_in_dba_sellist = 12 view_not_found = 13 OTHERS = 14.
VIEW_MAINTENANCE_CALL CALL FUNCTION 'VIEW_MAINTENANCE_CALL' EXPORTING action = 'S' * CORR_NUMBER = ' ' * GENERATE_MAINT_TOOL_IF_MISSING = ' ' * SHOW_SELECTION_POPUP = ' ' view_name = 'LDAPUSER' * NO_WARNING_FOR_CLIENTINDEP = ' ' * RFC_DESTINATION_FOR_UPGRADE = ' ' * CLIENT_FOR_UPGRADE = ' ' * VARIANT_FOR_SELECTION = ' ' * COMPLEX_SELCONDS_USED = ' ' * TABLES * DBA_SELLIST = * EXCL_CUA_FUNCT = EXCEPTIONS client_reference = 1 foreign_lock = 2 invalid_action = 3 no_clientindependent_auth = 4 no_database_function = 5 no_editor_function = 6 no_show_auth = 7 no_tvdir_entry = 8 no_upd_auth = 9 only_show_allowed = 10 system_failure = 11 unknown_field_in_dba_sellist = 12 view_not_found = 13 OTHERS = 14.
LDAP_UNBIND CALL FUNCTION 'LDAP_UNBIND' * IMPORTING * LDAPRC = LDAPRC EXCEPTIONS conn_outdate = 0 ldap_failure = 0 not_alive = 0 other_error = 0 OTHERS = 0.
LDAP_UNBIND CALL FUNCTION 'LDAP_UNBIND' * IMPORTING * LDAPRC = LDAPRC EXCEPTIONS conn_outdate = 0 ldap_failure = 0 not_alive = 0 other_error = 0 OTHERS = 0.
LDAP_VALID_SERVERID CALL FUNCTION 'LDAP_VALID_SERVERID' * EXPORTING * APPLIC = IMPORTING serverid = serverid EXCEPTIONS nothing_found = 0 "ignore errors OTHERS = 0.
LDAP_CHOOSERFC_LOCAL CALL FUNCTION 'LDAP_CHOOSERFC_LOCAL' " choose default conn.
LDAP_SERVERID_F4 CALL FUNCTION 'LDAP_SERVERID_F4' * EXPORTING * APPLIC = IMPORTING serverid = serverid.
LDAP_CHECKRFC_LOAD CALL FUNCTION 'LDAP_CHECKRFC_LOAD' EXPORTING ldapconn = it_ldapgatew-rfcdest IMPORTING * LDAPLOAD = ldapstat = actstat EXCEPTIONS internal_error = 1 OTHERS = 2.
F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING * ddic_structure = 'LDAPGATEW' retfield = 'RFCDEST' dynpprog = prognr dynpnr = dynpnr dynprofield = dynpfd TABLES value_tab = value_tab field_tab = field_tab * RETURN_TAB = RETURN_TAB EXCEPTIONS parameter_error = 1 no_values_found = 2.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.
This will then be available for everyone to easily find by simply searching on the report name SAPMLDAP or its description.