Logo

dev-resources.site

for different kinds of informations.

SAP Basis snippets #7

Published at
9/16/2024
Categories
sap
sapbasis
sapgui
usermanagement
Author
ashwinsharmap
Author
13 person written this
ashwinsharmap
open
SAP Basis snippets #7

Have you ever locked DDIC user and pondered how to unlock it? Well, today let’s see how we unlock DDIC user using sap* user.

There exists a parameter login/no_automatic_user_sapstar inside the default profile of your sap system. If it doesn’t exist, we need to add this parameter to perform what we are discussing today.

In some cases, this parameter exists in instance profile too, depending on the system.

This parameter may be set to either 1 or 0.

If it is set to 1, it means that we won’t be able to login to sap system using password pass of sap* user.

So now coming to the point, let’s say we locked the DDIC user. To unlock it we are going to use sap* user.

The first step is to set the parameter login/no_automatic_user_sapstar = 0 in default profile. Set this parameter to zero in instance profile too, if this parameter exists.

Next step is to delete the existing sap* user in usr02 table.

For this connect to SQL with system database as follows.

sqlplus "/as sysdba"
Enter fullscreen mode Exit fullscreen mode

To check if the sap* user exists in the table we execute the following command.

select * from <db_schema>.USR02 where MANDT='000' and BNAME='SAP*'
Enter fullscreen mode Exit fullscreen mode

Here we have to pass the required client to MANDT parameter and SAP* user to BNAME parameter. Enter your database schema in place of db_schema in the above command.

Now we delete the sap* user, if it exists, using the command

delete from <db_schema>.USR02 where MANDT='000' and BNAME='SAP*'
Enter fullscreen mode Exit fullscreen mode

After this confirm by again running the command;

select * from <db_schema>.USR02 where MANDT='000' and BNAME='SAP*'
Enter fullscreen mode Exit fullscreen mode

Now you will be able to login to sap* user using the password pass.

Once logged in go to su01 t-code and reset the DDIC user password, thereby unlocking it.

Hope you found the post useful. Please keep an eye on this page for more such posts. Thank you!! 😊

sap Article's
30 articles in total
Favicon
5 High Paying Jobs You Can Get after SAP FICO Course
Favicon
Unlocking the Power of SAP: A Comprehensive Guide for Businesses
Favicon
Best SAP Training Institute in Hyderabad
Favicon
SAP FICO Training in Hyderabad
Favicon
SAP SuccessFactors
Favicon
SAP FICO: The Ultimate Guide to Mastering Finance and Controlling in 2024
Favicon
Unleashing the Power of SAP ABAP: A Comprehensive Guide for Businesses
Favicon
Unlocking the Power of SAP: A Comprehensive Guide to Streamlining Business Operations
Favicon
Move Data from Hana to PostgreSQL Fast and Easily
Favicon
SAP FICO: An Essential Guide for Businesses to Optimize Financial Management
Favicon
SAP PP (Production Planning): An Essential Guide for Optimizing Manufacturing Processes
Favicon
SAP SD Module: A Comprehensive Guide to Sales and Distribution
Favicon
Master SAP SuccessFactors with Croma Campus: Transform Your HR Skills
Favicon
SAP Material Management Course Eligibility
Favicon
The Role of SAP in Digital Transformation
Favicon
SAP S/4HANA Cloud
Favicon
The future of SAP Hybris developers: Key skills, technologies to focus and career possibilities
Favicon
Roadmap to Ace the SAP SAC Certification Exam
Favicon
Mastering SAP SD: A Comprehensive Guide to SAP Sales and Distribution
Favicon
SAP BTP Cloud
Favicon
SAP BTP (Business Technology Platform)
Favicon
SAP BTP (Business Technology Platform)
Favicon
SAP Basis snippets #7
Favicon
SAP BTP (Business Technology Platform)
Favicon
SAP BTP (Business Technology Platform)
Favicon
Enhance Your SAP Systems Integrating RPA
Favicon
Unlocking Project Excellence: An In-Depth Guide to SAP PS
Favicon
How SAP Can Transform Your Supply Chain Management
Favicon
How to add external email notification to SAP workflow WS20000077?
Favicon
Transforming Utilities with GenAI, AI, and Automations in SAP ISU

Featured ones: