how to reset password in SAP using BAPI?

前端 未结 2 839

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

相关标签:
2条回答
  • 2021-01-28 15:44

    Try using BAPIPWD or PASSWORD-BAPIPWD instead of PASSWORD, and just in case make sure the password is all caps

    0 讨论(0)
  • 2021-01-28 15:54

    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");
    
    0 讨论(0)
提交回复
热议问题