cancel
Showing results for 
Search instead for 
Did you mean: 

Delete an assignment between user and call list

former_member1139057
Participant
0 Kudos

Hi'

We assign users to our call lists to execute the calls. We use role IC Manager to this.

Sometimes it happens that a wrong user is assigned and we would like to delete the assignment.

In the UI we can see a trash can - but it is grey and we are not able to use it - how come?

We can manually delete "Object ID" and "Object Type" - but we Wonder why its not possible to use the trach can?!

The problem is present both when we use our own role and using SAP Standard Role

Can anyone help me explain how to activate the trash can?

Br

Lone

Accepted Solutions (1)

Accepted Solutions (1)

bruce_li
Contributor
0 Kudos

Hi Lone,

You can debug at following method. I think in your case, the delete button is set inactive

by following method.

Please note that on WebUI, for an active calllist, you are only allowed to

delete not persisted assignments. If you want to delete, you need to try T-code:

/nCRMD_TM_CLDIST.

CL_CRMCMP_C_ASSIGNMENTSEL_IMPL

METHOD          / DO_PREPARE_OUTPUT

* if the calllist is not inactive, only allow to delete not persisted assignments

* other state like active, preparing active, etc.

    IF lv_active NE abap_false.

      LOOP AT lt_marked INTO lv_marked.

        lr_entity ?= typed_context->assignments->collection_wrapper->find( iv_index = lv_marked ).

        IF lr_entity is not INITIAL.

          lv_can_delete = abap_false. <<<<<<<<<<<<<<<<<<

          EXIT.

        ENDIF.

Best Regards,

Bruce

former_member1139057
Participant
0 Kudos

Hi'

Thank you very much for your feed back

When I set the list as Inactive the button is active.

Best regards

Lone

Answers (0)