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

mass role creation

Former Member
0 Likes
2,747

Dear gurus,

Was wondering if there is some way to create mass roles or activity groups.I searched everything in PFCG but found nothing.I have to create around 1000 roles in a very short period of time, I heard there are 3rd party tools to assist in creation but don't know which ones..any suggestion is greatly appreciated..

Dear gurus,

Was wondering if there is some way to create mass roles or activity groups.I searched everything in PFCG but found nothing.I have to create around 1000 roles in a very short period of time, I heard there are 3rd party tools to assist in creation but don't know which ones..any suggestion is greatly appreciated..

6 REPLIES 6
Read only

Former Member
0 Likes
1,666

Hi All,

I too am having the same query. Is there any standard BAPI available to automate the creation of roles/profiles.

regards,

Madhavan

Read only

Former Member
0 Likes
1,666

Hello,

Well I am having the same problem, I have to create roles for 1200 users this can turn out to be around 300 different roles.Has anyone found a solution to do this. I heard something about a program called Virsa Role expert, but I do not know if it is a program you have to pay for nor were to download it. Or is there a better of faster solution.

Thanks

Fernando

Read only

0 Likes
1,666

Virsa may be able to help you with this, but it should be looked at from a different perspective to simply creating users.

There are a number of tools that you can use to create your users, eCATT being one of them.

Extended Computer Aided Test Tool (eCATT)is designed as a successor to CATT. It allows a user to record and replay any application running under SAP GUI for Java or SAP GUI for Windows.

Because it is embedded within the SAP application server, it has access to other interfaces, such as function modules, BAPIs, or the SAP database (so that users can perform checks), and the ABAP runtime, which lets users write ABAP routines into test cases.

One usually creates Id's though SU01, but that only allows one by one creation.

Make sure your client setting is enabled with 'X eCATT and CATT allowed'; just in case it is disabled in production.

- create a test case by creating a new user id by calling tcode SU01.

- your case must start with Z, example ZCREATE_NEW_USER. Create this case, put in a title and choose component as BC (basis components).

- Save and choose local if you don't want to transport it or choose a development class (eg: ZDEV) in case you want to transport it later to another environment.

- click the Change button. Then key -in Object as example SU01, and choose the Record button. When it prompts to enter Transaction code, key in SU01 (if for roles,

key-in PFCG) and begin recording. As usual in SU01 create 1 user id, dept field, password,

roles, group and so on.

- Make sure you press Enter on each field because you want to capture the value/object - SCAT is a bit dumb.

- You will see the clock icon on the bottom which means the recording is in process.

When you're done, click the Back button and click the End button to end the recording.

Double click the Object to begin inserting parameters. You will see an object for each field that you run from SU01. Choose the right field example user id (BNAME) and choose 'Insert Import Parameter (F6)' and click Next Screen to replay what you recorded and proceed to choose several other objects like password field (PASSWORD1, PASSWORD2), roles field (AGR_NAME), group field etc. If you happen to choose the wrong object, then you can reset (Edit -> Reset Parameterization). You'll likely see a lot of extraneous data captured and this is because SCAT records every step/dialog.

Once done, choose Back and save the case.

Click 'Goto -> Variant -> Export' and save it.

After that use Ms Excel to open it and begin inserting all other user ids. Save and close. Remember to close this file because SCAT will use it when running.

Go back into SCAT and click Execute, processing mode - Background, choose external file - the one you created with Excel, and execute.

Don't use tcode SU01 during this time as you may interrupt the simulation.

Check the logs.

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
1,666

Hi,

You can use transaction SU10 which allows you to select users based upon a number of criteria (usergroup, role, profile, etc.) and assign them or modify a number of user attributes.

Check this link for more inf.

http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci981088,00.html

Read only

Former Member
0 Likes
1,666

Guys, have u tried CATT trans for mass user creations ? (SCAT). I am pretty sure that you can record SU01 into SCAT and then you can insert as many user as you want into export .csv file.

Letme know if you need more info.

Thanks..

Pritesh

Read only

0 Likes
1,666

Hi Pritesh,

Though su01 may support scat, there is a list input screen in pfcg where the recording will fail.

regards,

Madhavan