on 10-13-2023 11:20 AM
from pyrfc import Connection
...
conn = Connection(**conn_params)
PASSWORD = {"PASSWORD":'123456'}
PASSWORDX = {"PASSWORD":'X'}
result = conn.call("BAPI_USER_CHANGE",USERNAME='RPA123456',PASSWORD = PASSWORD,PASSWORDX = PASSWORDX)
...
Report an error:pyrfc._exception.ExternalRuntimeError: 20 (rc=20): key=RFC_INVALID_PARAMETER, message=field 'PASSWORD' not found [MSG: class=, type=, number=, v1-4:=;;;]
Can anyone help get the correct syntax for BAPI_USER_CHANGE to run in Python?
Both import parameters, PASSWORD and PASSWORDX, are structures. The only field in both cases is BAPIPWD and not PASSWD. If you set this field instead, this error message will not happen.
Best regards,
Markus
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
11 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.