cancel
Showing results for 
Search instead for 
Did you mean: 

Online calculation of difference of two dates

Former Member
0 Kudos

Hi All,

I have one characteristics which is a date field say D1

I have to calculate the difference of this date with the current date.

So that when report is run it can give the difference.

like current date- D1.

every time this report is run this calculation should be done .

I will appreciate your replies.

Regards

Rahul

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

as Mr. Kapadia mentionned but you can use standard variable 0DAT instead of a customer exit to get the current date.

hope this helps...

Olivier.

Former Member
0 Kudos

Hi Rahul,

Create 2 formula variables

1. With processing type "Replacement path" which copies existing date field.

2. With processing type "Customer Exit" wchich gets current date. For this you will need to create project in CMOD , include enhancement RSR00001 and write a code to populate date.

3. Create formula which will look like this .

Formula variable for date - formula variable for current date.

Hope that helps.

Regards

Mr Kapadia

Former Member
0 Kudos

Hi ,

Thanks for your reply.

If I am creating the things you guys have advised I am getting error 'No key figure value attached to the structural element'.

Can you guys put some more light on the same.

Regards

Rahul