Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Change admin password

Former Member
0 Kudos

Hi,

I'm very new to SAP.

I need to know how to reset and change password for the build-in admin users:

(change: user for himself, reset: by some other user)

1. sap*

2. ddic

3. earlywatch

... and java ...

4. j2ee_admin

I understand that there is some API for that? can you give some example?

Is there a way to do it from remote?

If so, how?what privieges for change/reset?what are the commands?

if not, what are the alternatives?

tx in advance,

shlom

1 ACCEPTED SOLUTION

Former Member
0 Kudos

It's possible to change admin passwords simply by using Su01 in CUA. Although this may take longer(because they have to be done one at a time) it works just the same.

7 REPLIES 7

Former Member
0 Kudos

Hi,

User management through API for SAP Netweaver is possible.

Follow up the link [here|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/using%20the%20user%20management%20api%20with%20ep%20applications.pdf].

Rakesh

Former Member
0 Kudos

Hmmm... I don't see how Rakesh's answer fits to this question... or am I missing something?

My answer: For the ABAP side, take a look at report RSUSR003 which checks the first initial passwords of the standard users you have mentioned above and some security related parameters which affect them. There are also other standard users for standard scenarios, see [this thread|; for some of the others.

For the Java side it is very similar except completely different, and the user ID's have different names...

Some search terms are J2EE_ADMIN, J2EE_GUEST, SAPJFC, ADSUSER, .... and several possible other users for other scenarios (when setup) as well.

If you use the search, you will find more detailed information here as well.

Cheers,

Julius

Former Member
0 Kudos

It's possible to change admin passwords simply by using Su01 in CUA. Although this may take longer(because they have to be done one at a time) it works just the same.

0 Kudos

Hi guys,

Can I do that using the .NET connector throug BAPI?

I think I have to use the BAPI_USER_CHANGE or SUSR_USER_CHANGE_PASSWORD_RFC...

BUT:

how can I access such BAPIs from my c# code?!

(I couldn't understand it from the .net connector manual.)

Pls note that in the remote machine there is no SAP at all - only the SAP connector.

Is there anything I need beside this connector?

tx again.

shlom

0 Kudos

Hi shlom,

You might get a better response to your last question if you ask about the coding question in one of the developer forums. They may be able to point you towards some code examples for accessing SAP Function Modules via RFC using C#

0 Kudos

I found the solution for that:

In order to do that you will have to install also the PDK.NET from the msdn.

After doing so, when openning the VS and then view server explorers, you will have the option to view SAP.

Add SAPPRoxy.

Add the application server you work with , select the relevant function you need and drag it to the proxy you created.

then from your main class, create new proxy instance and call the function you need.

here is an example for openning a connection:

static void Main(string[] args)

{

SAPProxy1 proxy = new SAPProxy1(); // the ABAP function is in the proxy

string cs = "ASHOST=<....> SYSNR=<...> CLIENT=<....> USER=<...> PASSWD=<...>";

// instead <...> put your real data

proxy.Connection = new SAPConnection(cs);

try

{

// OPEN CONN

proxy.Connection.Open();

// CHECK CONN

if (proxy.Connection.IsOpen)

Console.WriteLine("conn is open");

else

Console.WriteLine("conn is NOT open");

}

......

Former Member
0 Kudos

See my last reply