Hi All,
I have the following in schema
IF ZKMO IF: Check for 2016 Tax Year
PIT WKMP P61 NOAB Process KM Re-imbursibves
ENDIF
PIT -KMP P61 NOAB Process KM Re-imbursibves
ZKMO must calculate using rule -KMP if payroll period is less than 01.2017 ( March 2016) ( e.g payroll period 12.2016 =February 2016)
ZKMO must calculate using rule WKMP if payroll period is anything = or greater than 01.2017 ( payroll period 01.2017 March 2016)
Rule ZKMO id defined as below.
D CMPER 1601 "CHECK FOR MARCH 2016
* SCOND=F IF
< SCOND=T IF
When payroll period is 12.2016 ( 01.02.2016 to 28.02.2016) rule in payroll results is as below: Rule is false therefore -KMP rule is used for calculation.
ZKMO * CMPER 1601
ZKMO * * SCOND=F IF
Payroll run for period 01.2017 (01.03.2016 to 31.03.2016) then rule is as below.
Rule ESGPCR VaKey Operation
ZKMO * CMPER 1601
ZKMO * * SCOND=F IF
ENDIF
I expected rule to be True not false so that rule WKMP is used for calculation instead of -KMP. Please assist me fix schema that rule WKMP is used in period 01.2017 onwards and -KMP only used when payroll period is before 01.2017.