Problem: you want to know if Web UI component/page is being executed from Interaction Center.
Solution: you can do it by checking active applications in the context of the component/page. If the list contains CRMCMP_IC_FRAME application this means that the Interaction Center is active.
Below is a sample code:
READ TABLE cl_bsp_context=>c_app_instances TRANSPORTING NO FIELDS WITH KEY namespace = 'sap' name = 'crmcmp_ic_frame'. IF sy-subrc = 0. " with Interaction Center ELSE. " without Interaction Center ENDIF.
READ TABLE cl_bsp_context=>c_app_instances TRANSPORTING NO FIELDS WITH KEY namespace = 'sap' name = 'crmcmp_ic_frame'. IF sy-subrc = 0. " with Interaction Center ELSE. " without Interaction Center ENDIF.
Komentowanie jest zakończone.