Ansicht
Dokumentation

OHAUA_ABSIC_004 - Define Day Rules

OHAUA_ABSIC_004 - Define Day Rules

CL_GUI_FRONTEND_SERVICES - Frontend Services   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

In this IMG activity, you define the day rules that you can use when forming counting classes when valuating an absence using averages or constants.

Day rules allow you to form counting classes or wage types based on the following conditions set for the day of an absence:

  • Public holiday class or day type of current day or previous day?
  • Weekday?
  • Does the employee's personal work schedule for the current or previous day show planned hours?

You can specify several different conditions for a day rule, and assign them sequential numbers. The R/3 System runs through the numbers in consecutive order until it finds a condition that is fulfilled.

  1. If your employees are absent due to illness on a public holiday, you do not want to pay them the usual rate for public holidays, but the standard rate for a normal workday.
In the IMG activity Valuate absences by constants/averages, you store two wage types for the absence valuation rule Sickness/Cure. You then assign the wage types the appropriate day rules.
The R/3 System then chooses the appropriate wage type according to the day of the absence.
  1. You want to group absences on non-working days in counting class 11, and absences on workdays in counting class 12.
    You create the day rules AT (workday) and AF (day off) to determine the conditions set for the day:

    AT - On workdays
    So that the counting class is only formed on workdays, two conditions must be fulfilled. You store these conditions in a rule without a sequential number:
    1. The day assigned is day type BLANK
    2. There are planned hours stipulated for the employee for this day, either:
  • A valid daily work schedule with planned hours > 0, or

  • A time substitution

Remember: Making specifications for just one of these conditions is not sufficient to determine a workday. If a day is assigned the day type BLANK, the decision as to whether or not the employee must work is made on the basis of the planned hours in the work schedule (are there planned hours specified for the employee on the day in question or is the daily work schedule OFF). Therefore, the planned hours in the daily work schedule must be queried as well as the day type.
AF - On days off
Days off can be characterized by two different conditions that you represent by assigning the sequential numbers 01 and 02 to day rule AF:
  1. Sequential number 01: The day is assigned day type 1
  2. Sequential number 02: There are no planned hours specified for the employee on the relevant day

There are already day rules defined in the standard system. The name range reserved for customers is A-Z.

  1. Check whether the standard day rules cater to your requirements.
  2. Define new day rules if required.
  3. To define a new day rule, choose New entries and enter the name of the new rule. Enter an identifier from the customer name range A-Z as the first character.
    If you cannot represent the required conditions in one subrule, enter a subsequent number for the rule.
    In order to keep performance times to a minimum, you should number the subrules such that the rules that most often apply are the ones that the System runs through first.
  4. Specify the conditions under which the day rule should apply.
    Under Condition set for public holiday class, day type, weekday, and planned hours, deselect those conditions under which you do not want the day rule to apply.
  5. If necessary, define an additional subrule.






SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 4297 Date: 20240523 Time: 153442     sap01-206 ( 70 ms )