SAP ABAP IMG Activity OHL027 (Set Calculation Rules)
Hierarchy
SAP_HRRXX (Software Component) Sub component SAP_HRRXX of SAP_HR
   PT-RC-IW (Application Component) Time Tickets
     PINC (Package) Incentive Wages: Customizing
IMG Activity
ID OHL027 Set Calculation Rules  
Transaction Code S_AHR_61010129   IMG Activity: OHL027 
Created on 19981221    
Customizing Attributes OHL027   Set calculation rules 
Customizing Activity OHL027   Set calculation rules 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name OHL027    

In this step, you specify the calculation rule for the premium formula.

Example

You require a calculation rule that includes 50% of the setup time in the calculation of the labor utilization rate.

Requirements

Before you define a premium formula in this view, you must first create the corresponding parameters, result types, premium functions, and routines.

Standard settings

Recommendation

Activities

  1. Enter the name of the premium formula
  2. Specify the calculation rule in postfix notation

Further notes

For the two-character operations +, *, -, /, >, <, postfix notation specifies the operands before the operation:

  • The expression A + B is written as A B + in postfix notation.
  • The notation continues for more complicated expressions:
  • The parenthetical expression ( A + B ) * C is written as A B +C *.

If the premium formula is used to calculate the result of the individual time ticket, all the numeric fields in the time ticket can be used. These include:

  • RUW01 Actual labor time
  • VGW01 Standard labor time
  • SOW01 Target labor time
  • RUW02 Actual setup time
  • VGW02 Standard setup time
  • SOW02 Target setup time
  • RUW05 Actual teardown time
  • VGW05 Standard teardown time
  • SOW05 Target teardown time
  • RUW03 Actual machine time
  • VGW03 Standard machine time
  • SOW03 Target machine time
  • RUW04 Actual value for variable activity type
  • VGW04 Standard value for variable activity type
  • SOW04 Target value for variable activity type
  • LMNGR Yield
  • XMNGR Scrap
  • BMSCH Base quantity for standard values

If the premium formula is used to calculate the results for the day and month, the following fields are available:

  • All cumulated values:
    • RUW01 Actual labor time
    • SOW01 Target labor time
    • RUW02 Actual setup time
    • SOW02 Target setup time
    • RUW05 Actual teardown time
    • SOW05 Target teardown time
  • All defined result types with their five-character names
  • All parameters defined for the premium formula with their five-character names

The fields are addressed using their five-character names.

You can specify fixed constants:

  • &xxxxxxx

    After a "&" you can specify a seven-character string comprised of digits and no more than one decimal point. This is interpreted as a decimal number.

You can access a routine:

  • (NNNNNNNNNNN)

    The name in brackets is read as the name of a routine. This routine must be defined in Include FP53LE99 and should refer to the result of calculation to the PACK variables; processing can then continue in the premium formula.

You can evaluate a premium function defined in the Step functions view:

  • $XXX

    The interim result is set to a fixed value according to premium function XXX.

The following operations are supported:

  • +    Addition
  • -    Subtraction
  • *    Multiplication
  • /    Division ( by 0 is by definition 0)
  • >    Greater than
  • <    Less than

There must always be exactly one blank character between variables and operations.

The line can end with a comment. The comment must be written in inverted commas (").

Further notes

If a calculation rule extends over several lines, the lines must be
numbered.

Business Attributes
ASAP Roadmap ID 204   Establish Functions and Processes 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 1   Critical 
Country-Dependency A   Valid for all countries 
Assigned Application Components
Documentation Object Class Documentation Object Name Current line number Application Component Application Component Name
SIMG OHL027 0 HLA0006932 Time Tickets 
Maintenance Objects
Maintenance object type C   Customizing Object 
Assigned objects
Customizing Object Object Type Transaction Code Sub-object Do not Summarize Skip Subset Dialog Box Description for multiple selections
V_T703F V - View SM30 Incentive Wages: Premium Calculation Formula 
History
Last changed by/on SAP  19981221 
SAP Release Created in