Application Development 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: 

BAPI_USER_CREATE1

Former Member
0 Kudos

Hi

Tried to create a user using this standard Fm BAPI_USER_CREATE1.

I'm able to create the user successfully but not able to assign the roles.

Can anybody please tell me abt the parameter REF_USER.

I tried to pass a super users id and it doesnt take and throwing an error saying that

'User is not a reference user(see long text).

Any help.

Regards

vijaya

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Vijaya,

HAve you ensured the SAP user ID you passed in the REF_USER parameter of the BAPI exists.

You can ensure (validate) either from SU01D or database table USR01/2

Please confirm.

Regards,

Aditya

3 REPLIES 3

Former Member
0 Kudos

Hi Vijaya,

HAve you ensured the SAP user ID you passed in the REF_USER parameter of the BAPI exists.

You can ensure (validate) either from SU01D or database table USR01/2

Please confirm.

Regards,

Aditya

tarangini_katta
Active Contributor
0 Kudos

Hi Vijaya,

The roles are not copied to the new user to be created.

In the REF_USER give the user refrence so that whatever the roles having the refrence all willbe copied to u r user.

Thanks,

tarangini_katta
Active Contributor
0 Kudos

Hi VIjaya,

Call one of the Function MOdule to assign the roles to u r user adfter calling BAPI_USER_CREATE1.

SUSR_BAPI_USER_ACTGROUPS_ASSIG

ISAI_USER_ROLES_MAINTAIN

Please let me know if u have any problem

Thanks