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

BAPI_USER_CREATE1

Former Member
0 Likes
1,203

Hi,

I am using BAPI_USER_CREATE1 to create user.

6 REPLIES 6
Read only

Former Member
0 Likes
926

??

Read only

Former Member
0 Likes
926

>

> Hi,

> I am using BAPI_USER_CREATE1 to create user.

Well done.

Read only

Former Member
0 Likes
926

I am using Bapi_user_create1.

and other function modules for copying roles and profiles

SUSR_USER_AGR_ACTIVITYGR_PUT and BAPI_USER_ACTGROUPS_ASSIGN to copy.

Issue is that some time it copies, and some time not.

y is this so.

Read only

Former Member
0 Likes
926

Praveen,

Check that you use commit after BAPI call correctly. Also monitor accurately in which sequence update is sucessful and when it fails. Check if user is not open user maintaince is not locked. Check the output message of the BAPI for any errors.

I hope if you review this, you will get the answer.

Regards,

Mahesh

Read only

Former Member
0 Likes
926

Hi Mahesh,

I have used BAPI_TRANSACTION_COMMIT.

after making changes.

In I_return i am getting User roles been assigned successfully.

But when i go and check in SU01 it is not been assigned.

Read only

Former Member
0 Likes
926

Importing data into the BAPI structures will do nothing and a commit is wrong as well.

You need to activate the structure of the BAPI where your data is, otherwise nothing happens.

If you read the documentation in transaction BAPI, then I would think that it mentions this (though I have not looked in a while).

Cheers,

Julius