Skip to Content
0
May 26, 2011 at 10:23 AM

ABAP role/profile manipulation mismatch

162 Views

Ladies and gentlemen,

I have a a question for you. I would like to copy a role with menu (structured!) and slightly changed authorizations+values.

Unfortunatelly I am able to acomplish either the first or the second part of the task. So maybe a skillful hacker could help me?

When I copy a role with structured menu, I also get the copy of the old profile. So I would have to be able to hack into the profile and change it after the copy. I am not able to do that. If somebody can do that, it is one of the possible solutions for my problem.

There is an option the other way round. I can create an empty role, then create the profile for it (slightly changed according to my needs) and then copy the menu. But the menu copy function does not keep the structure. That`s unfortunate. The way of copying the menu including the structure would be another way how to solve my problem.

Or maybe there are ways how to parametrize all the operations? I feel that it would be a really huge hack, like forging the global variables of the PRGN package or something like that and I am not ready to do that. I would prefer nice, clean and maintanable development if such thing can be done.

Or if I would be able to change the behavior of the "cleansing" module SUPRN_PROFILE_BATCH, it could also help. I am able to use it for menu "refresh", but it does not work for the profile/ auth data refresh. This function does not care about the auth data changed I performed although it can be used for saving the menu operations data. Weird.

If anybody has any suggestions, I would be grateful.

Thank you for your time and effort,

cheers Otto