Ansicht
Dokumentation

CRM_NOTIF_CHANNELS - Change Processing of Communication Channels

CRM_NOTIF_CHANNELS - Change Processing of Communication Channels

ABAP Short Reference   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

In this activity, you can adapt the processing of the communication channels if the standard processing does not meet your requirements.

To do so, you have to implement customer-specific methods for the handler classes that process the sending of the notifications.

Note
You cannot add communication channels. The Notification Framework is able to process the following communication channels that are delivered with the standard customizing.
  • CRM_ALERT: CRM Alerts

  • EMAIL: E-Mail

  • SERVICE1: Widget

  • SERVICE2: (currently not supported)

  • SERVICE3: (currently not supported)

  • SERVICE4: (currently not supported)

  • SERVICE5: (currently not supported)

  • SMS: SMS

The system uses the handler class to do the following:

  • Determining the communication channel
  • Filling the attribute context
  • Determining the communication data of the users or business partners
  • Sending the entries that are located in the queue

In the standard system, for every channel type a standard processing is available.

If required, implement your customer-specific handler class for the processing of the communication channels. To do so, proceed as follows:

Inherit a customer-specific class (recommended)

  1. Create a new class inheriting from class CL_CRM_NF_HNDL_CHN_ABSTRACT. This class contains some methods that you can reuse (for example, GET_EMAIL_OF_BPARTNER)
  2. Redefine the methods that you want to change.
  3. Call the super method if you want to execute the standard code,
  4. Add your customer-specific enhancements

Creating a customer-specific class

  1. Create a new class which implements the interface IF_CRM_NF_API_CHN_TYPE_HNDL
  2. Implement the following interface methods:
  • IF_CRM_NF_API_CHN_TYPE_HNDL~CHECK_OUTPUT_KEY

The method checks whether the output key (for example, the mail form used) for the channel is valid.
  • IF_CRM_NF_API_CHN_TYPE_HNDL~PERFORM_SEND

The method sends the notifications by the required channels.
  • IF_CRM_NF_API_CHN_TYPE_HNDL~SET_CHANNEL_TYPE

The method specifies the type of output channel.
  • IF_CRM_NF_API_CHN_TYPE_HNDL~PERFORM_FILL

The method fills the attributes available for the Attribute Context for Use in Mail Forms CRM_NF_MFORM. This attribute context is used for creating mail forms for the Notification Framework.
For more information, see Customizing activity Maintain Attribute Contexts for Mail Forms.





rdisp/max_wprun_time - Maximum work process run time   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 3778 Date: 20240523 Time: 180710     sap01-206 ( 34 ms )