cancel
Showing results for 
Search instead for 
Did you mean: 

Access Control Engine (ACE) Rights not getting activated

Former Member
0 Kudos

Hi Experts,

I have configured and implemented Access Control Engine as per Ravi's Blog and used Bori's Code, everything went fine, I have activated "Usergroups" , its activated.

But when I tried to activate ACE "RIGHTS" using the same Tx Code: ACE_ACTIVATION. It says "Activation of right: ZACC_RIGHT is already in process" but its not getting activated.

If anyone has already implemented, I would request to share your experience.

Here are the links from where I have configured ACE.

/people/boris.dingenouts/blog/2006/09/18/the-concept-and-implementation-of-crm-ace

/people/ravikiran.chittum/blog/2007/09/19/configuration-implementation-of-crm-access-control-engine-ace-part-1

/people/ravikiran.chittum/blog/2007/10/01/configuration-implementation-of-crm-access-control-engine-ace-part-2

Thanks & Regards

Rohan

Accepted Solutions (0)

Answers (1)

Answers (1)

amarnath_kathi
Active Contributor
0 Kudos

Hi Rohan,

This happens now and then during ACE activation. You can go to monitoring atb and see how many objects are getting activated. Sometimes the activation can be really slow especially if the code is not fine-tuned. Try debugging and see the activation cycle for each object.

hope this helps.

thank You,

Amar.

Former Member
0 Kudos

Hey Amar,

Not even 1 object is shown as activated in MONITOR tab.

Thanks & Regards

Rohan

amarnath_kathi
Active Contributor
0 Kudos

Rohan,

I hope you did trigger the dispatcher job. If so, do debug the code you have written. something must be wrong there.

Amar.

Former Member
0 Kudos

Hey Amar,

Yes , I did trigger the dispatcher job with the following parameters, but I triggered it after implementing the class ZCL_CRM_ACERULE_ACCOUNTS.

Job Name: ACE_DISPATCHER.

ABAP Program name: CRM_ACE_DISPATCHER

Indicator 'Periodic Jobs' : Checked.

Coming to the code, I have used Boris's code as it is, without making any changes. Because my requirement is same.

Thanks & Regards

Rohan

amarnath_kathi
Active Contributor
0 Kudos

Rohan,

The job should be triggered by event 'SAP_CRM_ACE_DISPATCHER_REQUEST'. Modify the job and when you click activate next, check if the instance of the job started in background.

hope this helps.

Amar.

Former Member
0 Kudos

Hey Amar,

I am trying to create a new method ,GET_EMP_RESP, but the associate type which are not given are not found "T_GUID_TAB" & "T_ACTOR_TAB".

That is why, When I execute the method GET_ACTORS_FROM_OBJECTS.

data: ls_object_guids TYPE line of crmt_ace_object_guid,

lv_usr_created like sy-uname,

ls_actor_ids TYPE CRMS_ACE_OBJECT_ACTORS,

lv_actor_guid TYPE BU_PARTNER_GUID,

lt_actor_guids TYPE TABLE OF BU_PARTNER_GUID,

lt_get_Actors TYPE t_guid_tab,

ls_get_Actors TYPE LINE OF t_guid_tab,

lt_cp_guids TYPE t_guid_tab,

ls_failed_objects TYPE CRMS_ACE_OBJECT_GUID.

Its giving the following error.

Class ZCL_CRM_ACERULE_ACCOUNT,Method IF_CRM_ACE_ACTORS_FROM_OBJECT~GET_ACTORS_FROM_OBJECTS Type "T_GUID_TAB" is unknown

Please advice, if there are any suggestions.

Thanks & Regards

Rohan

Former Member
0 Kudos

Hi,

Regarding the first problem, Activation in progress..do the following...

Go to the table : crm_ace_rig_log

see entries for the right, which you are facing problem with and delete only that entry manually, now you can again activate the right, if the same thing happens again that means either it is going into infinite loop somewhere in the code or due to some reason job starts but is not able to complete. you will have to debug and find that out.

Regarding second problem, go the types tab of the class, do following declarations:

types:

BEGIN OF t_guid,

partner_guid TYPE bu_partner_guid,

END OF t_guid .

types:

t_guid_tab TYPE TABLE OF t_guid .

types:

t_actor_tab TYPE TABLE OF bu_partner_guid .

These should solve both the problems, let me know if it helps.

Regards,

Rohit Khetarpal