Skip to Content

Web-IC END BUTTON custom code validation


Below is the my requirement.

I need to raise a error message when the 'END' Button in IC is pressed without saving newly created POD details under connection object.

Can you please suggest where I need to do code for this validation.



Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Apr 02 at 03:11 PM

    Hi Vinod,

    you can register your controller to the end-interaction-event.

    To do so, you need to register your controller like this:

    " register for interaction started
      DATA(lr_event_service) = cl_crm_ic_services=>get_event_srv_instance( ).
          event_name = cl_crm_ic_interaction_manager=>event_interaction_end_request
          prio       = 99
          listener   = me ).

    Implement the interface IF_CRM_IC_EVENT_LISTENER in your controller.

    Also implement method IF_CRM_IC_EVENT_LISTENER~HANDLE_EVENT:

     CASE event->get_name( ).
        WHEN cl_crm_ic_interaction_manager=>event_interaction_end_request.
          on_interaction_end_request( event ).

    In the event handler method you can raise the error message.

    I think this should already interrupt the end-event.

    Please reward if helpful.


    Add comment
    10|10000 characters needed characters exceeded