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: 

Custom report/function module to create role

Former Member
0 Kudos

Hi guys,

I want create a RFC which will take role with authorization details given by user as input parameter, once we excute this function module we should get role with mentioned authorization. can any one tell me what approach should i take to write this ABAP or is there any report which creates the role with mention authorization provided by SAP.

thanks in advance.

regards,

John.

3 REPLIES 3

Former Member
0 Kudos

You can use following.

FM PRGN_RFC_CREATE_ACTIVITY_GROUP

PRGN_ADD_USER_ASSIGNMENT

PRGN_1001_SAVE_USER_ASSIGNMENT

PRGN_1250_SAVE_AUTH_DATA

PRGN_1252_SAVE_ORG_LEVELS

and PRGN_AUTO_GENERATE_PROFILE_NEW

Former Member
0 Kudos

thanks Sharad,

i could able to create role in the system but how do i add authorization to it, i tried with PRGN_1250_SAVE_AUTH_DATA but unsucceed , if you any exposer to this function module please let me know how do i add authorization to newly created role.

thanks,

John

0 Kudos

Hi John,

If you do a where use list on this function module, it will find one example how SAP is using it. You also try to use PRGN_1250_READ_AUTH_DATA for a existing role to see how the structures are being populated. You will also need to assign a node number for new authorization. Also check function modules PRGNNODE.