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

Error while using BAPI_USER_ACTGROUPS_ASSIGN

Former Member
0 Likes
1,419

HI Experts,

In OIM (oracle identity manager) ,  when we are creating the  users in Oracle and assigning 4  roles to the users (For assigning roles to the users we are using BAPI_USER_ACTGROUPS_ASSIGN  bapi ) , we are getting the below error ,

Caused by: RfcException: [PRO|amendoim]
message: The ABAP/4 Open SQL array insert results in duplicate database
records. records in the data base.
Return code: RFC_SYS_EXCEPTION(3)
error group: 104
key: RFC_ERROR_SYSTEM_FAILURE
message class: 00
message type: X
message number: 341
message parameter 0: SAPSQL_ARRAY_INSERT_DUPREC

But when we created users and assigning 1 role at a time . we are not gettign any error . So what could be the problem for this issue.

Kindly suggest some ideas to resolve .

Regards,

Saravana.S

3 REPLIES 3
Read only

0 Likes
880

Hello Saravana,

Try using the FM 'PRGN_USER_ASSIGNMENT_CHANGE' For assigning roles to the users.

Thanks,

Karthik

Read only

0 Likes
880

Hi Karthi ,

Thanks for the reply . we want to use same BAPI for assigning roles... we just wanted to know how to solve this issue.. By adding any code/parameter or any SAP notes available .

Note: system is ECC 6.0

Regards ,

Saravana.S

Read only

sandeep_katoch
Contributor
0 Likes
880

Hi Saravana,

The problems seems like there is duplicate entries when you are creating multiple roles.

Actually when you are passing 4 roles then it is giving this error because an entry already exists but in case of single roles as far as I know the functionality of this BAPI it deletes the roles which are not a part of activitygroups table. So when you are doing it by passing single role at a time the next time the previous role which was assigned is deleted and new one is created that is why not giving the duplicate entry error.

may be you can check once again all the four roles.