2014 Feb 18 11:55 AM
Hi,
I'm trying to make a PHP script that, from a form on i type a user and a new password, i can reset the sap password of that user using the BAPI "BAPI_USER_CHANGE"
I think that the problem that i have is on passing the parameters to the BAPI, i don't know how exactly i have to password the PASSWORD and PASSWORDX parametes.
Could anyone help me with this issue?
Thank you!!!
Hi,
I'm trying to make a PHP script that, from a form on i type a user and a new password, i can reset the sap password of that user using the BAPI "BAPI_USER_CHANGE"
I think that the problem that i have is on passing the parameters to the BAPI, i don't know how exactly i have to password the PASSWORD and PASSWORDX parametes.
Could anyone help me with this issue?
Thank you!!!
2014 Feb 18 12:03 PM
BAPI USER CHANGE function module introduction & syntax details
You can use this method to change the attributes of a user. The existing attributes are overwritten by the attributes transferred to the interface, as long as the change flag is set. The field for the change flag has the name of the field or the structure to be changed,, but is extended by an ‘X’.
Pattern:
CALL FUNCTION 'BAPI_USER_CHANGE'
EXPORTING
USERNAME =
" LOGONDATA =
" LOGONDATAX =
" DEFAULTS =
" DEFAULTSX =
" ADDRESS =
" ADDRESSX =
" PARAMETERX =
" COMPANY =
" COMPANYX =
" SNC =
" SNCX =
" BACK_DISTRIBUTION = ' '
" PASSWORD =
" PASSWORDX =
" ADDCOMX =
" REF_USER =
" REF_USERX =
" ALIAS =
" ALIASX =
" GROUPSX =
" UCLASS =
" UCLASSX =
" EXTIDSX =
TABLES
" PARAMETER =
RETURN =
" ADDTEL =
" ADDFAX =
" ADDTTX =
" ADDTLX =
" ADDSMTP =
" ADDRML =
" ADDX400 =
" ADDRFC =
" ADDPRT =
" ADDSSF =
" ADDURI =
" ADDPAG =
" ADDCOMREM =
" GROUPS =
" PARAMETER1 =
" UCLASSSYS =
" EXTIDHEAD =
" EXTIDPART =
.
2014 Feb 18 12:19 PM
Yes, but, How can i pass this parameters to SAP using PHP?
I tried passing this parameters:
saprfc_import ($fce, "USERNAME" , $username);
saprfc_import ($fce, "PASSWORD" , $bapi_pw);
saprfc_import ($fce, "PASSWORDX" , "X");
But i think that for PASSWORD and PASSWORDX i must send the values using other method.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |