Password change via RFC

Die Frage ist als "gelöst" markiert. Den entsprechend Beitrag findest du hier.

Alles rund um die Sprache ABAP®: Funktionsbausteine, Listen, ALV
2 Beiträge • Seite 1 von 1
2 Beiträge Seite 1 von 1

Password change via RFC

Beitrag von Daniela ( / / 0 / 3 ) »
Hi,

I'm trying to change a user's password remotely by calling the function module SUSR_USER_CHANGE_PASSWORD_RFC.
The user is logged on and wants to change only his own password - so the old password is known.

As soon as i run the test from a Java program with JCo, I get the following error:

--------------------------------------
com.sap.mw.jco.JCO$AbapException: (126) CHANGE_NOT_ALLOWED: CHANGE_NOT_ALLOWED
at com.sap.mw.jco.JCO$Function.getException(JCO.java:17978)
at com.sap.mw.jco.JCO$Client.execute(JCO.java:3143)
at de.securintegration.tests.ChangePassword.main(ChangePassword.java:42)
--------------------------------------

In the code for the function module I found out PWD_RC returns some value < 0, like "Old password not correct", "User not found" or similar.
I know the old password is correct (I tried in upper case as well), the user is existent and the password is complex enough and can be changed. The user has SAP_ALL rights for testing.

How can I figure out what's the exact return code?
Or is there a different problem?

Thanks for any help.

Regards,
Daniela

gesponsert
Stellenangebote auf ABAPforum.com schalten
kostenfrei für Ausbildungsberufe und Werksstudenten


Beitrag von Daniela ( / / 0 / 3 ) »
Hi,

I fixed the problem myself... I was trying to execute the function before setting the input parameters. :oops:

Seite 1 von 1

Vergleichbare Themen

1
Antw.
322
Views
SAP Password Status auf Produktiv setzen
von der_neuling » 26.01.2023 09:39 • Verfasst in ABAP® für Anfänger
6
Antw.
2999
Views
Fehler "Bitte übergeben Sie Benutzer und Password"
von Stentor » 14.01.2006 16:39 • Verfasst in Web-Dynpro, BSP + BHTML
4
Antw.
1960
Views
Change DIS
von Icke0801 » 05.04.2017 16:12 • Verfasst in ABAP® Core
12
Antw.
6061
Views
ON CHANGE OF - HILFE
von Nici » 31.05.2005 11:14 • Verfasst in ABAP® für Anfänger
2
Antw.
3415
Views
IW 38 - Change Layout
von xhuljano » 18.02.2015 16:12 • Verfasst in ABAP® für Anfänger

Über diesen Beitrag

Anonymous
Die Frage ist als "gelöst" markiert. Den entsprechend Beitrag findest du hier.

Unterstütze die Community und teile den Beitrag für mehr Leser und Austausch

Newsletter Anmeldung

Keine Beiträge verpassen! Wöchentlich versenden wir lesenwerte Beiträge aus unserer Community.
Die letzte Ausgabe findest du hier.
Details zum Versandverfahren und zu Ihren Widerrufsmöglichkeiten findest du in unserer Datenschutzerklärung.