12-02-2005 10:38 AM
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.
12-02-2005 2:12 PM
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
12-05-2005 12:42 PM
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
12-05-2005 2:34 PM
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.