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

Programatically create Security Profiles via BAPI/FM in R/3?

alexander_schuchman
Participant
0 Likes
957

Anyone know of a BAPI or Function Module which I can use to create a NEW Profile or Role(Activity Group)? I am developing a custom security request tool to simplify the process of user role assignment and need to be able to create new roles/activity groups/profiles with specific authorization object values.

Any help would greatly be appreciated. I'd really prefer not using a BDC but that's what I'll have to do unless I get a response.

-Alex

4 REPLIES 4
Read only

athavanraja
Active Contributor
0 Likes
650

S_AUTH_ACTIVITY_GROUPS_LOAD

Regards

Raja

Read only

0 Likes
650

I tried this FM, it returns a list of the existing roles in the system. I did a where used and couldn't find a good example of how to call it properly.

Would you mind posting an example of how I can use this to create a new profile?

Thanks

-Alex

Read only

Former Member
0 Likes
650

Hi,

Check these FMs:

SUSR_USER_DISPLAY_WITH_AUTHS Displays user authorisation objects (Note: may have to debug around authority checks)

BAL_GLB_AUTHORIZATION_GET Assign authorization

BAL_GLB_AUTHORIZATION_RESET Reset authorization

Also check out this link:

Regards,

Anjali

Read only

0 Likes
650

These functions appear to set and get a specific authorization. I need to actually have the system create a role/profile and then assign it to the user permanently.

The other thread you referred to is basically using a CATT or FM based on "Call Transaction", which I would not like to do since the screen could potentially change.