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: 

FM/BAPI to create a role/activity group

Former Member
0 Kudos

Hi all.

I'm looking for a FM/BAPI to create/modify a role. I need to add some authority objects in a new profile by ABAP because I want to copy some of them from an object to another. More or less there are 350 profiles and 50-100 objects in each profile.

Does anyone know how to do it?

Thank you!!!

2 REPLIES 2

Former Member
0 Kudos

I dont think there are any BAPIs but you can try FM searching starting with PRGN*

You will have to use combinations of FM (enqueue, maintain,dequeue etc) to get result.

WolfgangJanzen
Product and Topic Expert
Product and Topic Expert
0 Kudos

How about BAPI_USER_ACTGROUPS_ASSIGN ...?

(Found searching SE37 with pattern "BAPIUSER" ...)

<u>Take care</u>: when using an CUA you might need to use BAPI_USER_LOCACTGROUPS_ASSIGN (to assign roles in the CUA master system).