Professional Documents
Culture Documents
IN00 Schema
IN00 Schema
COM ****************************************
COM Payroll Schema for India
COM ****************************************
COPY XIN0 * Initialisation of payroll
COM Initialization INTERNATIONAL
BLOCK BEG Initialization of Payroll
PGM ABR Program type for payroll
UPD YES Update database (YES/NO)
OPT INFT Read used infotypes only
OPT TIME Import all time infotypes
CHECK ABR Check against PA03
BLOCK END Initialization of Payroll
* END OF COPY XIN0
COPY INBD * Read basic data
COM Basic data India
BLOCK BEG Edit basic data
ENAME Determine name of EE (infotype 0001)
INCHD To implement changed data
WPBP Read work center/basic pay data
ININI Set FY Dates and ALGRP tables
IF SP=B * If Correction run
ELSE * else
P0580 Read Previous Employment Tax Details
P0581 Read Read Housing(HRA / CLA / COA)
P0582 Read Read Exemptions
P0584 Read Read Income From Other Sources
P0585 Read Read Section 80 Deductions
P0586 Read Investment Details (Sec88)
P0587 Read Provident Fund Contribution
P0588 Read Other Statutory Deductions
P0583 Read Car & Conveyance
P0590 Read Long term reimbursements
P185I Read ID Details
ENDIF * End
GON Continue if data complete
XGP * Global Employment Payroll
BLOCK END
* END OF COPY INBD
IF SPRN If special run
RFRSH IT Clear internal table IT
ENDIF Endif
COPY XPR0 * Import previous result current period
BLOCK BEG Get previous result of period for V0
IF R Retro Calculation?
LPBEG RC Loop at prev. results ( still valid
IMPRT O Import old result
PITAB M OV0 Merge OV0, V0znr with V0, V0ZNR
LPEND End Loop at ...
ENDIF To: Retro Calculation?
BLOCK END
* END OF COPY XPR0
COPY XLR0 * Import last payroll results
BLOCK BEG Import last payroll result
COM Import last payroll result
IMPRT L Import last result
PORT X006 P06 NOAB Transfer relevant data to LRT
SETCU Prepare CRT (old results)
BLOCK END Import last payroll result
* END OF COPY XLR0
COPY INR0 * Import last payroll results
Schema: ZIY0
LPBEG RC
IMPRT O Import Old results
PORT IN49 GEN NOAB Import 1DSD ROR wage types from ORT
PIT INT1 NOAB * Delete recalculated value of tax from IT
PORT INDT NOAB * Import /460 from ORT
PORT INTX NOAB Import net tax wage type from ORT
IF INES * If ESI contributions are not calculated
PORT IN50 GEN NOAB * Import ESI cont. wage types from ORT
ENDIF *
PORT IN57 GEN NOAB Comparing ESI WT of ORT and IT
IF INGR * If Gratuity contributions are calculated
PORT IN51 GEN NOAB Import gratuity cont. wage type from ORT
ENDIF *
IF INSN * If Superannuation contributions are calc
PORT IN52 GEN NOAB Import SAN cont. wage type from ORT
ENDIF *
IF INLW Check LWF wage type in case of retro
PORT IN53 GEN NOAB Transfer LWF wage types from ORT to IT
ENDIF
LPEND
* END OF COPY INPO
ENDIF Endif for original run
BLOCK END End Gross to Net calculation
* END OF COPY INN1
ENDIF * Endif
COPY INA9 * Cumulation of net amount/payment amount
COM Net cumulation and formation of
COM payment amount India
BLOCK BEG Net cumulation/payment amount
PIT IN30 P05 NOAB Cumulation of net amount
IF O Original period ?
PLRT XADV GEN NOAB Import advance WTs from LRT
PRPRI O Process priorities table
ENDIF
PIT IN40 NOAB Payment amount before transfer
ACTIO X04A Import claim from previous period
BLOCK END Net cumulation/payment amount
* END OF COPY INA9
COPY XDNT * Deductions not taken during loop?
BLOCK BEG Deductions not taken during loop?
IF DDNT Deductions not taken?
ACTIO XLPC PCR for loop condition (1 more pass)
ELSE no more loop
PREND Priority end processing (adjust DDNTK)
ENDIF to: if deductions not taken
BLOCK END
* END OF COPY XDNT
LPEND End Loop
COPY INNR * Retroactive accounting - India
BLOCK BEG Retroactive accounting INDIA
COM Retroactive accounting
IF O Original payroll ?
PDT IN41 GEN NOAB Provide differences received(India)
ELSE Retroactive accounting now
ACTIO X048 Reset BTEX YUI950925
LPBEG RC Loop over old results
IMPRT O Imports last payroll
PORT X042 GEN NOAB Form differences and transfer
PORT IN42 GEN NOAB Form differences and transfer
PORT INF1 GEN NOAB Formation of differences for PF arrears
Schema: ZIY0