RSLDAPTEST is a standard Executable ABAP Report 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 RSLDAPTEST into the relevant SAP transactions such as SE38 or SE80
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: LDAP Function Module Basis Test
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
LDAP_SERVERID_F4 CALL FUNCTION 'LDAP_SERVERID_F4' IMPORTING serverid = p_server.
SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = 0 text = lf_progress.
LDAP_CHECKIN_RFCDEST CALL FUNCTION 'LDAP_CHECKIN_RFCDEST' EXPORTING newdest = p_conn EXCEPTIONS not_alive = 1 other_error = 2 OTHERS = 3.
LDAP_SIMPLEBIND CALL FUNCTION 'LDAP_SIMPLEBIND' EXPORTING serverid = p_server usr_string = lf_user_string pwd_string = lf_pwd_string EXCEPTIONS no_authoriz = 1 config_error = 2 nomore_conns = 3 ldap_failure = 4 not_alive = 5 other_error = 6 OTHERS = 7.
LDAP_DELETE CALL FUNCTION 'LDAP_DELETE' EXPORTING dn_string = lf_dn subtree = 'X' EXCEPTIONS no_authoriz = 1 conn_outdate = 2 ldap_failure = 3 not_alive = 4 other_error = 5 OTHERS = 6.
LDAP_DELETE CALL FUNCTION 'LDAP_DELETE' EXPORTING dn_string = lf_dn subtree = 'X' EXCEPTIONS no_authoriz = 1 conn_outdate = 2 ldap_failure = 3 not_alive = 4 other_error = 5 OTHERS = 6.
LDAP_CREATE CALL FUNCTION 'LDAP_CREATE' EXPORTING entry = ls_entry 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_READ CALL FUNCTION 'LDAP_READ' EXPORTING base_string = lf_dn scope = 0 filter_string = '(objectclass=*)' IMPORTING entries = lt_entries_read EXCEPTIONS no_authoriz = 1 conn_outdate = 2 ldap_failure = 3 not_alive = 4 other_error = 5 OTHERS = 6.
LDAP_DELETE CALL FUNCTION 'LDAP_DELETE' EXPORTING dn_string = lf_dn EXCEPTIONS OTHERS = 0.
LDAP_RENAME CALL FUNCTION 'LDAP_RENAME' EXPORTING dn_string = lf_dn new_rdn_string = g_newrdn new_parent_string = lf_newp delete_old = 'X' 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_string = lf_dn new_rdn_string = g_rdn new_parent_string = lf_newp delete_old = ' ' EXCEPTIONS no_authoriz = 1 conn_outdate = 2 ldap_failure = 3 not_alive = 4 other_error = 5 OTHERS = 6.
LDAP_DELETE CALL FUNCTION 'LDAP_DELETE' EXPORTING dn_string = lf_dn EXCEPTIONS OTHERS = 0.
LDAP_RENAME CALL FUNCTION 'LDAP_RENAME' EXPORTING dn_string = lf_dn new_rdn_string = g_newrdn new_parent_string = '' " --> rename without move delete_old = 'X' EXCEPTIONS no_authoriz = 1 conn_outdate = 2 ldap_failure = 3 not_alive = 4 other_error = 5 OTHERS = 6.
LDAP_UPDATE CALL FUNCTION 'LDAP_UPDATE' EXPORTING entry = ls_entry 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_READ CALL FUNCTION 'LDAP_READ' EXPORTING base_string = lf_dn scope = 0 filter_string = '(objectclass=*)' attributes = lt_attr_in IMPORTING entries = lt_entries_read EXCEPTIONS no_authoriz = 1 conn_outdate = 2 ldap_failure = 3 not_alive = 4 other_error = 5 OTHERS = 6.
LDAP_UPDATE CALL FUNCTION 'LDAP_UPDATE' EXPORTING entry = ls_entry 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_string = lf_dn subtree = 'X' EXCEPTIONS no_authoriz = 1 conn_outdate = 2 ldap_failure = 3 not_alive = 4 other_error = 5 OTHERS = 6.
LDAP_READ CALL FUNCTION 'LDAP_READ' EXPORTING base_string = lf_dn scope = 0 IMPORTING entries = lt_entries EXCEPTIONS no_authoriz = 1 conn_outdate = 2 ldap_failure = 3 not_alive = 4 other_error = 5 OTHERS = 6.
CALL FUNCTION 'LDAP_UNBIND' EXCEPTIONS conn_outdate = 1 ldap_failure = 2 not_alive = 3 other_error = 4 OTHERS = 5.
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 RSLDAPTEST or its description.