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: 

Need to find a BAPI for the below requirement

Former Member
0 Kudos
147

Hi All,

Need to find a BAPI for the below requirement.

We are assigning roles to users using SU01 T-Code and we are in the process of automating this and since we need a BAPI which can do this. Apart from assigning roles to users, SU01 T-code is doing many functionalities, but if we can get a BAPI which can perform assigning roles to users will suffice the requirement.

Thanks in advance,

Srilakshmi.

3 REPLIES 3

GauthamV
Active Contributor
0 Kudos
71

hi,

check these bapi's..

BAPI_JOBROLE_CLONE Create a User Role in Another System By Copying

BAPI_BUPA_ROLES_GET SAP BP, BAPI: Determine All Roles

BAPI_BUPA_ROLE_ADD SAP BP, BAPI: Add Role

BAPI_BUPA_ROLE_EXISTENCE_CHECK SAP BP, BAPI: Check Existence of Role

BAPI_BUPA_SET_ROLE SAP BP: Set Object Part / Roles

BAPI_GET_EVENTTYPE_FOR_ROLE Determine Business Event Types Using Standard Role

reward points if hlpful.

Former Member
0 Kudos
71

Hi,

Try this bapi BAPI_BUPA_ROLE_ADD_2

or BAPI_USER_PROFILES_ASSIGN

Regards,

Srriam

Former Member
0 Kudos
71

Hi SreeLakshmi

see the list of BAPIs given below.

1065 Business Object Employee

BAPI_JOBROLE_CLONE Create a User Role in Another System By Copying

BAPI_BUPA_ROLES_GET SAP BP, BAPI: Determine All Roles

BAPI_BUPA_ROLE_ADD SAP BP, BAPI: Add Role

BAPI_BUPA_ROLE_EXISTENCE_CHECK SAP BP, BAPI: Check Existence of Role

BAPI_BUPA_SET_ROLE SAP BP: Set Object Part / Roles

BAPI_GET_EVENTTYPE_FOR_ROLE Determine Business Event Types Using Standard Role

BAPI_EMPLOYEET_CHANGEPASSWORD Change employee password

BAPI_EMPLOYEET_CHECKPASSWORD Check employee password

BAPI_EMPLOYEET_CREATE_PW_REG Create entry for employee password

BAPI_EMPLOYEET_DELETE_PW_REG Delete entry for employee password

BAPI_EMPLOYEET_DEQUEUE Unlock employee

BAPI_EMPLOYEET_ENQUEUE Lock employee

BAPI_EMPLOYEET_GET_PW_REG Read entry for employee password

BAPI_EMPLOYEET_INITPASSWORD Initialize employee password

Reward if helpful

Regards

Lakshman