Copying Schemas

Objective

After completing this lesson, you will be able to copy a schema including functions and personnel calculation rules

The Schema Editor

Graphic showing the schema editor, as described in the following text.

Areas on the schema editor screen include the following:

  • In areas 1 and 2 of the schema editor, you can use the standard SAP commands.
  • Area 3 of the schema editor specifies the schema’s functions.
  • The four parameters in area 4 provide more exact definitions of the functions.
  • Placing an asterisk in area 5 deactivates the relevant function.
  • You can enter a description of each function in area 6.

Standard and Customer-Specific Schemas

Comparison of a standard payroll schema in a standard client (cross-client) to a customer-specific payroll schema in a customer client, highlighting differences and indicating the ability to make comparisons and adjustments.

Schemas are subdivided into SAP standard schemas and customer schemas. Standard schemas and customer schemas are not differentiated by namespaces, but by their location in the standard clients. There are only standard schemas in the standard client. This means that every schema in the standard client, irrespective of the name, is a standard schema.

Standard schemas and customer schemas are stored in different tables. Standard schemas are cross-client (T52C0), whereas customer schemas are client-specific (T52C1).

A standard schema is visible across the system in a customer client until you change this schema or replace it with a new one. As soon as you change a standard schema in a customer client, the changed schema is stored as a customer schema. This also applies when the name of the schema has not been changed.

This ensures that all standard schemas are unaffected by any changes that you make to the schemas. Changes can be made only for customer schemas.

You can change the standard schemas during any new release for the standard system. This does not affect your customer schemas. However, it is important to check and store the changes so that you can, if necessary, add them to your changed schemas.

You can compare and adjust the schemas in the schema editor by using the following path:

SchemaCompare.

Functions and Personnel Calculation Rules

A payroll schema named INTERNATIONAL with a detailed flow of steps involving importing payroll results using personnel calculation rule X006, illustrated with connections between operations and parameters.

A payroll schema consists of a sequence of functions. Functions retrieve and process the data required for the respective processing steps.

Certain functions call a personnel calculation rule. The relevant calculation rule processes the data previously retrieved by functions. A personnel calculation rule consists of separate operations and always processes logical units.

Personnel calculation rules, therefore, fine-tune the processes carried out by the functions.

Following are a few examples of functions:

  • Functions that import infotype data:
    • WPBP Work center and basic pay data
    • RAB Absences
    • P0015 Additional payments
    • P2010 EE Remuneration information
  • Functions that process data according to the entries in the Customizing tables:
    • PAB Absence valuation
  • Functions that edit wage types using personnel calculation rules:
    • PIT Process input table

You can display documentation on a function by pressing the F1 key.

Functions within a schema are processed sequentially.

Data processing for employee wage types takes place in internal payroll tables. To process such data, certain functions access an assigned personnel calculation rule. You can adjust this personnel calculation rule, if necessary.

Copy Payroll Schemas

Business Example

To adjust the payroll according to your company’s requirements, you must modify the payroll schema. To do this, you need to copy and rename the original payroll schemas and make the changes required. Make a copy of subschema and rename the original payroll schema to make changes as required.

Steps

  1. Make a copy of subschema XT00 and rename it ZT##. Finally, make a copy of the international payroll schema X000 and rename it Z0## (## = Group number).

    1. To copy subschema XT00 and schema X000 on the SAP Easy Access screen, choose Human ResourcesPayrollInternationalToolsPE01 - Schema.

    2. Select Copy, enter the following data, and choose Enter.

      FieldValue
      From schemaXT00
      To schemaZT##
    3. Select Copy, enter the following data, and choose Enter.

      FieldValue
      From schemaX000
      to schemaZ0##
  2. Change your international payroll schema Z0## so that it copies the modified subschema ZT## instead of the standard schema XT00. Check the schema. If it contains no errors, save it.

    1. To modify the payroll schema Z0##, on the SAP Easy Access screen, choose Human ResourcesPayrollInternationalToolsCustomizing ToolsPE01 - Schema.

    2. Enter your schema Z0##.

    3. Choose Change.

    4. Use the Find icon to locate subschema XT00 in the line COPY XT00.

    5. Enter r for repeat in the column Line (Line number) of the line COPY XT00 and choose Enter. This creates a copy of the line.

    6. Deactivate one of the lines COPY XT00 by placing an * in the D column. Press Enter.

    7. On the line that has not been deactivated, change in the column Par1 from XT00 to ZT## so that your version of the subschema is now active. Press Enter.

    8. Check the syntax by using the Check (F6) button and then save the changes.