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: 

Updating Role Menu.

Former Member
0 Kudos

Hi People,

In one of our customer site, Whenever we have to add transaction code to a role, instead of adding it to role menu we include it in S_TCODE and add corresponding objects manually. Now we would like to update role menu with the transaction codes that have been included in past in S_TCODE. Doing this task manually is tedious activity. Probably i would have to look at the table AGR_HIER and AGR_1251 and find the difference of transaction codes not updated in role menu and update them manually.

Is there anyway to generate role menu?

Thanks in anticipation.

Regards,

Priyank

4 REPLIES 4

Bernhard_SAP
Employee
Employee
0 Kudos

Hi Priyank,

I am aware of a litlle workaround, which you could consider.

1.

identify the profilename for which you want a role with corresponding menue. Either in PFCG->Tab authorizations or you could create a list of all of your roles with manual S_TCODE-authorizations by selecting AGR_1250 in SE16 with option OBJECT=S_TCODE and MODIFIED=U.

2.

Enter the profilename in SU02 and copy the profile to a new name.

Please pay attention to the popup you get, when you copy the generated profile into a manual profile. Do not perform any changes to the original role at this moment until you are finished....

3.

Activate the new manual profile (also in SU02 by pressing 'activate' twice).

4.

Go to SU25

5.

Start point 6

6.

Your new manual profile appears now in the list

7.

Generate a new role out of this manual profile with the options you desire.

8.

Maintain the authorizations in PFCG for the new role/profile

Done.

I hope this information helps a bit to avoid many manual steps....

b.rgds, Bernhard

0 Kudos

Hello Priyank,

Like u said it’s a good thought to maintain all transaction codes through role menu and it is recommended for best practice.

Another way u can test below scenario in sandbox client is :

Take a list of transaction codes (from a particular role) which r not updated in role menu, create a folder in PFCG for the particular role where u want to maintain transactions codes in role menu.

After that go to TRANSACTION tab (by selecting new folder) add transaction codes in one time. Once u enters inside the role adjust duplicate entries.Now u can find the all codes will be maintained through role menu itself.

Hope this info helpful for u.

Rgds,

Gadde.

0 Kudos

Additional info to my suggestion:

Point 2 and 3 can be skipped, if you modify the type of the old profile manually in USR10, field TYP from G to S. Then the profile will show up in the list in SU25/6.

Dont forget to set the value back to G afterwards in USR10...

rgds, Bernhard

Former Member
0 Kudos

Hi Priyank,

Just a question:

Since the transactions were added through S_TCODE, and the objects manually into the role. Over the period, had an object failed, was a SU24 update done for that transaction and then the object added manually back into the appropriate role?

If no, then you will have a tough time determining the SU24 updates. Its something you might not want to miss and perform before you add the tcodes via the role menu.

Thank you

Abhishek