SAP Reports / Programs

UPDATE_USREXTID_SID SAP ABAP Report - Copy External Names From Directory Service (SID)







UPDATE_USREXTID_SID 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 UPDATE_USREXTID_SID into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

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.






SUBMIT UPDATE_USREXTID_SID. "Basic submit
SUBMIT UPDATE_USREXTID_SID AND RETURN. "Return to original report after report execution complete
SUBMIT UPDATE_USREXTID_SID VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


NT Security Identifier (SID)
Selection Text: SERVERID = LDAP server
Title: Copy External Names From Directory Service (SID)
Text Symbol: 008 = >> LDAP return code
Text Symbol: 009 = ... found
Text Symbol: 010 = ... and entered in table USREXTID
Text Symbol: 011 = ... but NOT entered in table USREXTID
Text Symbol: 001 = No authorization for view maintenance
Text Symbol: 002 = Cannot lock table USREXTID
Text Symbol: 003 = Call LDAP_SYSTEMBIND
Text Symbol: 004 = Call LDAP_SEARCH for
Text Symbol: 005 = Call LDAP_UNBIND
Text Symbol: 006 = OK: read/modified
Text Symbol: 007 = >> ERROR occurred


INCLUDES used within this REPORT UPDATE_USREXTID_SID

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

LDAP_VALID_SERVERID CALL FUNCTION 'LDAP_VALID_SERVERID' EXPORTING APPLIC = 'USER' IMPORTING SERVERID = SERVERID EXCEPTIONS NOTHING_FOUND = 1 OTHERS = 2.

VIEW_AUTHORITY_CHECK call function 'VIEW_AUTHORITY_CHECK' exporting VIEW_ACTION = 'U' VIEW_NAME = 'VUSREXTID' NO_WARNING_FOR_CLIENTINDEP = 'X' exceptions table_not_found = 5 no_authority = 8 no_clientindependent_authority = 9.

VIEW_ENQUEUE CALL FUNCTION 'VIEW_ENQUEUE' EXPORTING ACTION = 'E' ENQUEUE_MODE = 'E' VIEW_NAME = 'VUSREXTID' ENQUEUE_RANGE = 'X' TABLES SELLIST = RANGETAB EXCEPTIONS CLIENT_REFERENCE = 1 FOREIGN_LOCK = 2 INVALID_ACTION = 3 INVALID_ENQUEUE_MODE = 4 SYSTEM_FAILURE = 5 TABLE_NOT_FOUND = 6 OTHERS = 7.

LDAP_SYSTEMBIND CALL FUNCTION 'LDAP_SYSTEMBIND' EXPORTING SERVERID = SERVERID * WRITEREAD = 'R' * CHANGING * HOLDSESS = 0 EXCEPTIONS NO_AUTHORIZ = 1 * AUTH_ERROR = 2 CONFIG_ERROR = 3 NOMORE_CONNS = 4 * CONN_OUTDATE = 5 LDAP_FAILURE = 6 NOT_ALIVE = 7 OTHER_ERROR = 8 OTHERS = 9.

LDAP_SEARCH CALL FUNCTION 'LDAP_SEARCH' EXPORTING * BASE = '' * SCOPE = 2 * MODE = 'C' * CROP = 'X' FILTER = FILTER * TIMEOUT = TABLES DNS_OUT = DNS1_OUT ATTRS_IO = ATTRS1_IO VALUES_OUT = VALUES1_OUT EXCEPTIONS NO_AUTHORIZ = 1 CONN_OUTDATE = 5 LDAP_FAILURE = 6 NOT_ALIVE = 7 OTHER_ERROR = 8 OTHERS = 9.

LDAP_SEARCH CALL FUNCTION 'LDAP_SEARCH' EXPORTING BASE = DNS1_OUT-TEXT SCOPE = 0 MODE = 'X' * CROP = 'X' FILTER = FILTER * TIMEOUT = TABLES DNS_OUT = DNS2_OUT ATTRS_IO = ATTRS2_IO VALUES_OUT = VALUES2_OUT EXCEPTIONS NO_AUTHORIZ = 1 CONN_OUTDATE = 5 LDAP_FAILURE = 6 NOT_ALIVE = 7 OTHER_ERROR = 8 OTHERS = 9.

LDAP_UNBIND CALL FUNCTION 'LDAP_UNBIND' EXCEPTIONS CONN_OUTDATE = 5 LDAP_FAILURE = 6 NOT_ALIVE = 7 OTHER_ERROR = 8 OTHERS = 9.

LDAP_LASTERR * CALL FUNCTION 'LDAP_LASTERR' * IMPORTING * LDAPRC = RESULT * EXCEPTIONS * CONN_OUTDATE = 5 * NOT_ALIVE = 7 * OTHER_ERROR = 8 * OTHERS = 9.



Contribute (Add Comments)

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 UPDATE_USREXTID_SID or its description.