Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 9169

How to create an alert for VIP customers

$
0
0

1. ALERT FOR VIP CUSTOMERS IN INTERACTION CENTER

 

1.1. CREATION OF A CLASS

• Go to transaction SE24 to create a new class

 

image006.jpg

 

• Assign a description

image007.png

• Assign a package and then save


image008.png

• In tab “Caracts.” click in the button “Superclass”

 

image009.jpg

• Assign class CL_CRM_SMF_ABSTRACT_SERVICE in the field “Superclass”. Activate and save the class

 

image010.jpg


• In the tab Methods it’s necessary to redefine the method IF_CRM_SMF_SERVICE~EXECUTE


• Select the method and click the button image012.jpg to redefine the method.

• Upload the source code attached


method IF_CRM_SMF_SERVICE~EXECUTE.


  DATA : lv_string TYPE        string,                 "Result
         lv_fb     TYPE        string,                 "Fact Base
         lo_bdc    TYPE REF TO if_crm_ui_data_context. "Context

  TRY.
      CALL METHOD super->if_crm_smf_service~execute
        EXPORTING
          session            = session
          service_properties = service_properties.

    CATCH cx_root.
  ENDTRY.

* Context instance
  lo_bdc  = cl_crm_ui_data_context_srv=>get_instance( ).


  TRY.

      CLEAR lv_string.
     
*     Searchs for VIP flag main customer - In case true, LV_STRING = "X"     
      lv_string = lo_bdc->get_entity_attribute_as_string( path = '//currentCustomer/BuilFSTreasuryRel/VIP'
                                          iv_suppress_creation = abap_true ).
    CATCH CX_ROOT.
  endtry.


  if lv_string is initial.

    TRY.

*   Searchs for VIP flag in contact person - In case true, LV_STRING = "X"   
      lv_string = lo_bdc->get_entity_attribute_as_string( path = '//CURRENTCONTACT/BuilFSTreasuryRel/VIP'
                                          iv_suppress_creation = abap_true ).


      if lv_string = 'X'.
*       Changes to "Y" to identify that the VIP is a contact person, not the main customer
        lv_string = 'Y'.
      endif.
    ENDTRY.
  endif.

* Set the result
CALL METHOD me->set_fb_attr_by_id
    EXPORTING
      id    = 'VIP'
      value = lv_string.
  DATA: fb TYPE REF TO cl_crm_smf_fact_base.


  fb = session->get_factbase( ).
  lv_fb = fb->get_factbase_as_string( ).

endmethod.

1.2. CONFIGURATION STEPS


• In IMG go to Customer Relationship Management->Interaction Center WebClient->Additional Functions->Intent-Driven Interactions->Service Manager->Define Services
• Create a new entry
image014.jpg


• Define the service as is displayed below. Assign the class that was created early.

 

image015.jpg


• In IMG go to Customer Relationship Management->Interaction Center WebClient->Additional Functions->Intent-Driven Interactions->Define Repository
• Select the context ICRULE the go to attributes

image016.jpg


• Create a new attribute. Use the service Z_BP_FLAG_VIP created early

 

image017.jpg

• Access CRM Web Client using role IC_MANAGER
• Go to Process Modeling->Alert

image018.jpg


• Create a new alert as is displayed  below


image019.jpg

• Go to Process Modeling->Rule Policy to create a new rule
image020.jpg

image021.jpg

image022.jpg
• Assign the business role and the IC event

image023.jpg

• Create the conditions clicking “Add Entry“.
image024.jpg

• Select Flag VIP condition

image025.jpg

 

• Create the action clicking “Add Entry“
image026.jpg

• Select the alert created early
image027.jpg
• Realease the rule and save

image028.jpg

Hope this helps!

 

Best regards,

Caíque


Viewing all articles
Browse latest Browse all 9169

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>