Sie sind auf Seite 1von 7

Time and Labor Fast Formula Reference Guide

for Release 12
Oracle Fusion Time and Labor
ORACLE WHITE PAPER | MARCH 2018
Table of Contents

Introducing Fast Formula Use in the Oracle Cloud Time and Labor 1

Time Calculation Rule Formulas 2

Formula Name: WFM_TCR_COPY_AND_CONVERT_PROJ_COSTING_ATTR_AP2

Description 2

Rule Template Parameters 2

Rule Template Outputs 2

Example 2

Formula Name: WFM_TCR_COPY_PROJ_TASK_EXP_ATTR_AP 3

Description 3

Rule Template Parameters 3

Rule Template Outputs 3

Example 3

Time Entry Rule Formulas 4

Formula Name: WFM_TER_VALIDATE_REST_PERIOD_DURATION_AP 4

Description 4

Rule Template Parameters 4

Rule Template Outputs 4

Example 4

0 | Time and Labor Fast Formula Reference Guide for Release 12


Introducing Fast Formula Use in the Oracle Cloud Time and Labor
Oracle Cloud Fast Formula is an easy way to configure the existing functionality in Oracle Cloud Time
and Labor. Formulas are pieces of code that can receive information from calling program (packages),
access database information, and return values to the calling program. The calling program can use
this information to modify the process functionality. The fast formula language hides the complexity of
accessing the tables and column.

A formula can return more than one value to the calling program. Different programs that call the
formula expect outputs to return differently. Based on the formula type, the number and data type of
values to return are already defined.

» Some programs expect the defined names for outputs: the location of an output in the return
statement does not matter. If defined names are expected and the formula does not use the
expected names, the process errors out at run time.
» Some programs expect the output to return by location; in this case the name of outputs does not
matter.

1 | TIME AND LABOR FAST FORMULA REFERENCE GUIDE FOR RELEASE 12


Time Calculation Rule Formulas

Formula Name: WFM_TCR_COPY_AND_CONVERT_PROJ_COSTING_ATTR_AP

Description
This time calculation rule fast formula converts the stored IDs for the Expenditure Type, Task, and Project ID time
attributes associated with the time entries to project names or numbers for storage in payroll costing segments, such
as Department, Appropriation, and Project. If your costing segments have different names or segment locations, edit
those values in a copy of this formula, which you then use to define associated rules. This formula uses an array to
process time data. It isn't associated with any delivered time calculation rule templates.

Rule Template Parameters

Parameter Name Parameter Type Description

WORKED_TIME_CONDITION Time category Time category of reported hours that include the specified time
attributes to convert and copy to payroll costing segments.

Rule Template Outputs

Output Name Output Group Time Attribute Description

OUT_VALUE_EXPENDITURE 1 PJC_EXPENDITRUE_TYPE_NAME The converted name of the project


expenditure type to copy to the payroll
costing segment.

OUT_VALUE_PROJECT 1 PJC_PROJECT_ID The converted project ID to copy to


the payroll costing segment.

OUT_VALUE_TASK 1 PJC_TASK_ID The converted project task ID to copy


to the payroll costing segment.

Example

Parameters and Outputs Reported Calculated

Measure 8 8

PJC_EXPENDITURE_TYPE_NAME 300100024975034 – BTC 300100024975034 – BTC

PJC_TASK_ID 100000045105582 100000045105582

PJC_PROJECT_ID 1340 1340

OUT_VALUE_EXPENDITURE Not applicable PJC VOL Exp type 1 - Burden Transaction

OUT_VALUE_TASK Not applicable Task5.1.3.2.2.2

OUT_VALUE_PROJECT Not applicable P2-Aircraft Engines, Cost

2 | TIME AND LABOR FAST FORMULA REFERENCE GUIDE FOR RELEASE 12


Formula Name: WFM_TCR_COPY_PROJ_TASK_EXP_ATTR_AP

Description
This time calculation rule fast formula copies the time entries with associated Expenditure Type, Task, and Project
time attributes to payroll costing segments, such as Department, Appropriation, and Project. If your costing
segments have different names or segment locations, edit those values in a copy of this formula, which you then use
to define associated rules. This formula uses an array to process time data. It isn't associated with any delivered
time calculation rule templates.

Rule Template Parameters

Parameter Name Parameter Type Description

WORKED_TIME_CONDITION Time category Time category of reported hours that include the specified time
attributes to copy to payroll costing segments.

Rule Template Outputs

Output Name Output Group Time Attribute Description

OUT_COPY_EXPENDITURE 1 PJC_EXPENDITRUE_TYPE_NAME The name of the project expenditure


type to copy to the payroll costing
segment.

OUT_COPY_PROJECT 1 PJC_PROJECT_ID The project ID to copy to the payroll


costing segment.

OUT_COPY_TASK 1 PJC_TASK_ID The project task ID to copy to the


payroll costing segment.

Example

Parameters and Outputs Reported Calculated

Measure 8 8

PJC_EXPENDITURE_TYPE_NAME 300100024975034 – BTC 300100024975034 – BTC

PJC_TASK_ID 100000045105582 100000045105582

PJC_PROJECT_ID 1340 1340

OUT_COPY_EXPENDITURE Not applicable 300100024975034 – BTC

OUT_COPY_TASK Not applicable 100000045105582'

OUT_COPY_PROJECT Not applicable 1340

3 | TIME AND LABOR FAST FORMULA REFERENCE GUIDE FOR RELEASE 12


Time Entry Rule Formulas

Formula Name: WFM_TER_VALIDATE_REST_PERIOD_DURATION_AP

Description
This time entry rule fast formula is associated with the delivered rule template Compare Rest Between Shifts
Template. It compares the reported end and start times for consecutive shifts. If the rest period between the two
shifts is less than the defined rest period, it displays the configured message. This formula uses an array to process
time data.

Rule Template Parameters

Parameter Name Parameter Type Description

WORKED_TIME_CONDITION Time category Time category of reported time entries to compare with the defined
rest period.

REST_PERIOD_IN_MINUTES Fixed number Minimum nonworked time, in minutes, that workers must have
between consecutive shifts.

OVERRIDE_MESSAGE_CODE Message Message that appears when the time between the end of one shift and
start of the next shift is less than the defined rest period.

Rule Template Outputs

Output Name Message Severity

OUT_MSG Specify whether the output message is informational, warning, or error

Example
Scenario: The rule parameter REST_PERIOD_IN_MINUTES has the value 30 minutes

Payroll Time
Mon Tue Wed Thu
Type

Regular (hours) 8:00 AM – 1:00 PM 8:00 AM – 1:00 PM 8:00 AM – 1:00 PM

Regular (hours) 1:15 PM – 6:00 PM 1:30 PM – 6:00 PM 2:00 PM – 6:00 PM

Display message because No message because the No message because the


the rest period is less than rest period equals the rest period exceeds the
30 minutes minimum required 30 minimum required 30
minutes minutes

4 | TIME AND LABOR FAST FORMULA REFERENCE GUIDE FOR RELEASE 12


Oracle Corporation, World Headquarters Worldwide Inquiries
500 Oracle Parkway Phone: +1.650.506.7000
Redwood Shores, CA 94065, USA Fax: +1.650.506.7200

CONNECT W ITH US

blogs.oracle.com/oracle
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. This document is provided for information purposes only, and the
contents hereof are subject to change without notice. This document is not warranted to be error-free, nor subject to any other
facebook.com/oracle warranties or conditions, whether expressed orally or implied in law, including implied warranties and conditions of merchantability or
fitness for a particular purpose. We specifically disclaim any liability with respect to this document, and no contractual obligations are
formed either directly or indirectly by this document. This document may not be reproduced or transmitted in any form or by any means,
twitter.com/oracle electronic or mechanical, for any purpose, without our prior written permission.

oracle.com Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.

Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used under license and
are trademarks or registered trademarks of SPARC International, Inc. AMD, Opteron, the AMD logo, and the AMD Opteron logo are
trademarks or registered trademarks of Advanced Micro Devices. UNIX is a registered trademark of The Open Group. 0318

Time and Labor Fast Formula Reference Guide for Release 12


March 2018
Authors: David Cohanoff, John Finnegan, and Lynn Raiser

5 | TIME AND LABOR FAST FORMULA REFERENCE GUIDE FOR RELEASE 12

Das könnte Ihnen auch gefallen