Application Development 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: 

FM for assign a role to a user with subsystem

0 Kudos
235

Hello,

with which FM can I assign a role to a user with a subsystem (like in SU01 roles)?

Best regards,

David

2 REPLIES 2

raymond_giuseppi
Active Contributor
191

Are you looking for BAPI_USER_GET_DETAIL + BAPI_USER_ACTGROUPS_ASSIGN or are you looking for an equivalent for CUA, such as BAPI_USER_LOCACTGROUPS_ASSIGN?

Sandra_Rossi
Active Contributor
191

If you see "subsystem" in SU01, it means that you are using CUA, so you must use a CUA BAPI (BAPI*USER*LOC*, i.e. ignore the BAPI which don't contain *LOC* except BAPI_USER_SYSTEM_ASSIGN).