cancel
Showing results for 
Search instead for 
Did you mean: 

Loyalty Date Calculation on Activity Date

Former Member
0 Kudos

Hi Gurus.

I'm am struggling with something that looks very straightforward.

The SAP SPRO Documentation say that for the Date Calculation Procedure for Loyalty, you can either use the Activity Date or the Processing Date.

We have a default date rule in SPRO for the Loyalty Program, Point Type.

Then in the Rule Modeler for the required rules we have assigned the required Date Calculation Profile.

In all cases it always applies the Date Calculation on the Processing Date, not the Activity Date.

Does anyone know how to resolve this.

Many Thanks in advance

Panduranga

Accepted Solutions (1)

Accepted Solutions (1)

VineetRai
Explorer
0 Kudos

Hi Panduranga ,

          This is the behavior of the standard and there is no option in Rule setup to change the behaviour .      You can however code to change this behaviour .

          Do the following steps :

1. Create a  Z class which inherits from CL_LOY_PROC_ENG_HNDLR .

2. Override the method ACCRUE_POINTS . Copy paste the standard code from CL_LOY_PROC_ENG_HNDLR -> ACCRUE_POINTS .

3. At the following line , read the Member Activity and use the Activity date instead of Sy-Datum.

You can use the FM CRM_LOY_MAGENATTR_GBK   to read the Member Activity details by passing GUID.

4. In the following customizing , replace the standard Actions Class name with your Z class name .

Regards,

Vineet Rai

Answers (0)