Skip to Content
-1

PCR compaire date from date spesification (IT0041) with Fixed Date

Mar 26, 2017 at 06:29 AM

80

avatar image

Hi Experts,

I need to write a pcr to check if date 01 in (IT0041) is less than a fixed date (14.03.2017).

to make the following logic

if date01<14.03.2017
then AMT=0

else
.....

is this possible to accomplish? to to write such a PCR.

thanks.

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

2 Answers

Sravan Savvana Mar 27, 2017 at 11:58 AM
0

Hi Mohammed,

Check the following:

Please maintain fixed date as Date Type '03' in IT0041, for example.

NUM=F03T

NUM-F01T

NUM?0

<

AMT=0

*

----

Please note that the following options are available:

NUM=Faaesb

  • F Fixed indicator for deadline calculation
  • aa Date type: Start date of period to be calculated; if the date type is not 'nn,' the second position is left blank.
  • e Unit, in which the duration is calculated:

T = days

W = week

M = months

C = complete months

K = complete calendar months

N = complete calendar months (rounded up)

J = Years

Y = Complete years

  • s End date of period to be calculated:

(blank) End of current payroll period

J End of current calendar year

A Start of current calendar year

B Start of WPBP period

No other specifications are possible.

  • b If the date type specified in parameter aa does not exist for the person in question, an alternative fixed identification is selected. If 'SPACE' is entered, the date 31.12.9999 is used.
Share
10 |10000 characters needed characters left characters exceeded
Rémi Corriveau Mar 27, 2017 at 04:37 PM
0

If I understand you correctly, if you check how many days between the Date 01 in IT0041 and "Today", and write the result in an Information Time Type, and then if you check how many days between 14.03.2017 (write it in Date 99 in IT0041) and write the result in an other Information Time Type, you will then be able to compare the 2 results.

Share
10 |10000 characters needed characters left characters exceeded