Example of a Schema

Schema X000 is the main schema in international payroll. It contains components that can be used in all countries to calculate the gross remuneration. The schema is used as a template for the country versions of the payroll program.

In this schema, the COPY function in the Fct column calls up numerous subschemas. The lines with an asterisk ( * ) in column D are deactivated. Function IF introduces a condition; function ENDIF ends this condition. Function LPBEG introduces a loop; function LPEND ends this loop.

Source Text in Table Display: Personnel Calculation Schema X000

 

Func.

Par1

Par2

Par3

Par4

D

Text

000010

COM

         

Payroll schema: INTERNATIONAL

000020

COM

         

Gross wage calculation and

000030

COM

         

transfer

000040

COPY

XIN0

       

Initialization of payroll

000050

COPY

XBD0

       

Edit basic data

000060

IF

 

SPRN

     

Special run?

000070

RFRSH

 

IT

     

Delete IT

000080

ENDIF

         

to: Special run?

000090

COPY

XPRO

       

Import previous result for current period

000100

COPY

XLR0

       

Import last payroll result

000110

COPY

XT00

       

Gross remuneration (time management)

000120

COPY

XLON

     

*

Loans

000130

COPY

XAP0

     

*

Import further payments/deductions

000140

COPY

XAP9

       

Import further payments/deductions

000150

COPY

XAL0

     

*

Factoring and storage

000160

COPY

XAL9

       

Factoring and storage

000170

COPY

XTBS

       

Save table before iteration

000180

LPBEG

         

Start iteration

000190

COPY

XTBL

       

Reload saved tables

000200

COPY

XDD9

       

Processing of deductions and storage

000210

COPY

XNA0

     

*

Cumulation of net amount/payment amount

000220

COPY

XNA9

       

Cumulation of net amount/payment amount

000230

COPY

XDNT

       

All deductions taken?

000240

LPEND

         

End of iteration

000250

COPY

XRR0

       

Retroactive accounting

000260

COPY

XNN0

       

Net payments/deductions and transfer

000270

COPY

XAC0

     

*

Month End Accruals

000280

COPY

XEND

       

Final processing rule