The cluster definition of payroll results is stored in two INLCUDE reports:

include: rpc2rx09. "Definition Cluster Ru (I)

include: rpc2ruu0. "Definition Cluster Ru (II)

The first INCLUDE defines the country-independent part; The second INCLUDE defines the country-specific part (US).

The cluster key is stored in the field string RX-KEY.

Payroll Results (III)

All the field string and internal tables stored in PCL2 are defined in the ABAP/4 dictionary. This allows you to use the same structures in different definitions and nonetheless maintain data consistency.

The structures for cluster definition comply with the name convention PCnnn. Unfortunately, 'nnn' can be any set of alphanumeric characters.

*Key definitionDATA: BEGIN OF RX-KEY. INCLUDE STRUCTURE PC200.DATA: END OF RX-KEY.

After importing the payroll directory, which record to read is up to the programmer. Each payroll result has a status.

'P' - previous result

'A' - current (actual) result

'O' - old result

Function module CD_EVALUATION_PERIODS will restore the payroll result status for a periodwhen that payroll is initially run. It also will select all the relevant periods to be evaluated.Function Module (II)