‎2008 Aug 01 2:51 PM
‎2008 Aug 01 2:52 PM
‎2008 Aug 01 2:52 PM
>
> Hi,
> I am using BAPI_USER_CREATE1 to create user.
Well done.
‎2008 Aug 01 3:04 PM
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.
‎2008 Aug 01 3:20 PM
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
‎2008 Aug 01 3:41 PM
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.
‎2008 Aug 06 7:39 PM
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