2014 Feb 18 5:41 AM
Hai Experts,
I try to write a report for creating roles. What is the bapi for the transaction code 'PFCG'.If their is no BAPI then in which i have to go to create the role.Please suggest me.
Hai Experts,
I try to write a report for creating roles. What is the bapi for the transaction code 'PFCG'.If their is no BAPI then in which i have to go to create the role.Please suggest me.
2014 Feb 18 5:55 AM
Hello Krishna,
I have never found any BAPI to create a Role , this might be due to security reasons.
You can use BDC if your security guys gives access to you.
For now I can just give a bapi's which might be helpful in your program build .
1. BAPI_USER_ACTGROUPS_ASSIGN will assign users to roles
Thanks.
2014 Feb 18 6:10 AM
Hi,
Thanks for your reply,
PFCG is enjoy transaction . I think BDC not possible. If possible please help me.
2014 Feb 18 6:41 AM
Hi ,
Try to Record the Transaction PFCG using SHDB and run it in Foreground mode and see where it is going wrong . If it is still difficult Try this Bapi "BAPI_CONVERT_DATA_TO_AGR" .
Below are some of the Bapi's which might helpful to you.
ALE_JOBROLE_CLONE
BAPI_CONVERT_DATA_FROM_AGR
BAPI_JOBROLE_CLONE
PFCG_COPY_AGR_GET_NEW_NAMES
PRGN_PFCG_CREATE_CATEGORIES
PRGN_PFCG_CREATE_CATS_NEW
PRGN_PFCG_GET_ALL_CATEGORIES
PRGN_PFCG_PREPARE_TREE
PRGN_PFCG_START
PRGN_PFCG_START_LOAD_ROLES
PRGN_PFCG_START_LOAD_TRANSMISS
PRGN_PFCG_START_SHOW_DYNPRO
KPEP_WL_ROLE1_MAINTAIN_ASSIGNS
BAPI_BUPA_ROLE_ADD
BAPI_BUPA_ROLE_ADD_2
BAPI_BUPA_SET_ROLE
Thanks.
2014 Feb 18 9:52 AM
2014 Feb 18 5:56 AM
hi
there are not a BAPI to create role, so you need using BDC.
regards,
Archer