Skip to Content
0
Former Member
Feb 08, 2011 at 01:53 AM

JCO adding role to user with BAPI_USER_ACTGROUPS_ASSIGN

84 Views

I'm using JCo to create a user and then add a role to that new user.

I'm guessing I can use BAPI_USER_ACTGROUPS_ASSIGN to do the role assignment part. But I'm not sure how this works.

I have something like this:

JCoFunction roleAssign = connect.getFunction("BAPI_USER_ACTGROUPS_ASSIGN");

JCoParameterList user_info = roleAssign.getImportParameterList();

roleAssign.getImportParameterList().setValue( "USERNAME", "user1");

I can see that PARAMETERS 'INPUT' only takes 1 value for USERNAME, so how do I pass in the ACTIVITYGROUPS table like the documentation seem to suggest?

thanks