SAP Function AD02_CATS_CALCULATE_PRICE - Actual labor pricing

Parameter Reference Type Length Default Optional Text
LOG_PRICE C C 0 Price override with log
NEW_PRICE C C 0 Price override indicator
OLD_PRICE C C 0 Existing price remained

Parameter Reference Type Length Text
INPUT_CNT N N 0 Input record counts
PROCESS_CNT N N 0 Update record counts

Parameter Reference Length Optional Text
CATSDB_NEW CATSDBCOMM 916 Updated record table
CATSDB_OLD CATSDBCOMM 916 Prior record table
EMPL_TAB AD02EMPREC 45 Employee actual pay info
T_MSGTAB MESG 319 Error message table

Exception Text
NOT_FOUND Record not found for a given employee
OTHER

Functionality
Function module to calculate the PRICE field of the CATS system usinginput actual labor pricing values. The input file contains employeenumber, starting period, ending period, attendant code (optional),hourly rate or total salary amount, and currency type.
If hourly rate inputed, PRICE will contains this value. Otherwise,total amount is divided into total hours to get the average rate.
This module can be called before or after data transferred to theappropriate application area; status flags will be updated accordingly.
However, if a transferred record has changed, the new record need to tobe transferred to update new costs and reverse the old one.
Tables of updated records, prior records, error messages, and recordcounts are return to the calling program.

Notes
The input hourly rate and total amount should be a two decimal displaynumeric field.

Further information
Comments within the function module.