SAP Reports / Programs

EWULKUSR SAP ABAP Report - EMU Conversion: Lock and Unlock Users







EWULKUSR is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You use this report program to name and save the administrators for the area of Euro conversion...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter EWULKUSR into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

EWZ5 - Lock Users
EWZ6 - Unlock System


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 EWULKUSR. "Basic submit
SUBMIT EWULKUSR AND RETURN. "Return to original report after report execution complete
SUBMIT EWULKUSR VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: EMU Conversion: Lock and Unlock Users
Text Symbol: 029 = Data was changed. Do you want to save?
Text Symbol: 028 = Save input
Text Symbol: 027 = Data was changed.
Text Symbol: 026 = Do you want to save the entry?
Text Symbol: 025 = Euro administrator
Text Symbol: 024 = Locked due t.euro
Text Symbol: 023 = Backgr
Text Symbol: 022 = BDC
Text Symbol: 021 = CPIC
Text Symbol: 020 = Dialog
Text Symbol: 019 = Results of locking/unlocking
Text Symbol: 018 = No users were locked
Text Symbol: 017 = locked and logging on would no longer be possible.
Text Symbol: 016 = You have not selected any administrators. Therefore all users would be
Text Symbol: 015 = Locked
Text Symbol: 014 = EuroAdm.| Name | Group | Type | Status
Text Symbol: 013 = All users not selected are locked with "Lock user"
Text Symbol: 012 = Select all euro administrators (select users)
Text Symbol: 011 = Users not unlocked due to errors:
Text Symbol: 010 = Users unlocked successfully:
Text Symbol: 009 = Unexpected error when unlocking users
Text Symbol: 008 = No authorization for unlocking users
Text Symbol: 007 = Users not locked due to errors:
Text Symbol: 006 = Users locked successfully:
Text Symbol: 005 = Unexpected error when locking users
Text Symbol: 004 = No authorization for locking users
Text Symbol: 003 = does not exist.
Text Symbol: 002 = The user
001 Adm.name Group


INCLUDES used within this REPORT EWULKUSR

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:

ENQUEUE_EWUUSERTYP CALL FUNCTION 'ENQUEUE_EWUUSERTYP'.

BAPI_USER_LOCK CALL FUNCTION 'BAPI_USER_LOCK' EXPORTING USERNAME = USERLIST-BNAME TABLES RETURN = it_return .

SUSR_RFC_USER_INTERFACE * CALL FUNCTION 'SUSR_RFC_USER_INTERFACE' * EXPORTING * USER = USERLIST-BNAME * ACTIVITY = '05' * EXCEPTIONS * USER_DONT_EXIST = 1 * NOT_AUTHORIZED = 2 * OTHERS = 3.

BAPI_USER_UNLOCK CALL FUNCTION 'BAPI_USER_UNLOCK' EXPORTING USERNAME = USERLIST-BNAME TABLES RETURN = it_return .

SUSR_RFC_USER_INTERFACE * CALL FUNCTION 'SUSR_RFC_USER_INTERFACE' * EXPORTING * USER = USERLIST-BNAME * ACTIVITY = '43' * EXCEPTIONS * USER_DONT_EXIST = 1 * NOT_AUTHORIZED = 2 * OTHERS = 3.

POPUP_TO_CONFIRM_WITH_VALUE * CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_VALUE' * EXPORTING * DEFAULTOPTION = 'Y' * OBJECTVALUE = ' ' * TEXT_AFTER = TEXT-026 * TEXT_BEFORE = TEXT-027 * TITEL = TEXT-028 * IMPORTING * ANSWER = ANSWER.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING TITLEBAR = TEXT-028 TEXT_QUESTION = TEXT-029 DEFAULT_BUTTON = '1' IMPORTING ANSWER = ANSWER.



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