I was able to write the code to get the details from SAP thru BAPI_USER_GET_DETAIL, here is attached code to get the email from SAP backend:
import pyrfc
from pyrfc import Connection
setup= pyrfc.Connection(user=X , passwd=Y , mshost=Z , sysid=A , client=B , msserv= C , group=D )
result=setup.call(BAPI_USER_GET_DETAIL, USERNAME=abc)
print (result['ADDRESS']['E_MAIL'])
Expected Result: abc@xyz.com
I am in need to update email address for particular user in SAP, after researching found that by using BAPI_USER_CHANGE
we can update new mail address but tried many times with no luck!
Can anyone please help in getting the correct syntax to run BAPI_USER_CHANGE
in Python?