Payroll Process log shows following error “RGDIR entry already exists”

When calculating payroll with the payroll program (RPCALC*0 / H**CALC0), simulations are possible, but real executions cannot be totally finished. Process log shows following error: “RGDIR entry already exists”.

This usually happens when table RGDIR is manipulated inside a customer function and the original table is not restored.

It may happen that  table RGDIR has to be read inside customer routines (Include PCBURZ**0) but if after reading RGDIR you manipulate ir (e.g. SORT RGDIR. DELETE RGDIR WHERE…) this will affect the cluster update and lead to inconsistencies.

Therefore, do a copy of RGDIR like:

AUX_RGDIR[] = RGDIR[]

and manipulate AUX_RGDIR instead RGDIR

Was this article helpful?

Related Articles

Leave A Comment?

You must be logged in to post a comment.