Hi Amrita,
I expect that instance attribute p_cha_0crm_enddat is causing the problem. Did you correctly define the instance attribute p_cha_0crm_enddat? Did you include appropriate coding in method DEFINE to fill instance attribute p_cha_0crm_enddat?
Please have a look at the following SAP Notes for more information (even if it is written for enhancement RSR00002):
- SAP Note 891029 - RSR00002: Virtual chars and key figures in reporting;
- SAP Note 1488910 - Kernel-based BAdI to improve runtime;
- SAP Note 1717880 - Virtual Key Figures & Characteristics.