Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

PHP Parameters to reset password with BAPI_USER_CHANGE

Former Member
0 Likes
924

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!!!

2 REPLIES 2
Read only

SwadhinGhatuary
Active Contributor
0 Likes
726

BAPI USER CHANGE function module introduction & syntax details

Functionality

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               =

          .

Read only

0 Likes
726

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.