Skip to Content
0
Nov 29, 2007 at 06:52 PM

Tax Calculation

93 Views

Hello gurus,

Is there another way to calculate income tax instead of calling a form "calc_tax_ess" in the payroll driver RPCALCK0? The peformance is so slow when you do it that way. I'm thinking of using a function module to accomplish this.

Sample code of calculating tax:

PERFORM calc_tax_ess IN PROGRAM ('RPCALCK0')

TABLES ptax1

ptax2

ptcrt

ptcrti

pit

ptext

error_ptext

USING

i_salary-abrdt

psw_prot

p_nuper

lc_num_pension_months

pnumpr

ptaxretcode.

Thanks in advance,

Ricky