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: 

copying user to another one

former_member2492
Active Participant
0 Kudos
1,003

How I copy a user to another one

first I get user data using : BAPI_USER_GET_DETAIL

then I create the user passing the above data using :BAPI_USER_CREATE1

I then utilize two other fm to copy roles and profiles: BAPI_USER_ACTGROUPS_ASSIGN, BAPI_USER_PROFILES_ASSIGN.

However I could not find any FM to copy the cost center ,somehow this is not at all in the logon table.

Same for the Output device and LIC DATA tabs are not copied in the new user.

Has anyone been able to copy this data before?

4 REPLIES 4

VenkatRamesh_V
Active Contributor
0 Kudos
530

Hi,

Try BDC.

Regards,

Venkat.

former_member2492
Active Participant
0 Kudos
530

venkatramesh.v BDC's are not a solution to my problem

Patrick_vN
Active Contributor
530

I think it's in the DEFAULTS input-structure of BAPI_USER_CREATE1 (type BAPIDEFAUL field KOSTL)

Regards,

Patrick

0 Kudos
530

thanks , but still there are many others fields required