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

create user via BAPI_USER_CREATE

former_member573193
Discoverer
0 Likes
671

Hello all,

I try to create via the bapi bapi_user_create an user based on an other user (I use the field REF_USER) because I want to give to the new user the same profile and role that the reference user. But it does not work. The new user is well created but without profile and role.

I have tried also via the bapi BAPI_USER_PROFILES_ASSIGN but it said me that "Assign the associated role to yourself" how I can do that ?

Anybody has an idea ???

Thank you very much ... I am a little bit disappointed ...

1 REPLY 1
Read only

Former Member
0 Likes
518

Hi genevieve,

did you tried it also with BAPI_USER_CREATE1. I read that the BAPI_USER_CREATE is obsolet. And if that dosent work give BAPI_USER_CLONE a chance. Maybe this could help

Thorsten

PS Did your Refrerence user has user type Reference? You will see it in the su01 under logon data

Message was edited by: Thorsten Blechinger