Skip to Content
avatar image
Former Member

Delete an assignment between user and call list

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Nov 04, 2015 at 02:01 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi'

      Thank you very much for your feed back 😀

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

      🤣

      Best regards

      Lone