I'm trying to update sap user email by using BAPI_USER_CHANGE BAPI. This is the code:
v_address-e_mail = ls_salida-smtp_addr.
v_addressx-e_mail = 'X'.
CALL FUNCTION 'BAPI_USER_CHANGE'
username = lv_bname
address = v_address
addressx = v_addressx
return = it_return.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
When the execution finish everything seems OK but when I check in SAP user master data, email address is not updated.
Can you tell me how can i do to make it works? or there is another way to update sap user email address?