I am trying to reset password for SAP using bapi but i am getting error as \"password is not type of field input\".
I am posting my code below.
Here ge
Try using BAPIPWD or PASSWORD-BAPIPWD instead of PASSWORD, and just in case make sure the password is all caps
The parameter PASSWORD
is typed as BAPIPWD
which is a structure what in turn contains only a single field named BAPIPWD
. Therefore, you need to access the structure approximately like this:
JCO.Structure sPassword = userChangeInput.getStructure("PASSWORD");
sPassword.setValue(newPassword, "BAPIPWD");