Question: Hello everyone
The Central User administration has been installed on our system.
The problem I do have now is some users have still the old profiles defined on the CUA server but should be empty. We hare not longer using profiles, we are using roles.
When I tried to do a mass change through SU10, it didn't remove the profile from the users profile into SU01.
Is there any mass change transaction to removed non wanted profile into the table USL04.
Basicly we need to remove all old profiles from the users profile.
Regards
Answer:
Hello everyone
The Central User administration has been installed on our system.
The problem I do have now is some users have still the old profiles defined on the CUA server but should be empty. We hare not longer using profiles, we are using roles.
When I tried to do a mass change through SU10, it didn't remove the profile from the users profile into SU01.
Is there any mass change transaction to removed non wanted profile into the table USL04.
Basicly we need to remove all old profiles from the users profile.
Regards
SAP doesn't provide such a beautiful transaction. You may need to develop CAT script to remove profiles from mass volume of users OR have your abaper to develop a small program to perform this task.
Answer:
I did a program to perform the cleanup.
*&---------------------------------------------------------------------*
*& Report ZWW_CLEAN_USL04
*&
*& Program to delete all Profile from the
*& Central User Administration (CUA).
*&
*& That program has been created because the CUA was containing
*& errors at the KCI rollout
*&
*& The program will delete all profile else than SAP_ALL and SAP_NEW
*& from user CUA profile table
*&---------------------------------------------------------------------*
*& 2007/03/07 D.St-Jacques TSKK901875 Creation
*&
*&---------------------------------------------------------------------*
REPORT ZWW_CLEAN_USL04.
tables: usl04. " CUA user profiles
data: t_usl04 like usl04 occurs 0 with header line.
SELECTION-SCREEN BEGIN OF BLOCK ELEMENT1.
selection-screen comment /1(60) TEXT-001.
PARAMETER P_TEST as checkbox default 'X'.
parameter p_file type string default 'c:\USL04.TXT'.
SELECTION-SCREEN END OF BLOCK ELEMENT1.
at selection-screen.
if p_test is initial.
if p_file is initial.
MESSAGE E011(Z1) WITH
'Output file has to be entered'.
endif.
endif.
Start-of-selection.
select * from usl04 into t_usl04 where profile <> 'SAP_ALL'
and profile <> 'SAP_NEW'.
write:/ t_usl04-bname, t_usl04-subsystem, t_usl04-profile.
append t_usl04.
endselect.
if p_file is not initial.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
* BIN_FILESIZE =
FILENAME = p_file
FILETYPE = 'ASC'
* APPEND = ' '
* WRITE_FIELD_SEPARATOR = ' '
* HEADER = '00'
* TRUNC_TRAILING_BLANKS = ' '
* WRITE_LF = 'X'
* COL_SELECT = ' '
* COL_SELECT_MASK = ' '
* DAT_MODE = ' '
* CONFIRM_OVERWRITE = ' '
* NO_AUTH_CHECK = ' '
* CODEPAGE = ' '
* IGNORE_CERR = ABAP_TRUE
* REPLACEMENT = '#'
* WRITE_BOM = ' '
* TRUNC_TRAILING_BLANKS_EOL = 'X'
* WK1_N_FORMAT = ' '
* WK1_N_SIZE = ' '
* WK1_T_FORMAT = ' '
* WK1_T_SIZE = ' '
* IMPORTING
* FILELENGTH =
TABLES
DATA_TAB = t_usl04
* FIELDNAMES =
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endif.
if p_test is initial and sy-subrc = 0.
loop at t_usl04.
delete from usl04 where bname = t_usl04-bname
and subsystem = t_usl04-subsystem
and profile = t_usl04-profile.
endloop.
endif.
TEXT-001 = Program to delete CUA user profile data (USL04)
P_FILE = Output file name
P_TEST = Test run
Feel free to use the program and modifying it.
The bugs are yours.
How to Earn Rs.25000 every month in internet without Investment?
CUA - Cleanup user profile (USL04)
Labels:
CUA Faqs
Subscribe to:
Post Comments (Atom)
topics
-
▼
2007
(1406)
-
▼
November
(1359)
- Free Download SAP FI Certification study pdf books
- Implementing SAP R/3 on OS/400
- Update SAP Kernel in UNIX based
- Security Audit Log (BC-SEC).pdf
- Security Audit Log.pdf
- Securities,pdf
- Secure Store & Forward / Digital Signatures (BC-SE...
- Secure Network Communications (BC-SEC-SNC)
- Free download use ful T-codes
- I did not find any OSS notes appropriate for my pr...
- How to apply OSS notes number?
- What is OSS Notes number?
- Where can i access SAP OSS?
- WHAT IS OSS
- Disaster Recovery Plan to Restore Production System
- Steps to Install SAP Note in sap
- Difference Between SAP Notes and Support Package
- Question : Subject : Support packages testing
- Five Different "User Type"
- How to solve the Time Zone Definition Problems?
- Setting the User Decimals Format
- Schedule Manager
- Various Important SAP Basis T-Code
- Trace Functions in sap
- System Trace: Error Analysis in sap
- System Trace(ST01) in sap
- Roles and Authorizations Used in Background Proces...
- Deleting Multiple Spool Requests Simultaneously in...
- Logging and Tracing in spool
- Print and Output Management in spool
- Background Job Monitoring Monitor in CCMS
- Monitoring the Database Using the Alert Monitor
- Monitoring the Operating System Using the Alert Mo...
- Monitoring Memory Management Using the Alert Monitor
- Method Dispatching Monitor in CCMS
- Remote Application Server Status Monitor in CCMS
- GRMG Self-Monitoring Monitor in CCMS
- CCMS Selfmonitoring Monitor for System-Wide Data i...
- Logfile Monitoring Monitor in CCMS
- Logon Load Balancing Monitor in CCMS
- Transaction-Specific Dialog Monitor in CCMS
- Workload Collector Monitor in CCMS
- System Errors Monitor in CCMS
- System Configuration Monitor in CCMS
- Syslog Monitor in CCMS
- Spool System Monitor in CCMS
- Security Monitor in CCMS
- Performance Overview Monitor in CCMS
- Operating System Monitor in CCMS
- Filesystems Monitor in CCMS
- Entire System Monitor in CCMS
- Monitoring the Enqueue Service in CCMS
- Dialog per Application Server Monitor in CCMS
- Dialog Overview Monitor in CCMS
- Database Monitor in CCMS
- Transactional RFC and Queued RFC Monitor in CCMS
- Communications Monitor in CCMS
- Buffers Monitor in CCMS
- Background Job Monitoring Monitor(CCMS)
- Background Processing Monitor(CCMS)
- Availability and Performance Overview Monitor (CCMS)
- SAP CCMS Monitor Templates Monitor Set
- Creating and Changing a Monitoring Pause(CCMS)
- Creating and Changing Monitoring Rules(CCMS)
- Configuring Availability Monitoring(CCMS)
- Update Repositories(CCMS)
- Displaying Central Performance History Reports(CCMS)
- Displaying Report Properties
- Scheduling and Executing a Report
- Variables in Group Names
- Creating a Report Definition(CCMS)
- Maintaining Collection and Reorganization Schemata...
- Maintaining Collection and Reorganization Schemata...
- Creating and Editing a Calendar Schema(CCMS)
- Creating and Editing a Day Schema
- Customizing the Alert Monitor(CCMS)
- Resetting MTEs and Alerts(CCMS)
- Reorganizing Completed Alerts(CCMS)
- Display Completed Alerts(CCMS)
- Automatically Complete Alerts(CCMS)
- Completing Alerts(CCMS)
- Starting Methods (CCMS)
- Processing Alerts(CCMS_
- Displaying the Technical View: Central Performance...
- Displaying the Technical View: Threshold Values(CCMS)
- Displaying the Technical View: Status Autoreaction...
- Displaying the Technical View: Status Data Collector
- Displaying the Technical View: Method Allocation
- Displaying the Technical View: Info on MTE
- Display Types and Views of the Alert Monitor(CCMS)
- Properties of Status Attributes (CCMS)
- Properties of Performance Attributes(CCMS)
- Properties of Log Attributes (CCMS)
- General Properties of Monitoring Tree Elements(CCMS)
- Properties of Monitoring Objects and Attributes
- Elements of the Alert Monitoring Tree
- Alert Monitoring Tree(CCMS)
- Monitors(CCMS)
- Monitor Sets (CCMS)
- Elements of the Alert Monitor (CCMS)
-
▼
November
(1359)
No comments:
Post a Comment