Summary:
Often there is a requirement to transfer the Loyalty relevan data between SAP-CRM to other systems. There is ofcourse an way to Transfer the data alongwith Account (Business Partner) data through PI or CPI to other System. But if it is needed that, the system should triggger a call when some milestone is reached like:
- New Member
- Member has reached certain Level
- Member has certain Points
We can use the standard mechanism "Open Channel", where you can write logic and call RFC or WebService.
Steps:
In the configuration, you need to define Event to trigger the outbound interaction
- Loyalty -....-> Outbound Corrsspondence -> Define Event
- Define the Event and assign the receiver type for example "New Member" or "Member"
- Loyalty -....-> Outbound Corrsspondence -> Define Outbound Profile
- Here you need to define the Profile and assign the Event from previous Step
- Communication Channel should be "Open"
- Status - Active
- Exceutionmode - Direct or Background
WebUI
After you create a Loyalty Programm or to an existing Loyalty Programm, you need to assign the "Outbound Profile" which you created in previous Step.
BADI:
After the configuration, you need to implement a BADI of Enhancement Spot "CRM_LOY_OUTBOUND_PROCESS_ES"
- In method "ADD_EVENTS" -> you need to append the Outbound Profile to the internal table "et_cust_events". You can also retrict with Objec Type
- In method "HANDLE_OPEN_CHANNEL" -> you can extract all data and call the RFC, WebService as required