Skip to Content
author's profile photo Former Member
Former Member

Need to find a BAPI for the below requirement

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Jun 09, 2008 at 06:10 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 09, 2008 at 06:14 AM

    Hi,

    Try this bapi BAPI_BUPA_ROLE_ADD_2

    or BAPI_USER_PROFILES_ASSIGN

    Regards,

    Srriam

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 09, 2008 at 06:17 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.