Processing Internal Payroll Tables

Objective

After completing this lesson, you will be able to use personnel calculation rules to process various payroll tables

Payroll Tables

Diagram showing payroll rule operations with arrows connecting an INPUT TABLE containing wage types, an OUTPUT TABLE, and a RESULT TABLE. The input influences the payroll rule operations, producing output and results.

Internal table Input Table (IT) contains the wage types required for the relevant processing step. In general, one of the two internal tables, Output Table (OT) or Result Table (RT), stores the results of a processing step. However in some circumstances such as factoring, it is possible that wage types will not be stored on either.

Upon completion of a processing step, the system transfers the wage types from the internal table OT to the internal table IT of the next process. The OT is necessary to differentiate which wage types have been processed during a rule from those which have not. For example, if the IT table holds three wage types, each is brought into the work area one at at time for processing. If needed for further processing steps later in the schema, the wage type is transferred to the OT table. Then the second and third wage types are processed in the same manner. After the last wage type has processed through a rule, the contents of the OT are transferred to the IT. While the OT does exist, it is not visible in the standard log.

Internal tables IT and OT exist only for the duration of the payroll run; therefore, they store information temporarily, whereas the database stores the table RT permanently.

Methods for Rule Access

The image shows the process of applying Personnel Calculation Rule Xnnn based on Employee Subgroup Grouping in SAP's Table IT, referencing Schema X000. Rule execution depends on matching EE subgroup group: 3.

The function Process Input Table (PIT) processes each wage type stored in the internal table IT generically. It accesses the personnel calculation rule defined in the first parameter through the employee subgroup grouping for personnel calculation rules.

For example, the subschema XT00 accesses personnel calculation rule X015 based on rule access.

Generic Rule Access

Table IT with entry M020 and value 3,000. Schema X000 calls rule Xnnn under operation PIT. Personnel calculation rule Xnnn is applied to EE subgroup grpg and Wage type with Operations specified.

The function PIT generically accesses the personnel calculation rule defined in the first parameter for each wage type stored in internal table IT. When doing so, the employee subgroup grouping for personnel calculation rules in the wage type is not taken into account.

For example, rule access is used in subschema XEND to access personnel calculation rule X070.

Rule Access Using Processing Classes

The image depicts a flowchart for payroll processing in SAP HCM, showing Table IT with wage type M020 and 3000 amount, schema X000 applying rule Xnnn to employee subgroup grpg with specific operations.

The function PIT processes each wage type stored in the internal table IT by reading the processing class defined in the second parameter and determining the specification of the processing class.

For example, the subschema XT00 accesses personnel calculation rule X013 based on rule access.

Rule Access Using Wage Types

The image illustrates the interaction between Table IT, Schema X000, and Personnel calculation rule Xnnn in a payroll system, showing how wage types nnn1, nnn2, and nnn3 are processed through various rules and operations.

The function PIT processes each wage type stored in the internal table IT by accessing the personnel calculation rule defined in the first parameter. When doing so, the employee subgroup grouping for personnel calculation rules in the wage type is not taken into account.

If there is no processing for the wage type in the personnel calculation rule, the wage type is written to the table OT without being changed.

For example, the subschema XAL9 accesses the personnel calculation rule XPPF in this manner.

Rule Access Variants

Flowchart depicting the PIT function with parameters at three levels: Parameter 1 (Rule), Parameter 2 (GEN, Pnn, blank), and Parameter 3 (NOAB, NOAB, NOAB, blank). Red arrows show the connections.

This overview shows the six rule access variants. The four most common variants are marked.

The functions PLRT , PORT , PDT , PRT, and PZL are used to edit wage types stored in internal tables. The personnel calculation rules are accessed using the same parameters as the function PIT.

In parameter 2, you enter the type of rule access in the following ways:

  • You can specify the wage types to be processed using processing classes (Pnn).
  • You can access the rule generically (GEN), it means that all the wage types in the table are processed in the payroll rule.
  • If parameter 2 is empty, you access the personnel calculation rule for the wage type being processed.

If you have not differentiated employee subgroup groupings in a customer personnel calculation rule, you must call the rule using NOAB in parameter 3.