Hi Lasse, Shamsul,
some news from the battlefield, we have made some progress:
- This scenario is apparently not supported by CRM by default (has to do nothing with SAP CCtr, just the CRM IC / ERMS actions do not have anything like this predefined.
- SAP CCtr has ActionID as primary key for the email, however, CRM makes no use of this identifier. CRM sends more data to CCtr when making the Push (requestId, procesId), which is then later used to pair the very action from CCtr with the email in CRM.
- SAP CCtr documentation for ICI is inaccurate and contains error(s) in this area (version April 2014).
- We use ICI method IciActionItem_End and it WORKS! One of the problem here is that in our version of SAP CRM (7 EhP2) the ActionID is not stored in CRM - but it is mandatory parameter for the method, so we have to store it in a Z-table.
- Here is snippet of code made by our developper that makes the email "purge" from CCtr:
DATA:
lr_item TYPE REF TO cl_ici_action_item,
lv_action_id TYPE string,
lv_uname TYPE string.
lv_uname = sy-uname.
CREATE OBJECT lr_item
EXPORTING
userid = 'WF-BATCH'.
cl_bcb_customizing=>get_cti_destination( ). See comment below
TRY.
CALL METHOD lr_item->if_ici_action_item~_end
EXPORTING
action_item_id = lv_action_id. See comment below
CATCH cx_root.
ENDTRY.
Comment - here go in debug and fill CL_BCB_CUSTOMIZING=>CC_SOAP_DESTINATION with your RFC destination pointing to CCtr's VU Integrations IP (or where you have your OII component).
Comment - the lv_action_id must be filled with the ActionID, which CCtr sends back as result of push operation. You should be able to find this in transaction CRM_ICI_TRACE for user WF-BATCH.
We will make the call probably on pressing button Reserve in IC Inbox.
And I think I will write a blog about this, once finished , good idea, Lasse...
Regards,
Dawood.