Skip to Content

Getting difference between two dates in IT41 through PCR

Hi Friends,

I have a requirement. I would like to get how many days difference between two dates maintained in IT41. Let's say dates are Z1(10.09.2017) and Z2(25.10.2017).The difference in calendar days are 46 days. How to get the same in PCR.

I have gone through the forum and checked in PE04 and tried as below, its not working, Can anyone guide me to get the correct PCR?

NUM=FZ1T T

Regards,

Nathan.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Dec 01, 2017 at 05:36 PM

    Find the number of days between the date type Z1 and "Today", and put the result into an Information Time Type (through ADDDB). Then, find the number of days between the date type Z2 and "Today", and put the result into an other Information Time Type. It should then be easy for you to find the difference between these 2 numbers.

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 04, 2017 at 10:51 AM

    Hi Friends,

    Can you help me out in correcting the below PCR?

    ZK and ZJ are date types in date specifications. Require 2 helps in this, its urgent.

    1. I can get the number of days difference in amount correctly if last working day is more than the termination date. Getting wrong number of days difference if the last working days is less than the termination date.

    2. The amount is not getting read in the PCR and hence the is not calculating. (screen shot is attached)

    Add comment
    10|10000 characters needed characters exceeded