Wednesday, January 18, 2012

SAP HR - Schemas


Schemas

• A schema is a set of rules that typically gets executed in a waterfall model.

• Schemas are used in Time Evaluation and in Payroll Processing.

• Schemas used in Time Evaluation are called “Time Management Schemas”.

• Schemas used in Payroll Processing are called “Payroll Schemas”.

• You manage schemas through the transaction PE01.

• SAP stores the schemas in tables.

• SAP supplied (standard) schemas are stored in table T52C0

• Customer schemas are stored in table T52CD.

• Executing a wrong schema can have disastrous consequences.

• You can avoid the risk of running a wrong schema, by calling both the schemas in a common schema and use “IF” statement. After “IF”, use function CHECK, followed by COPY <subschema>. Do the same after “ELSE” statement.


• For the schemas, which are not to be run, e.g. subschema or old version, remove the ‘tick’ from “Schema can be executed” checkbox in attributes. This will reduce the chances of running the wrong schema.

• Normally, customer-schemas are edited after copying a suitable model (standard) schema into the customer name-space. All the customer-schema should start with “Z” as the first character.

• Schema calls functions.

• Functions may take a Personnel Calculation Rule (PCR) as a parameter.

• PCRs call operations or other PCRs.

• Schema can also call subschemas.


Editing the Contents of Schema

• Every line in a schema is identified by a unique line number.

• There is a set of line editor commands, using which you can edit schemas, PCRs & features.

• This allows you to move, delete, copy and delete lines.

• All the commands are entered in the area used for the line number.

• Double-clicking on a subschema will take you to the maintenance screen for that subschema.

• Double clicking on any of the PCRs will take you to the rule editor.

• You call a subschema from a schema by the command COPY
<subschema>.

• There are a few header commands to navigate through the schema contents (e.g. to find a line number, find a word, find & replace, check the syntax of the schema source text etc.)




No comments:

Post a Comment