Skip to Content

Making Def Comp WT zero on negative Good money

Sep 27, 2017 at 10:27 PM


avatar image

Hello all,

We want to make DEf comp wages WT 3821 to zero if negative /5PY exists. Currently 3821 is calculated in function P0169 and /5PY current value is calculated in USTAX function. By the time USTAX function is called, all the cumulations have taken place and its too late to do anythign with 3821.

IS there a way to loop back to the top of schema and reprocess by only initialzising a few tables?

Thank you,


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

2 Answers

Ameet Jassani Sep 28, 2017 at 12:01 PM

Hi Soumya,

You need to write a rule with condition SCOND=T AL and place this rule between LPBEG and LPEND and this will rerun the loop one more time.

Please check ULPC rule under UDNT schema that runs loop using the same logic.

Hope this helps.



10 |10000 characters needed characters left characters exceeded
Soumya Gayatri Sep 29, 2017 at 05:44 PM

Thank you for the initial solution.

The SCOND = T AL is a great suggestion, what i am struggling with is how to manipulate only the WT that needs to be zeroes out in case of negative /5PY as the cumulations have already taken place by this time. IF i reprocess payroll from the beginning I would lose the /5PY value and basically start right over ?

Would it work if i added an offset amount of the WT and did cumulations again in the SCOND = T AL condition?

10 |10000 characters needed characters left characters exceeded