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: 

Challenge of the Day: LSMW FOR SU01

Former Member
0 Kudos
570

Has anyone succeeded in using LSMW for Mass user id creation by Recording SU01?

Well Try this scenario and full 10 Points if you succeed. (Even If not for points pls try this scenario to help me pls, scenario is quite tricky)

Usecase for Recording:

Step1 :Go to Su01

step2: Give a existing user id (****)

step3: Click Copy(****)

Step4: Give the user id you want to create

Step5:Give Password & repeat of it

Step5: Click Save.

source fields: userid i want to create, and passwords (1&2)

Existing user id from which i want to copy will be constant.

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos
214

You might consider using a BAPI in your LSMW instead of a recording. You could use the BAPI BAPI_USER_GET_DETAIL to get the details of the user which you want to copy from, and the BAPI BAPI_USER_CREATE1 to create the new user.

Regards,

Rich Heilman

3 REPLIES 3

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos
215

You might consider using a BAPI in your LSMW instead of a recording. You could use the BAPI BAPI_USER_GET_DETAIL to get the details of the user which you want to copy from, and the BAPI BAPI_USER_CREATE1 to create the new user.

Regards,

Rich Heilman

former_member181962
Active Contributor
0 Kudos
214

YOu may want to use the function module: SUSR_USER_COPY instead of LSMW, if you know a little bit of ABAP.

Regards,

Ravi Kanth Talagana

0 Kudos
214

i will first try SCAT, if not might go for FM.

LSMW was the only tool i was very comfortable using..Its annoying that such a simple transaction cannot be performed using LSMW, because of BNAME field.

Thanks anyways.