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 to change user groups??

fabian_nelis
Explorer
0 Likes
2,118

Hi, is there a bapi to change the user groups?

For the roles and profiles I use BAPI_USER_ACTGROUPS_ASSIGN and BAPI_USER_PROFILES_ASSIGN

but I can't seem to find a bapi to assign groups...

Thanks in advance ,

grtz Dragovian

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,157

HI,

Use FM BAPI_USER_CHANGE in the Import Parameters GROUPSX = X For More info go through the FM documentation

CHeerz

Ram

3 REPLIES 3
Read only

Former Member
0 Likes
1,158

HI,

Use FM BAPI_USER_CHANGE in the Import Parameters GROUPSX = X For More info go through the FM documentation

CHeerz

Ram

Read only

0 Likes
1,157

thanks

Read only

0 Likes
1,157

But when trying to add User to Group using BAPI_USER_CHANGE in the Import Parameters GROUPSX = X

I'm getting following error :

com.sap.conn.jco.JCoRuntimeException: (127) JCO_ERROR_FIELD_NOT_FOUND : Field GROUPS not a member of INPUT

BAPI_USER_CHANGE function work correctly for other parameters such as ADDRESSX, DEFAULTSX, PASSWORDX, LOGONDATAX, ALIASX

But in case GROUPSX I am getting above error.

Also I could able to add all above attributes including GROUPSX to user using sap logon. so it should be possible from BAPI as well.

Could you please provide your input.