Skip to Content
avatar image
Former Member

Making Def Comp WT zero on negative Good money

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,


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • 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.



    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    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?

    Add comment
    10|10000 characters needed characters exceeded