Skip to Content
0

Getting difference between two dates in IT41 through PCR

Dec 01, 2017 at 05:03 AM

69

avatar image

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Rémi Corriveau Dec 01, 2017 at 05:36 PM
0

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.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Remi,

Can you pls guide me which operation i have to use blank below to get the difference days of Z1 and today date?

FZ1T__

0
Nathan M Dec 04, 2017 at 10:51 AM
0

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)


capture.png (16.8 kB)
capture1.png (18.5 kB)
Show 2 Share
10 |10000 characters needed characters left characters exceeded

What Payroll Function calls that pcr?

What are the Inputs to that pcr?

What WT is being processed, and what are it's RTE, NUM and AMT values?

Do WTs 1000 and 1002 share the same splits as the WT being processed?

0

Hi,

This issue is solved. WTs 1000 and 1002 not populated assigned it through temporary variable and its is working now.

Thanks for the inputs.

0