how to reset password in SAP using BAPI?

前端 未结 2 871

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: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");
    

提交回复
热议问题