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

Creating roles using transaction 'PFCG'

Former Member
0 Likes
1,288

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.

5 REPLIES 5
Read only

Former Member
0 Likes
1,202

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.

Read only

0 Likes
1,202

Hi,

Thanks for your reply,

PFCG is enjoy transaction . I think BDC not possible. If possible please help me.

Read only

0 Likes
1,202

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.

Read only

0 Likes
1,202

Hi,

'BAPI_CONVERT_DATA_TO_AGR' give one example for this.

Read only

Former Member
0 Likes
1,202

hi

there are not a BAPI to create role, so you need using BDC.

regards,

Archer