cancel
Showing results for 
Search instead for 
Did you mean: 

Making Def Comp WT zero on negative Good money

0 Kudos

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,

Soumya

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

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?

former_member235056
Active Contributor
0 Kudos

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.

Thanks

Ameet