PRJ API Interface
PRJ API Interface
Interfaces
Reference
Release 12
Part No. B25624-02
December 2006
Oracle Projects APIs, Client Extensions, and Open Interfaces Reference, Release 12
Contributing Author: Sarita Chebbi, Jeffrey Colvard, Prashanti Gajjala, Stephen A. Gordon, Asad Halim,
Rinku Mohapatra, Tanya Poindexter, Juli Anne Tolley
Contributor: Sakthivel Balasubramanian, Prithi Bandla, Koushik Banerjee, Sandeep Bharathan, Ajit Das,
Rupal Fadia, Anders Gilchrist, Venugopal Gottimukkula, Debbie Hendrix, Venkatesh Jayaraman, Karthik
Kalyanasundaram, Sanjay Kumar Kannojia, Biju Kattuparambil, Rakesh Raghavan, Sumit Khanna, Rajnish
Kumar, Satya Deep Maheshwari, Vijay Manguluru, Sudha Maroju, Murali Mohan, Ranjana Murthy, Suresh
Punathilath, Rasheeda Shaik, Pachiappan Singaravel, Amita Singh, Nagaraj Tekupally, Dhaval Thakker,
Lavanya Veerubhotla, Margaret Wasowicz, Janet Zabel
The Programs (which include both the software and documentation) contain proprietary information; they
are provided under a license agreement containing restrictions on use and disclosure and are also protected
by copyright, patent, and other intellectual and industrial property laws. Reverse engineering, disassembly, or
decompilation of the Programs, except to the extent required to obtain interoperability with other
independently created software or as specified by law, is prohibited.
The information contained in this document is subject to change without notice. If you find any problems in
the documentation, please report them to us in writing. This document is not warranted to be error-free.
Except as may be expressly permitted in your license agreement for these Programs, no part of these
Programs may be reproduced or transmitted in any form or by any means, electronic or mechanical, for any
purpose.
If the Programs are delivered to the United States Government or anyone licensing or using the Programs on
behalf of the United States Government, the following notice is applicable:
The Programs are not intended for use in any nuclear, aviation, mass transit, medical, or other inherently
dangerous applications. It shall be the licensee's responsibility to take all appropriate fail-safe, backup,
redundancy and other measures to ensure the safe use of such applications if the Programs are used for such
purposes, and we disclaim liability for any damages caused by such use of the Programs.
The Programs may provide links to Web sites and access to content, products, and services from third parties.
Oracle is not responsible for the availability of, or any content provided on, third-party Web sites. You bear all
risks associated with the use of such content. If you choose to purchase any products or services from a third
party, the relationship is directly between you and the third party. Oracle is not responsible for: (a) the quality
of third-party products or services; or (b) fulfilling any of the terms of the agreement with the third party,
including delivery of products or services and warranty obligations related to purchased products or services.
Oracle is not responsible for any loss or damage of any sort that you may incur from dealing with any third
party.
Oracle, JD Edwards, PeopleSoft, and Siebel are registered trademarks of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective owners.
Contents
Preface
Part 1 OVERVIEW
iii
Handling Error Messages........................................................................................................ 2-10
Standard API Parameters........................................................................................................ 2-21
Common APIs.......................................................................................................................... 2-25
Controlling Actions in Oracle Projects................................................................................... 2-30
Using API Procedures............................................................................................................. 2-31
iv
DELETE_TASK.................................................................................................................. 3-74
GET_TASK_VERSION....................................................................................................... 3-75
GET_DELETED_TASKS_FROM_OP................................................................................. 3-76
UPDATE_TASK................................................................................................................. 3-76
FETCH_STRUCTURE_VERSION...................................................................................... 3-80
FETCH_TASK.................................................................................................................... 3-80
FETCH_TASKS.................................................................................................................. 3-80
FETCH_TASK_VERSION.................................................................................................. 3-81
LOAD_STRUCTURE......................................................................................................... 3-81
LOAD_TASK..................................................................................................................... 3-81
LOAD_TASKS................................................................................................................... 3-83
Check Procedures.............................................................................................................. 3-83
CHECK_ADD_SUBTASK_OK........................................................................................... 3-83
CHECK_CHANGE_PARENT_OK.................................................................................... 3-83
CHECK_DELETE_TASK_OK............................................................................................ 3-83
CHECK_TASK_NUMBER_CHANGE_OK........................................................................ 3-84
CHECK_TASK_MFD......................................................................................................... 3-84
CHECK_UNIQUE_TASK_NUMBER.................................................................................3-84
CHECK_UNIQUE_TASK_REFERENCE........................................................................... 3-85
User-Defined Attribute APIs.................................................................................................. 3-85
User-Defined Attribute Procedures................................................................................... 3-85
LOAD_EXTENSIBLE_ATTRIBUTE.............................................................................3-86
LOAD_EXTENSIBLE_ATTRIBUTES........................................................................... 3-87
Using the User-Defined Attribute APIs............................................................................. 3-87
Resource APIs........................................................................................................................ 3-109
Resource API Views......................................................................................................... 3-109
Resource API Procedures................................................................................................. 3-111
Resource API Procedure Definitions.................................................................................... 3-112
ADD_RESOURCE_LIST_MEMBER................................................................................. 3-112
CREATE_RESOURCE_LIST............................................................................................ 3-113
UPDATE_RESOURCE_LIST............................................................................................ 3-114
DELETE_RESOURCE_LIST............................................................................................. 3-115
DELETE_RESOURCE_LIST_MEMBER........................................................................... 3-116
SORT_RESOURCE_LIST_MEMBERS.............................................................................. 3-116
UPDATE_RESOURCE_LIST_MEMBER.......................................................................... 3-117
CLEAR_CREATE_RESOURCE_LIST.............................................................................. 3-118
CLEAR_UPDATE_MEMBERS......................................................................................... 3-118
EXEC_CREATE_RESOURCE_LIST................................................................................. 3-118
EXEC_UPDATE_RESOURCE_LIST................................................................................. 3-118
FETCH_MEMBERS.......................................................................................................... 3-118
FETCH_RESOURCE_LIST............................................................................................... 3-119
v
INIT_CREATE_RESOURCE_LIST................................................................................... 3-119
INIT_UPDATE_MEMBERS............................................................................................. 3-119
LOAD_MEMBERS........................................................................................................... 3-119
LOAD_RESOURCE_LIST................................................................................................ 3-120
Planning Resource List APIs................................................................................................. 3-122
Planning Resource List API Views................................................................................... 3-122
Planning Resource List API Procedures...........................................................................3-123
Planning Resource List API Record and Table Datatypes................................................3-124
Planning Resource List API Definitions...............................................................................3-131
CREATE_RESOURCE_LIST............................................................................................ 3-131
Business Rules........................................................................................................... 3-131
UPDATE_RESOURCE_LIST............................................................................................ 3-132
DELETE_RESOURCE_LIST............................................................................................. 3-133
DELETE_PLANNING RESOURCE................................................................................. 3-134
DELETE_PLAN_RL_FORMAT........................................................................................3-135
EXEC_CREATE_RESOURCE_LIST................................................................................. 3-135
EXEC_UPDATE_RESOURCE_LIST................................................................................. 3-136
FETCH_RESOURCE_LIST............................................................................................... 3-136
FETCH_PLAN_FORMAT................................................................................................ 3-136
FETCH_RESOURCE_LIST_MEMBER............................................................................. 3-137
INIT_CREATE_RESOURCE_LIST................................................................................... 3-137
INIT_UPDATE_RESOURCE_LIST.................................................................................. 3-137
LOAD_RESOURCE_LIST................................................................................................ 3-137
LOAD_RESOURCE_FORMAT........................................................................................ 3-139
LOAD_PLANNING_RESOURCE....................................................................................3-139
Resource Breakdown Structure APIs.................................................................................... 3-140
Resource Breakdown Structure API Views...................................................................... 3-140
Resource Breakdown Structure API Procedures.............................................................. 3-141
Resource Breakdown Structure API Record and Table Datatypes...................................3-142
Resource Breakdown Structure API Procedure Definitions................................................ 3-147
CREATE_RBS...................................................................................................................3-147
COPY_RBS_WORKING_VERSION................................................................................. 3-148
UPDATE_RBS.................................................................................................................. 3-149
INIT_RBS_PROCESSING.................................................................................................3-150
LOAD_RBS_HEADER..................................................................................................... 3-150
LOAD_RBS_VERSION.................................................................................................... 3-150
LOAD_RBS_ELEMENTS................................................................................................. 3-150
FETCH_RBS_HEADER.................................................................................................... 3-151
FETCH_RBS_VERSION................................................................................................... 3-151
FETCH_RBS_ELEMENT.................................................................................................. 3-152
EXEC_CREATE_RBS....................................................................................................... 3-152
vi
EXEC_UPDATE_RBS....................................................................................................... 3-152
FREEZE_RBS_VERSION..................................................................................................3-153
ASSIGN_RBS_TO_PROJECT........................................................................................... 3-153
Dependency APIs.................................................................................................................. 3-155
Dependency API Views................................................................................................... 3-155
Dependency API Procedures........................................................................................... 3-155
Dependency API Procedure Definitions.............................................................................. 3-155
CREATE_DEPENDENCY................................................................................................ 3-155
UPDATE_DEPENDENCY............................................................................................... 3-156
DELETE_DEPENDENCY................................................................................................ 3-157
Task Assignment APIs.......................................................................................................... 3-157
Task Assignment Views................................................................................................... 3-157
Task Assignment API Procedures.................................................................................... 3-158
Task Assignment API Record and Table Datatype.......................................................... 3-158
Task Assignment API Procedure Definitions...................................................................... 3-162
LOAD_TASK_ASSIGNMENTS....................................................................................... 3-163
LOAD_TASK_ASSIGNMENT_PERIODS........................................................................ 3-163
EXECUTE_CREATE_TASK_ASGMTS............................................................................ 3-163
EXECUTE_UPDATE_TASK_ASGMTS............................................................................ 3-164
CREATE_TASK_ASSIGNMENTS................................................................................... 3-164
CREATE_TASK_ASSIGNMENT_PERIODS.................................................................... 3-164
UPDATE_TASK_ASSIGNMENTS................................................................................... 3-165
UPDATE_TASK_ASSIGNMENT_PERIODS................................................................... 3-165
DELETE_TASK_ASSIGNMENTS.................................................................................... 3-166
FETCH_TASK_ASSIGNMENTS...................................................................................... 3-166
CONVERT_PM_TAREF_TO_ID...................................................................................... 3-167
INIT_TASK_ASSIGNMENTS.......................................................................................... 3-167
vii
EXECUTE_ADD_PROJECT_ASSET.................................................................................... 4-6
CONVERT_PM_ASSETREF_TO_ID.................................................................................... 4-7
FETCH_PROJECT_ASSET_ID............................................................................................. 4-7
Cost Plus Application Programming Interface (API)............................................................... 4-7
Get Burden Amount.............................................................................................................4-8
Example of Using the Cost Plus API.................................................................................... 4-9
viii
UPDATE_EVENT.............................................................................................................. 5-32
INIT_EVENT...................................................................................................................... 5-33
LOAD_EVENT................................................................................................................... 5-33
EXECUTE_CREATE_EVENT............................................................................................ 5-33
EXECUTE_UPDATE_EVENT............................................................................................ 5-34
FETCH_EVENT................................................................................................................. 5-34
CLEAR_EVENT................................................................................................................. 5-34
CHECK_DELETE_EVENT_OK......................................................................................... 5-34
ix
LOAD_RESOURCE_INFO................................................................................................. 6-56
Using Budget APIs.................................................................................................................. 6-56
Step 1: Connect to an Oracle Database............................................................................... 6-57
Step 2: Get the Budget Data............................................................................................... 6-57
Step 3: Get Budget Line Data............................................................................................. 6-59
Step 4: Interface Budget Information to the Server............................................................ 6-62
Step 5: Start the Server-Side Process.................................................................................. 6-63
Step 6: Retrieve Error Messages......................................................................................... 6-63
Step 7: Finish the Load-Execute-Fetch Process................................................................... 6-63
Creating a Budget Using the Load-Execute-Fetch APIs..........................................................6-63
Creating a Budget Using a Composite Datatype API............................................................. 6-66
Refresh Planning Amounts API.............................................................................................. 6-69
Status APIs............................................................................................................................... 6-70
Overview of Status API Views........................................................................................... 6-71
Status API Views................................................................................................................ 6-74
Status API Procedures........................................................................................................6-76
Record and Table Datatypes................................................................................................... 6-77
Required Parameters and Parameter Values.......................................................................... 6-79
Status API Procedure Definitions........................................................................................... 6-83
Custom Summarization Reporting APIs................................................................................ 6-87
Actuals Summarization API.............................................................................................. 6-87
Actuals Summarization API Procedures..................................................................... 6-88
Budget Summarization API............................................................................................... 6-89
Project Performance Reporting APIs...................................................................................... 6-90
x
Verify Organization Change Extension.................................................................................... 8-9
Transaction Import Extensions............................................................................................... 8-10
Pre-Import Client Extension for Internet Time.................................................................. 8-11
Post-Import Client Extension for Internet Time................................................................. 8-13
Descriptive Flexfield Mapping Extension.............................................................................. 8-14
Archive Project Validation Extension..................................................................................... 8-18
Archive Custom Tables Extension.......................................................................................... 8-18
xi
Cost Accrual Billing Extension............................................................................................. 10-33
Cost Accrual Identification Extension.................................................................................. 10-34
Labor Billing Extensions....................................................................................................... 10-35
Non-Labor Billing Extensions............................................................................................... 10-38
Retention Billing Extension.................................................................................................. 10-40
Automatic Invoice Approve/Release Extension................................................................... 10-40
Output Tax Extension............................................................................................................ 10-42
Receivables Installation Override Extension....................................................................... 10-43
AR Transaction Type Extension............................................................................................ 10-45
xii
Loading Items as Costed or Uncosted ............................................................................... 13-8
Loading Items as Accounted or Unaccounted................................................................... 13-9
Loading Burden Transactions.......................................................................................... 13-10
Loading Project Manufacturing Costs..............................................................................13-10
Loading Foreign Currency Transactions.......................................................................... 13-12
Import Options (Transaction Source)............................................................................... 13-15
Grouping Transactions into Expenditure Batches and Expenditures.............................. 13-16
Transaction Import Example: Labor and Expense by Employee Number....................... 13-19
Transaction Import Example: Usage................................................................................ 13-21
Viewing and Processing Imported Transactions..............................................................13-23
Transaction Import Interface................................................................................................ 13-25
Transaction Import Validation......................................................................................... 13-25
Target Expenditure Tables............................................................................................... 13-26
The Transaction Import Interface Table........................................................................... 13-27
PA_TRANSACTION_INTERFACE_ALL Column Requirements................................... 13-28
Resolving Import Exceptions........................................................................................... 13-53
Index
xiii
Send Us Your Comments
Oracle Projects APIs, Client Extensions, and Open Interfaces Reference, Release 12
Part No. B25624-02
Oracle welcomes customers' comments and suggestions on the quality and usefulness of this document.
Your feedback is important, and helps us to best meet your needs as a user of our products. For example:
• Are the implementation steps correct and complete?
• Did you understand the context of the procedures?
• Did you find any errors in the information?
• Does the structure of the information help you with your tasks?
• Do you need different information or graphics? If so, where, and in what format?
• Are the examples correct? Do you need more examples?
If you find any errors or have any other suggestions for improvement, then please tell us your name, the
name of the company who has licensed our products, the title and part number of the documentation and
the chapter, section, and page number (if available).
Note: Before sending us your comments, you might like to check that you have the latest version of the
document and if any concerns are already addressed. To do this, access the new Applications Release
Online Documentation CD available on Oracle MetaLink and www.oracle.com. It contains the most
current Documentation Library plus all documents revised or released recently.
Send your comments to us using the electronic mail address: [email protected]
Please give your name, address, electronic mail address, and telephone number (optional).
If you need assistance with Oracle software, then please contact your support representative or Oracle
Support Services.
If you require training or instruction in using Oracle software, then please contact your Oracle local office
and inquire about our Oracle University offerings. A list of Oracle offices is available on our Web site at
www.oracle.com.
xv
Preface
Intended Audience
Welcome to Release 12 of the Oracle Projects APIs, Client Extensions, and Open Interfaces
Reference.
This guide contains the information you need to implement, maintain, and use the
APIs, client extensions, and open interfaces that are available when you use Oracle
Projects.
See Related Information Sources on page xix for more Oracle Applications product
information.
Documentation Accessibility
Our goal is to make Oracle products, services, and supporting documentation
accessible, with good usability, to the disabled community. To that end, our
documentation includes features that make information available to users of assistive
technology. This documentation is available in HTML format, and contains markup to
facilitate access by the disabled community. Accessibility standards will continue to
evolve over time, and Oracle is actively engaged with other market-leading technology
vendors to address technical obstacles so that our documentation can be accessible to all
of our customers. For more information, visit the Oracle Accessibility Program Web site
at http://www.oracle.com/accessibility/ .
xvii
Accessibility of Code Examples in Documentation
Screen readers may not always correctly read the code examples in this document. The
conventions for writing code require that closing braces should appear on an otherwise
empty line; however, some screen readers may not always read a line of text that
consists solely of a bracket or brace.
Structure
1 Overview of Oracle Projects APIs, Client Extensions, and Open Interfaces
This chapter contains an overview of the APIs, Client Extensions, and Open Interfaces
that are provided with the Oracle Projects applications.
2 Introduction to Oracle Projects APIs
This chapter contains an introduction to the Oracle Projects APIs. It describes security
requirements, error messages, and standard API parameters.
3 Oracle Project Foundation APIs
This chapter describes how to implement APIs for:
• Project and task information
• Structure information
• Dependency information
• Events
xviii
7 Overview of Client Extensions
This chapter describes everything you need to know about designing and writing client
extensions in Oracle Projects.
8 Oracle Project Foundation Client Extensions
This chapter describes the client extensions in the Oracle Project Foundation
application.
9 Oracle Project Costing Client Extensions
This chapter describes the client extensions in the Oracle Project Costing application.
10 Oracle Project Billing Client Extensions
This chapter describes the client extensions in the Oracle Project Billing application.
11 Oracle Project Resource Management Client Extensions
This chapter describes the client extensions in the Oracle Project Resource Management
application.
12 Oracle Project Management Client Extensions
This chapter describes the client extensions in the Oracle Project Management
application.
13 Oracle Projects Open Interfaces
This chapter describes the open interfaces in the Oracle Projects applications.
Integration Repository
The Oracle Integration Repository is a compilation of information about the service
endpoints exposed by the Oracle E-Business Suite of applications. It provides a
complete catalog of Oracle E-Business Suite's business service interfaces. The tool lets
users easily discover and deploy the appropriate business service interface for
integration with any system, application, or business partner.
The Oracle Integration Repository is shipped as part of the E-Business Suite. As your
instance is patched, the repository is automatically updated with content appropriate
for the precise revisions of interfaces in your environment.
Online Documentation
Oracle Applications documentation, including online help patches (HTML) and guides
(PDF), is available on Oracle MetaLink.
xix
Guides Related to All Products
xx
Oracle Project Portfolio Analysis User Guide
This guide contains the information you need to understand and use Oracle Project
Portfolio Analysis. It includes information about project portfolios, planning cycles, and
metrics for ranking and selecting projects for a project portfolio.
xxi
Oracle General Ledger Implementation Guide
This guide provides information on how to implement Oracle General Ledger. Use this
guide to understand the implementation steps required for application use, including
how to set up Accounting Flexfields, Accounts, and Calendars.
xxii
Oracle Inventory User Guide
If you install Oracle Inventory, refer to this manual to learn how to define
project-related inventory transaction types and how to enter transactions in Oracle
Inventory. This manual also describes how to transfer transactions from Oracle
Inventory to Oracle General Ledger.
xxiii
Oracle Property Manager User Guide
Use this guide to learn how to use Oracle Property Manager to create and administer
properties, space assignments, and lease agreements.
xxiv
BIS User Guide Online Help
This guide is provided as online help only from the BIS application and includes
information about intelligence reports, Discoverer workbooks, and the Performance
Management Framework.
xxv
Oracle Alert User's Guide
This guide explains how to define periodic and event alerts to monitor the status of
your Oracle Applications data.
xxvi
maintenance of Oracle Applications product data. This manual also provides
information on creating custom reports on flexfields data.
Training
Oracle offers a complete set of training courses to help you and your staff master Oracle
Projects and reach full productivity quickly. These courses are organized into functional
learning paths, so you take only those courses appropriate to your job or area of
responsibility.
You have a choice of educational environments. You can attend courses offered by
Oracle University at any of our many Education Centers, you can arrange for our
trainers to teach at your facility, or you can use Oracle Learning Network (OLN), Oracle
University's online education utility. In addition, Oracle training professionals can tailor
standard courses or develop custom courses to meet your needs. For example, you may
want to use your organization structure, terminology, and data as examples in a
customized training session delivered at your own facility.
xxvii
Support
From on-site support to central support, our team of experienced professionals provides
the help and information you need to keep Oracle Projects working for you. This team
includes your Technical Representative, Account Manager, and Oracle's large staff of
consultants and support specialists with expertise in your business area, managing an
Oracle server, and your hardware and software environment.
xxviii
Part 1
OVERVIEW
1
Overview of Oracle Projects APIs, Client
Extensions, and Open Interfaces
This chapter contains an overview of the APIs, Client Extensions, and Open Interfaces
that are provided with the Oracle Projects applications.
This chapter covers the following topics:
• Overview of Oracle Projects APIs, Client Extensions, and Open Interfaces
• Link Oracle Projects with external applications that you build, applications on other
computers, and even the applications of your suppliers and customers
Overview of Oracle Projects APIs, Client Extensions, and Open Interfaces 1-1
Details about the Oracle Projects APIs are provided in Section II, Oracle Projects
Application Programming Interfaces (APIs).
1-2 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Part 2
ORACLE PROJECTS APIS
2
Introduction to Oracle Projects APIs
This chapter contains an introduction to the Oracle Projects APIs. It describes security
requirements, error messages, and standard API parameters.
This chapter covers the following topics:
• Introduction to Oracle Projects APIs
• Overview of the Oracle Projects APIs
• Integrating Your External System with Oracle Projects
• Security Requirements
• Handling Error Messages
• Standard API Parameters
• Common APIs
• Controlling Actions in Oracle Projects
• Using API Procedures
This section provides you with the information you need to understand the structure
and processing of the public Application Programming Interfaces (APIs) provided with
Oracle Projects.
This chapter provides the following information:
• Integrating an External System with Oracle Projects. Follow the steps in this
section carefully. A properly integrated system ensures that your external system
can access the Oracle Projects database and that your Oracle Applications users can
obtain the privileges necessary to use the application programming interfaces
(APIs) discussed in this manual.
• Security Requirements. Follow the steps in this section to ensure proper security
when users access Oracle Projects data from an external system.
• Handling Error Messages. This section describes how Oracle Projects APIs create
error messages, and how to display them in an external application.
• Standard API Parameters. This section describes the standard input and output
parameters shared by most of the public APIs in Oracle Projects.
• Share business rules and workflow from one system to the other
• Share setup, project planning, resource planning, budgeting, actuals, and progress
data
Detailed descriptions of the APIs are provided in the detail chapters for each Oracle
Projects application.
2-2 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• Collaborative project planning and scheduling systems. Integrate your enterprise
business systems with team-oriented project planning and scheduling tools to
provide communication links throughout your company.
• Sales management systems. Enter your sales order using a sales management
system and call APIs to create a project in Oracle Projects based on the order
information.
• Work management systems. Use the Oracle Projects APIs to tailor a comprehensive
solution that includes your work management system. Companies in the utilities
industry commonly use this type of system.
Project templates with Quick Entry You can override some of the template's
(overridable) fields default values when you create a project.
Resources
Organizations
Actuals: cost amounts (raw and burdened), Oracle Projects acts as the central repository of
commitments (raw and burdened), quantities, all project actuals, maintains common
revenue, PA or GL period, inception-to-date, business rules (such as transaction controls),
period-to-date and collects a wide variety of transactions.
Such transactions include phone usage
records, labor, depreciation, commitments,
usages, and expenses. Oracle Projects also
performs complex cost burdening, generates
revenue, and sends summarized information
to external systems.
The following table illustrates the types of information that originates in an external
system (in this case, a project management system).
Budgets: Types, Time-Phased, Amounts, Project managers can enter and baseline
Quantities, Baseline budgets from their preferred project
management system or from Oracle Projects.
Accounting personnel can enter budgets
directly into Oracle Projects. Both types of
employees can draft and update their own
budget versions. Budgets created using project
management systems integrate with Oracle
Projects' budget calculation extensions.
Percent complete: project level, WBS (any Once you send this information to Oracle
level) Projects, you can use billing extensions to
produce progress billings. You can view this
information in Oracle Projects using the
project status inquiry (PSI) client extension.
2-4 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Information That Originates in Your Project Comments
Management System
Earned value progress reporting: Budgeted You can use earned value reporting to
Cost of Work Scheduled, Budgeted Cost of determine cost variance, schedule variance,
Work Performed, Actual Cost of Work and variance at completion. To view this
Performed, Budget at Completion information in Oracle Projects, use the PSI
client extension.
From a SQL*Plus session, use the following syntax to run the script:
start $PA_TOP/sql/paamgcrole.sql &role &un_apps
For example, to create the role PMXFACE in the APPS account, enter:
start $PA_TOP/sql/paamgcrole.sql PMXFACE APPS
The script creates the role, and grants the necessary privileges on the required database
objects. Check the file paamgcrole.lst to ensure that the script completed successfully.
From a SQL*Plus session, use the following syntax to run the script:
start $PA_TOP/sql/paamgcuser.sql &role &un_apps &uname &pwd
For example, to create the user JCLARK with a password of WELCOME, enter:
start $PA_TOP/sql/paamgcuser.sql PMXFACE APPS JCLARK WELCOME
Check the file paamgcuser.lstto ensure that the script completed successfully.
2-6 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
user, even if they share the same username. Each Oracle Applications
user and database user has a distinct password, which you must
maintain individually. Changing an Oracle Application user's
password does not automatically change the database user's password.
Users can choose different passwords for their Oracle Applications and
database usernames.
For example:
start $PA_TOP/sql/paamgurole.sql PMXFACE APPS
Check the file paamgurole.lst to ensure that the script completed successfully.
For example:
start $PA_TOP/sql/paamgurole.sql PMXFACE APPS
Check the file paamgurole.lst to ensure that the script completed successfully.
From a SQL*Plus session, use the following syntax to run the paamguuser.sql script:
start $PA_TOP/sql/paamguuser.sql &un_apps &name &role
For example:
Check the file paamguuser.lst to ensure that the script completed successfully.
Security Requirements
Each interface or application that you develop using the Oracle Projects APIs must
prompt users for identifying information and then set up global variables. Follow the
steps below to ensure that proper security is enforced when users access Oracle Projects
data from an external system.
2-8 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Caution: Do not use UPPER(USER_NAME) in the WHERE clause.
Expressions used in WHERE clauses disable the index and impair
performance. Always convert a value to uppercase in your code and
use the converted string in the WHERE clause.
(2000)
After completing these steps, external systems call the remaining Oracle Projects APIs
necessary to complete the task, such as CREATE_PROJECT, UPDATE_PROJECT,
SELECT_RESOURCE_LIST, or CREATE_DRAFT_BUDGET.
• task reference
2-10 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• project reference
• task reference
• budget type
API Messages
The following table shows the messages used in Oracle Projects APIs.
PA_BU_CORE_NO 28 A budget does not exist for this project with PROJECT_NUMBER
specified budget type.
_VERSION_ID_AMG
_FAILED_AMG
2-12 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
New Message Code Length Description Token(s)
_AMG
_EXISTS_AMG
_AMG
2-14 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
New Message Code Length Description Token(s)
_IS_MISSING_AMG
_IS_MISSING_AMG
_IS_MISSING_AMG
_INVALID_AMG
_CONTACT_AMG
PA_PR_INVALID_START 28 Project start date must be earlier than all task PROJECT_NUMBER
start dates.
_DATE_AMG
2-16 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
New Message Code Length Description Token(s)
_AMG
_AMG
_REG_AMG
_INVALID_AMG
_FOUND_AMG
_FOUND_AMG
_AMG
_FOUND_AMG
_INVALID_AMG
_MISSING_AMG
_AMG
2-18 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
New Message Code Length Description Token(s)
2-20 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
New Message Code Length Description Token(s)
P_COMMIT IN VARCHAR2 Yes T = The API issues the commit to the database.
P_API_VERSION IN NUMBER Yes For the current version of the APIs, this parameter
must be set to 1.0. This may change in future
_NUMBER versions of the APIs.
P_RETURN OUT NOCOPY VARCHAR2 The return status of the APIs. Valid values are: S
(the API completed successfully), E (business rule
_STATUS (1) violation error), and U (Unexpected error, such as
an Oracle error)
P_MSG_COUNT OUT NOCOPY NUMBER Holds the number of messages in the global
message table. Calling programs should use this
as the basis to fetch all the stored messages. If the
value for this parameter = 1, then the message
code is available in P_MSG_DATA. If the value of
this parameter > 1, you must use the
GET_MESSAGES API to retrieve the messages.
P_MSG_DATA OUT NOCOPY VARCHAR2 Holds the message code, if the API returned only
one error/warning message. Otherwise, the
(2000) column is left blank.
2-22 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
DECLARE
--variables needed for API standard parameters
l_api_version_number NUMBER :=1.0;
l_commit VARCHAR2(1) := 'F';
l_return_status VARCHAR2(1);
l_init_msg_list VARCHAR2(1);
l_msg_count NUMBER;
l_msg_data VARCHAR2(2000);
l_data VARCHAR2(2000);
l_msg_entity VARCHAR2(100);
l_msg_entity_index NUMBER;
l_msg_index NUMBER;
l_msg_index_out NUMBER;
l_encoded VARCHAR2(1);
––
––variables needed for Oracle Project specific parameters
l_pm_product_code VARCHAR2(10);
l_pa_project_id NUMBER;
l_pm_project_reference VARCHAR2(25);
l_budget_type_code VARCHAR2(30);
l_change_reason_code VARCHAR2(30);
l_description VARCHAR2(255);
l_entry_method_code VARCHAR2(30);
l_resource_list_name VARCHAR2(60);
l_resource_list_id NUMBER;
l_budget_lines_in
PA_BUDGET_PUB.budget_line_in_tbl_type;
l_budget_lines_in_rec
PA_BUDGET_PUB.budget_line_in_rec_type;
l_budget_lines_out
PA_BUDGET_PUB.budget_line_out_tbl_type;
l_line_index NUMBER;
l_line_return_status VARCHAR2(1);
––
API_ERROR EXCEPTION;
––
BEGIN
––PRODUCT RELATED DATA
l_pm_product_code :='SOMETHING';
––
––BUDGET DATA
l_pm_project_reference := 'TEST';
l_budget_type_code := 'AC';
l_change_reason_code := 'ESTIMATING ERROR';
l_description := 'New description –> 2';
l_entry_method_code := 'PA_LOWEST_TASK_BY_PA_PERIOD';
l_resource_list_id := 1001;
The previous example shows how to assign values to a subset of the PL/SQL table. To
assign values only to PA_TASK_ID and RESOURCE_LIST_MEMBER_ID in the
P_BUDGET_LINES_IN table, first assign these values to BUDGET_LINES_IN_REC and
then add BUDGET_LINES_IN_REC to the BUDGET_LINES_IN PL/SQL table, as
illustrated in the following example.
2-24 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
the API cannot find or derive a reference code for the required identification code
parameter, the API generates an error message and aborts processing.
When passing parameters to an Oracle Projects API, you should use named notation (see
the following example), which enables you to pass only the parameters required by a
particular API. Using named notation can significantly improve the processing of
update APIs.
Important: If you pass an API parameter as NULL, the API updates the
column in the database with a NULL value. If you do not want to
update a column, do not pass the corresponding parameter.
Common APIs
The following APIs are available for use in all modules and are located in the public
API package PA_INTERFACE_UTILS_PUB.
GET_MESSAGES
GET_MESSAGES is a PL/SQL procedure that retrieves messages from the message
stack. If an API detects only one error during execution, the API returns the error text
via the standard API output parameter P_MSG_DATA. If the API detects multiple
errors, you must use the GET_MESSAGES API to retrieve the messages.
The following table shows the parameters in GET_MESSAGES.
P_MSG_COUNT IN NUMBER No The message count value returned by the API that
raised the error. If P_MSG_COUNT = 1, this API
returns the error text. Otherwise, this API calls the
message handling package FND_MSG_PUB.
P_MSG_DATA IN VARCHAR2 Yes The P_MSG_DATA value returned by the API that
raised the error
(80)
P_MSG_INDEX_OU OUT NUMBER The index (cell) of the message in the global
T message stack
NOCOP
Y
2-26 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
a workaround to a known bug in Oracle AOL. This parameter may be
removed in subsequent releases of Oracle Projects. If your code stops
working after applying patches later than 754949, values sent as this
parameter would be a likely cause.
GET_DEFAULTS
GET_DEFAULTS is a PL/SQL procedure that returns the default values required to
initialize the VARCHAR2, NUMBER, and DATE variables in your programs. This API
has no input parameters.
The following table shows the parameters in GET_DEFAULTS.
P_DEF_CHAR OUT NOCOPY VARCHAR2(3) Returns the default value for character
variables
P_DEF_NUM OUT NOCOPY NUMBER Returns the default value for number
variables
P_DEF_DATE OUT NOCOPY DATE Returns the default value for date variables
Default values are useful when you conditionally set a value for a variable. For
example, while updating a project, you may conditionally set the value for the variable
L_DISTRIBUTION_RULE, depending on whether you want to update the distribution
rule in Oracle Projects. To accomplish this, you would use a PL/SQL statement similar
to this:
Pa_interface_utils.get_defaults (p_def_char => l_def_char,
p_def_num => l_def_num,
p_def_date => l_def_date,
p_return_status => l_return_status,
p_msg_count => l_msg_count,
p_msg_data => l_msg_data );
l_distribution_rule := l_def_char;
l_customer_id := l_def_num;
l_end_date := l_def_date;
GET_ACCUM_PERIOD_INFO
GET_ACCUM_PERIOD_INFO is a PL/SQL procedure that returns information about
the last period through which the project is summarized in Oracle Projects, as well as
the current reporting period. Use this API to see if the actuals in your external system
are current with those in Oracle Projects.
The following table shows the parameters in GET_ACCUM_PERIOD_INFO.
NOCOPY
2-28 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Parameter Usage Type Required Description
NOCOPY (2000)
NOCOPY (1)
• Baseline Budget
• Delete Project
• Delete Task
• Update Budget
You can base the restrictions on the external system in which the information originates
or on the budget type (for budget-related actions).
For example, suppose you download a project from an external system. You have a
business rule that the source system always maintains project and task dates. As an
additional precaution, you want to prevent users from deleting from Oracle Projects
any projects and tasks that originate in an external system. To fulfill these criteria, use
the Control Actions window to specify the following actions:
2-30 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• Delete Project
• Delete Task
After you specify these actions in the Control Actions window, Oracle Projects users
who try to change the project and task dates on a project that originated in an external
system sees the following error message:
The value for this field originated in an external system. You cannot
change it.
A user who tries to delete the project or one of its tasks sees the following message:
The record originated in an external system. You cannot delete it.
Note: You can specify effective dates for the controls you select in the
Control Actions window.
• Call the underlying business object APIs (passing the global structures as IN
parameters)
• Pass the message back to the calling programs upon demand (the calling program
2. Load. This function loads IN parameter PL/SQL tables and records. Repeat this step
until all the input structures are populated.
3. Execute. This step calls a business object API cover that calls the business object
API. The business object API uses the global structures that were populated during
the Load procedure.
4. Fetch. This procedure fetches one output value at a time for a business object. It also
fetches messages. The calling program may or may not call the Fetch procedure,
depending on the function performed.
5. Clear. This step clears the global structures and resets any global counters used in
the calling program.
2-32 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
3
Oracle Project Foundation APIs
• Structure information
• Dependency information
• Certain functions, such as deleting a project , follow the business rules defined in
Oracle Projects
Develop a detailed project plan using the external system you prefer. Then you can use
the project APIs to push your plan into Oracle Projects and create a project based on the
information in your plan. As your project plan evolves, update project information in
your external system and then periodically synchronize the two systems. The project
APIs update the task information and work breakdown structures (WBSs) in Oracle
Projects to reflect changes made in the external system.
Note: When youcall any project API that requires a project identifier,
you must identify the project by passing either the P_PA_PROJECT_ID
or the P_PM_PROJECT_REFERENCE parameter.
View Description
3-2 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
View Description
PA_CLASS_CATEGORIES_LOV_V Retrieves class codes defined in Oracle Projects. You can use the
value in the display_name field (retrieved by the
PA_OVERRIDE_FIELDS_V view) to show only class codes
associated with a class category. For example: "select code
description from pa_class_categories_lov_v where class_category =
'Funding Source';"
PA_DISCOUNT_CODES_LOV_V Retrieves the discount reasons specified for the lookup type RATE
AND DISCOUNT REASON.Used to validate the parameters
LABOR_DISC_REASON_CODE and
NON_LABOR_DISC_REASON_CODE.
PA_JOB_SCHEDULES_LOV_V Retrieves job schedules. Only the following job schedules are
retrieved:
PA_OVERRIDE_FIELDS_V Retrieves the prompts for Quick Entry fields associated with a
project template. For more information about this view, see; Details
about PA_OVERRIDE_FIELDS_V, page 3-4.
PA_OVERRIDE_FIELD_VALUES_V Retrieves the values passed to the Quick Entry fields when a project
is created
3-4 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Field Name Display Name Type Order Req? View Name
DESCRIPTION Project 30 N
Description
COMPLETION_DATE Project 50 N
Completion Date
_CODE _STATUS_LOV_V
_FLAG
_LOV_V
_LOV_V
The views you use to select valid values all have CODE and DESCRIPTION columns.
Use these two columns and the value of the field LOV_VIEW_NAME to retrieve the
valid values for any Quick Entry field. Valid values are stored in the CODE field. The
CARRYING_OUT_ PA_ORGANIZATIONS_LOV_V
ORGANIZATION_ID
PUBLIC_SECTOR_FLAG Y or N
PROJECT_STATUS_CODE PA_PROJECT_STATUS_LOV_V
DISTRIBUTION_RULE PA_DISTRIBUTION_RULES_LOV_V
• Load-Execute-Fetch Procedures
3-6 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• CLEAR_PROJECT, page 3-17
• Check Procedures
• CHECK_CHANGE_PROJECT_ORG_OK, page 3-21
PM_PROJECT_REFERENCE
Systems that you use to create projects in Oracle Projects assign a unique number to
every project. You can set up Oracle Projects either to generate project numbers
automatically or to support manual entry of numbers.
When Oracle Projects is set up for automatic numbering:
• The number generated automatically by Oracle Projects is stored in the column
SEGMENT1.
CREATE_PROJECT
CREATE_PROJECT is a PL/SQL procedure that creates a project in Oracle Projects
using a template or an existing project.
Note: CREATE_PROJECT will not copy the WBS structure to the newly
created project if you are attempting to copy a project or template with
tasks. CREATE_PROJECT also will not copy the WBS structure to the
newly created project if you are attempting to copy a template which
has the Automatically Publish Workplan Upon Project Creation option
selected.
This API uses composite datatypes. For more information, see APIs That Use
Composite Datatypes, page 2-22.
Business Rules
Oracle Projects imposes the following business rules.
3-8 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
third-party scheduling tool with Oracle Projects. Only set this parameter to 'N' if the
third-party scheduling tool can perform validations for:
• Dependencies between tasks and activities
You should set P_OP_VALIDATE_FLAG to 'Y' if you are using the APIs to upload data
from a legacy system that does not perform an extensive validation for the above.
Scheduling data must be validated in order to ensure data integrity in Oracle Projects.
• P_PM_PRODUCT_CODE
• P_PROJECT_IN
DELETE_PROJECT
DELETE_PROJECT is a PL/SQL procedure used to delete a project and its tasks from
Oracle Projects.
• Expenditure item
• Supplier invoice
• Invoice distribution
• Funding
• Budget
You can view descriptions of all of the parameters for DELETE_PROJECT in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The parameters for DELETE_PROJECT for which a value is required are listed below:
• P_API_VERSION_NUMBER
• P_PM_PRODUCT_CODE
UPDATE_PROJECT
UPDATE_PROJECT is a PL/SQL procedure that updates project and task information
from your external system to Oracle Projects to reflect changes you have made in the
external system.
UPDATE_PROJECT uses composite datatypes. For more information about composite
datatypes, see APIs That Use Composite Datatypes, page 2-22.
Oracle Projects imposes project- and task-level business rules that restrict the changes
you can make to project and task information. To ensure that Oracle Projects accepts all
the project or task changes you make in your external system, review the following
3-10 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
rules before you make changes in your external system. You can also use the check
procedures, page 3-21 to identify the types of changes that Oracle Projects supports.
Update Mode
The Update Mode parameter has two possible values: PA_UPD_WBS_ATTR and
PA_UPD_TASK_ATTR.
A value of PA_UPD_WBS_ATTR has the following effects:
• The workplan version is locked. (You cannot update the version if it is already
locked by another user.)
• Users can update task information such as resource, dependencies, schedule and
general details.
• Users can make updates to the workplan structure such as creating, deleting,
increasing or decreasing indents, moving and copying tasks.
• Users can update task information like dates, dependencies, resources and general
details.
• If you use an external system to create original project plans, choose manual
project numbering. Numbers generated automatically by external systems may
not be unique in Oracle Projects and will be replaced by new project numbers
generated by Oracle Projects.
• Project Type: You cannot change the project type (indirect, capital, or contract) of a
project.
Project manager A project can have only one active project manager.
New project If you assign a new project manager to an existing project, the default start
manager date for the new project manager is the system date. The default end date
for the current project manager is the previous day.
Team members A project can have any number of team members other than the project
manager.
Team member If the start date of a team member other than a project manager is not passed
start date or passed as NULL, the start day is derived from the project start date.
When project_start_date is NULL, the default start date for the key member
is NULL. It is mandatory for UPDATE_PROJECT that key members have a
start date, however. You cannot directly update the start date of an existing
key member. To specify a start date for an existing key member, you need to
end date the key member with a date prior to the new start date. You can
then create a new entry for the key member with a new start date.
Team roles UPDATE_PROJECT supports a person performing the same role (other than
during different project manager) for a given project during different periods.
periods
Bill to address Customers can update the bill to address ID of the current bill to customer
ID by passing a valid value for the address. In CREATE_PROJECT or when
using UPDATE_PROJECT to create a new customer, if no value is passed
for the bill to address, then the primary address for the customer is used.
Ship to address Customers can update the ship to address ID of the current bill to customer
ID by passing a valid value for the address. In CREATE_PROJECT or when
using UPDATE_PROJECT to create a new customer, if no value is passed
for the ship to address, then the primary address for the customer is used.
3-12 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Entity or Topic Rule
Customer bill Each customer contribution must be a value between 0 and 100. The total of
split for a all customer contributions must be 100.
contract project
Customer bill For a new customer being added, this is a required field. In
split for a new CREATE_PROJECT, , if no value is passed, the value 100 is used. The
customer contribution cannot be updated if any revenue or invoices have been
charged to the project.
Bill Another If a standard invoice has been generated, then this flag cannot be updated.
Project flag
Receiver task If the Bill Another Project Flag is not enabled, then this field cannot be
updated.
• You can leave both the start and completion dates or just the completion date blank;
however, you must enter a start date if you want to enter a completion date.
• If you change the project status to Closed, then the default completion date is the
system date. If you subsequently reopen the project, the default completion date is
NULL.
• A NULL value for any of the project fields listed below results in an error message
in Oracle Projects. Oracle Projects ignores incoming NULL values for these fields
and retains their original values.
• PROJECT_STATUS
• PUBLIC_SECTOR_FLAG
• PROJECT_NUMBER
• PROJECT_NAME
You should set P_OP_VALIDATE_FLAG to 'Y' if you are using the APIs to upload data
from a legacy system that does not perform an extensive validation for the above.
Scheduling data must be validated in order to ensure data integrity in Oracle Projects.
Rules for Updating Labor and Non-Labor Billing and Burdening Schedule Attributes for a Project
The rules for updating labor and non-labor schedule attributes are listed below:
• If the labor schedule type is being changed from Bill to Burden or from Burden to
Bill, then the column LABOR_SCH_TYPE is required, and all the required
dependent columns must be populated.
• If the labor or non-labor schedule type is being changed from Bill to Burden, then
the columns REV_IND_RATE_SCH_ID and INV_IND_RATE_SCH_ID are
required.
• If the labor schedule type is being changed from Burden to Bill, and Oracle Project
Resource Management is installed, then the column
JOB_BILL_RATE_SCHEDULE_ID is required.
• If the non-labor schedule type is being changed from Burden to Bill,, then the
columns NON_LABOR_BILL_RATE_ORG_ID and
NON_LAB_STD_BILL_RT_SCH_ID are required.
3-14 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• If the NON_LABOR_SCHEDULE_DISCOUNT is passed, then the
NON_LABOR_SCHEDULE_DISCOUNT_REASON is also required.
• If the external system pushes both the TASK_ID and the PM_TASK_REFERENCE
to Oracle Projects, Oracle Projects uses the TASK_ID to identify the task and
updates PM_TASK_REFERENCE with the incoming value (if different).
• You cannot change a task number if any of the following items have been charged
against the task:
• Expenditure items
• Supplier invoices
• Draft invoices
• Each task with a completion date must also have a start date.
• A task completion date must occur before the project completion date.
Task Attributes
These rules apply to task attributes:
• You cannot change any of the following task attributes to NULL:
• TASK_NAME
• PM_TASK_REFERENCE
• TASK_NUMBER
• READY_TO_BILL_FLAG
3-16 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• READY_TO_DISTRIBUTE_FLAG
• CARRYING_OUT_ORGANIZATION_ID
• SERVICE_TYPE_CODE
• Description
• P_PM_PRODUCT_CODE
• P_PROJECT_IN
CLEAR_PROJECT
CLEAR_PROJECT is a Load-Execute-Fetch procedure used to clear the global data
structures set up during the Load process.
EXECUTE_CREATE_PROJECT
EXECUTE_CREATE_PROJECT is a Load-Execute-Fetch procedure used to create a
project and its tasks using the data stored in the global tables during the Load process.
Business Rules
Oracle Projects imposes the following business rules.
You should set P_OP_VALIDATE_FLAG to 'Y' if you are using the APIs to upload data
from a legacy system that does not perform an extensive validation for the above.
Scheduling data must be validated in order to ensure data integrity in Oracle Projects.
• P_PM_PRODUCT_CODE
EXECUTE_UPDATE_PROJECT
EXECUTE_UPDATE_PROJECT is a Load-Execute-Fetch procedure used to update an
existing project, including changing or adding project data, adding new tasks, and
updating existing tasks. This API does not delete tasks; rather, it uses the data stored in
the global tables during the Load process.
To update the user-defined attributes in a project, this procedure calls the user-defined
attribute procedures. For more information, see: User-Defined Attribute APIs, page 3-
85.
3-18 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Business Rules
Oracle Projects imposes the following business rules.
You should set P_OP_VALIDATE_FLAG to 'Y' if you are using the APIs to upload data
from a legacy system that does not perform an extensive validation for the above.
Scheduling data must be validated in order to ensure data integrity in Oracle Projects.
• P_PM_PRODUCT_CODE
INIT_PROJECT
INIT_PROJECT is a Load-Execute-Fetch procedure used to set up the global data
structures. Other Load-Execute-Fetch procedures use the structures to create a new
project in Oracle Projects.
LOAD_CLASS_CATEGORY
LOAD_CLASS_CATEGORY is a Load-Execute-Fetch procedure used to load class
categories to a global PL/SQL table.
You can view descriptions of all of the parameters for LOAD_CLASS_CATEGORY in
the Oracle Integration Repository. The Oracle Integration Repository is described in the
preface of this manual.
The required parameters for LOAD_CLASS_CATEGORY are listed below:
LOAD_KEY_MEMBER
LOAD_KEY_MEMBER is a Load-Execute-Fetch procedure used to load key members to
a global PL/SQL table.
You can view descriptions of all of the parameters for LOAD_KEY_MEMBER in the
Oracle Integration Repository. The Oracle Integration Repository is described in the
preface of this manual.
The required parameters for LOAD_KEY_MEMBER are listed below:
• P_API_VERSION_NUMBER
LOAD_ORG_ROLE
LOAD_ORG_ROLE is a Load-Execute-Fetch procedure used to load organization roles
from the client side to a PL/SQL table on the server side, where the roles will be used by
the Load-Execute-Fetch cycle.
You can view descriptions of all of the parameters for LOAD_ORG_ROLE in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual
The required parameters for LOAD_ORG_ROLE are listed below:
• P_API_VERSION_NUMBER
LOAD_PROJECT
LOAD_PROJECT is a Load-Execute-Fetch procedure used to load a project to a global
PL/SQL record.
You can view descriptions of all of the parameters for LOAD_PROJECT in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual
3-20 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
The required parameters for LOAD_PROJECT are listed below:
• P_API_VERSION_NUMBER
• P_PM_PROJECT_REFERENCE
• P_PROJECT_NAME
• P_CREATED_FROM_PROJECT_ID
The following parameters may be required, depending on the setup of the project
template:
• P_CARRYING_OUT_ORGANIZATION_ID
• P_PUBLIC_SECTOR_FLAG
• P_PROJECT_STATUS_CODE
• P_DESCRIPTION
• P_START_DATE
• P_COMPLETION_DATE
• P_DISTRIBUTION_RULE
• P_CUSTOMER_ID
• P_PROJECT_RELATIONSHIP_CODE
Check Procedures
The following check procedures are PL/SQL procedures used to verify in real time that:
• Project information you have entered into your external system is unique in Oracle
Projects
• Certain functions, such as deleting a project, follow the business rules defined in
Oracle Projects
CHECK_CHANGE_PROJECT_ORG_OK
Use the Check procedure CHECK_CHANGE_PROJECT_ORG_OK to determine if you
can change the CARRYING_OUT_ORGANIZATION_ID field for a particular project or
task.
You can view descriptions of all of the parameters for
CHECK_CHANGE_PROJECT_ORG_OK in the Oracle Integration Repository. The
CHECK_DELETE_PROJECT_OK
Use the Check procedure CHECK_DELETE_PROJECT_OK to determine if you can
delete a project.
You can view descriptions of all of the parameters for CHECK_DELETE_PROJECT_OK
in the Oracle Integration Repository. The Oracle Integration Repository is described in
the preface of this manual.
The required parameters for CHECK_DELETE_PROJECT_OK are listed below:
• P_API_VERSION_NUMBER
CHECK_UNIQUE_PROJECT_REFERENCE
Use the Check procedure CHECK_UNIQUE_PROJECT_REFERENCE to determine if a
new or changed project reference (PM_PROJECT_REFERENCE) is unique.
You can view descriptions of all of the parameters for
CHECK_UNIQUE_PROJECT_REFERENCE in the Oracle Integration Repository. The
Oracle Integration Repository is described in the preface of this manual.
The required parameters for CHECK_UNIQUE_PROJECT_REFERENCE are listed
below:
• P_API_VERSION_NUMBER
PROJECT_IN_REC_TYPE Datatype
The following table shows the PROJECT_IN_REC_TYPE datatype.
PM_PROJECT_REFERENCE VARCHAR2 Yes Code for the project in the external system.
3-22 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Name Type Required? Description
PA_PROJECT_ID NUMBER For update The reference code that uniquely identifies
the project in Oracle Projects
(15)
(240)
PROJECT_STATUS_CODE VARCHAR2 Based on The status of the project. Any status other
template setup than CLOSED is considered active.
(30)
(30)
3-24 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Name Type Required? Description
LABOR_TP_FIXED_DATE DATE No Fixed date to find the effective rate of the bill
rate or burden schedule when determining
the transfer price for labor transactions. This
is defaulted to a project from the project
template. This value for the project is default
for the task fixed date. If cc_process_labor flag
is set to Y, this field is required.
NL_TP_FIXED_DATE DATE No Fixed date to find the effective rate of the bill
rate or burden schedule when determining
the transfer price for non-labor transactions.
This is defaulted to a project from the project
template. If cc_process_nl_flag is set toY, this
field is required.
(15)
3-26 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Name Type Required? Description
(250)
(250)
(250)
(30)
3-28 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Name Type Required? Description
(15)
(15)
(2)
(2)
3-30 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Name Type Required? Description
(30)
_CODE (30)
_REASON_CODE (30)
LABOR_SCHEDULE DATE For update The date used to determine the effective bill
rates when using the labor bill rate schedule
_FIXED_DATE
LABOR_SCHEDULE DATE For update The discount for the labor bill rate schedule
_DISCOUNT
NON_LABOR_SCHEDULE DATE For update The date when the schedule will become
effective
_FIXED_DATE
NON_LABOR_SCHEDULE DATE For update The discount for the non-labor bill rate
schedule
_DISCOUNT
REV_IND_SCH_FIXED_DATE DATE For update The start date of the revenue schedule for a
burden schedule of the type Firm
INV_IND_SCH_FIXED_DATE DATE For update The start date of the invoice schedule for a
burden schedule of the type Firm
LABOR_SCH_TYPE VARCHAR For update The schedule type (Burden or Bill) for labor
expenditure items
(1)
NON_LABOR_SCH_TYPE VARCHAR For update The schedule type (Burden or Bill) for
non-labor expenditure items
(1)
3-32 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Name Type Required? Description
(15)
PROJFUNC_ATTR_FOR VARCHAR2 No
_AR_FLAG (1)
(15)
(15)
PROJECT_OUT_REC_TYPE Datatype
The following table shows the PROJECT_OUT_REC_TYPE datatype.
PA_PROJECT_ID NUMBER The reference code that uniquely identifies the project in Oracle Projects
(15)
PA_PROJECT VARCHAR2 The number that uniquely identifies the project in Oracle Projects
_NUMBER (25)
(1)
PROJECT_ROLE_TBL_TYPE Datatype
The following table shows the PROJECT_ROLE_TBL_TYPE datatype.
(9)
PROJECT_ROLE VARCHAR2 Yes, if PERSON_ID is not The type of role that the person has on the
NULL project
_TYPE (20)
START_DATE DATE No The date when the role begins for the person.
Default value is the project start date.
END_DATE DATE No The date when the role ends for the person
CLASS_CATEGORY_TBL_TYPE Datatype
The following table shows the CLASS_CATEGORY_TBL_TYPE datatype.
CLASS_CATEGORY VARCHAR2 Based on template setup The class category of the project
(30)
3-34 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Name Type Required? Description
TASK_IN_TBL_TYPE Datatype
The following table shows the TASK_IN_TBL_TYPE datatype.
Note: If you are using this datatype to update tasks for an existing
project, you must include the entire WBS structure in the correct
hierarchy.
PM_TASK_REFERENCE VARCHAR2 Yes, or The identifier of the task in the external system
PA_TASK_ID
(25) is used
PA_TASK_ID NUMBER For update The reference code that uniquely identifies a task
within a project in Oracle Projects
(15)
TASK_NAME VARCHAR2 Yes The name that uniquely identifies a task within a
project
(20)
PA_TASK_NUMBER VARCHAR2 Yes The number that identifies the task in Oracle Projects.
Intended for systems that maintain a task number in
(25) addition to a unique task reference.
(250)
_DATE
PM_PARENT_TASK VARCHAR2 No The reference code that identifies the task's parent
task in the external system
_REFERENCE (25)
PA_PARENT_TASK_ID NUMBER For update The identification code of the task's parent task in
Oracle Projects
(30)
BILLABLE_FLAG VARCHAR2 No Default flag for items charged to the task that
indicates if the item can accrue revenue (Y or N)
(1)
3-36 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Name Type Required Description
READY_TO VARCHAR2 No Flag that indicates whether the task is authorized for
revenue accrual
_DISTRIBUTE_FLAG (1)
LIMIT_TO_TXN VARCHAR2 No Flag that indicates that users can charge to the task
only those expenditures listed in the task's transaction
_CONTROLS_FLAG (1) controls
LABOR_STD_BILL VARCHAR2 No The labor standard bill rate schedule used to calculate
revenue for labor expenditure items charged to the
_RATE_SCHDL (20) task
LABOR_SCHEDULE DATE No The date used to determine the effective bill rates of
the task standard labor bill rate schedule
_FIXED_DATE
NON_LABOR DATE No The fixed date used to determine the effective bill
rates of the standard non-labor bill rate schedule
_SCHEDULE_FIXED
_DATE
LABOR_COST VARCHAR2 No The labor cost multiplier defined for the task of a
premium project. The labor cost multiplier is
_MULTIPLIER_NAME (20) populated for all overtime expenditure items charged
to the task.
COST_IND_SCH DATE No The scheduled fixed date of the firm costing burden
schedule
_FIXED_DATE
REV_IND_SCH_FIXED DATE No The scheduled fixed date of the firm revenue burden
schedule
_DATE
INV_IND_SCH_FIXED DATE No The scheduled fixed date of the firm invoice burden
schedule
_DATE
(1)
_TYPE (1)
ACTUAL_START_DATE DATE No The actual start date of the project in the external
system
ACTUAL_FINISH_DATE DATE No The actual finish date of the project in the external
system
EARLY_START_DATE DATE No The early start date of the project in the external
system
EARLY_FINISH_DATE DATE No The early finish date of the project in the external
system
LATE_START_DATE DATE No The late start date of the project in the external system
3-38 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Name Type Required Description
LATE_FINISH_DATE DATE No The late finish date of the project in the external
system
SCHEDULED_START DATE No The scheduled start date of the project in the external
system
_DATE
SCHEDULED_FINISH DATE No The scheduled finish date of the project in the external
system
_DATE
PROJECT_RATE DATE No Default project currency rate date (date for accounting
currency rate for a given rate type).
_DATE
LABOR_TP NUMBER No Identifier for transfer price schedule for cross charged
labor transactions. This is defaulted to a project from
_SCHEDULE_ID the project template. If cc_process_labor_flag is set to
Y, this field is required.
LABOR_TP_FIXED_DATE DATE No Fixed date to find the effective rate of the bill rate or
burden schedule when determining the transfer price
for labor transactions. This is defaulted to a project
from the project template. This value for the project is
default for the task fixed date. If
CC_PROCESS_NL_FLAG is set to Y, this field is
required.
NL_TP_SCHEDULE NUMBER No Identifier for transfer price schedule for cross charged
non-transactions. This is defaulted to a project from
_ID the project template. If CC_PROCESS_NL_FLAG is
set to Y, this field is required.
NL_TP_FIXED_DAT DATE No Fixed date to find the effective rate of the bill rate or
burden schedule when determining the transfer price
for non-labor transactions. This is defaulted to a
project from the project template. If
CC_PROCESS_NL_FLAG is set to Y, this field is
required.
RECEIVE_PROJECT VARCHAR2 No Flag that indicates that the task may receive charges
from internal suppliers via inter-project billing.
_INVOICE_FLAG (1)
(30)
P_JOB_BILL_RATE NUMBER No The identifier of the job-based bill rate schedule for
the project
_SCHEDULE_ID
P_TASKFUNC_COST VARCHAR2 No The task-level default value for project functional cost
rate type
_RATE_TYPE (30)
P_TASKFUNC_COST DATE No The task-level default value for project functional cost
rate date
_RATE_DATE
3-40 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Name Type Required Description
_BILL_RT_SCH_ID (15)
_REASON_CODE (30)
_REASON_CODE (30)
(240)
P_RETIREMENT_COST VARCHAR2 No Flag that identifies tasks for retirement cost collection
_FLAG (1)
P_CINT_ELIGIBLE_FLAG VARCHAR2 No Flag that indicates whether the project is eligible for
capitalized interest
(1)
_METHOD (30)
(30)
_DATE
_DATE
_DATE
_DATE
_DATE
P_CRITICAL_FLAG VARCHAR2 No Flag that indicates if the task version is part of the
critical path. This is a task-specific attribute.
(1)
_QUANTITY (17)
(17)
TASK_OUT_TBL_TYPE Datatype
The following table shows the TASK_OUT_TBL_TYPE datatype.
3-42 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Name Type Description
PA_TASK_ID NUMBER The code that uniquely identifies a task in a project in Oracle
Projects
(15)
PM_TASK_REFERENCE VARCHAR2 The reference code that identifies a project's task in the external
system
(25)
(1)
TASK_IN_REC_TYPE Datatype
The following table shows the TASK_IN_REC_TYPE datatype.
RETIREMENT_COST VARCHAR2 No Flag that identifies tasks for retirement cost collection
_FLAG (1)
CINT_ELIGIBLE_FLAG VARCHAR2 No Flag that indicates whether the project is eligible for
capitalized interest
(1)
(4000)
BASE_PERCENT VARCHAR2 Yes Base percent complete derivation code for the task
_COMP_DERIV_CODE (30)
SCH_TOOL_TSK VARCHAR2 Yes Default scheduling tool task type for the task version
_TYPE_CODE (30)
_CODE (30)
EFFORT_DRIVEN_FLAG VARCHAR2 Yes The flag that indicates whether the task is effort driven
(1)
LEVEL_ASSIGNMENTS VARCHAR2 Yes The flag that indicates whether the assignments on this task
should be leveled
_FLAG (1)
INVOICE_METHOD VARCHAR2 Yes The invoice method for the task. Valid only for top tasks
with Invoice Method enabled.
(30)
CUSTOMER_ID NUMBER Yes The customer for the task. Valid only for top tasks with
Customer enabled.
_CODE (30)
FINANCIAL_TASK_FLA VARCHAR2 Yes The flag that indicates whether the task is a financial task
G or not. This flag is valid only for partially shared structures.
(1) Tasks that are above this level are used for financial
management.
_REFERENCE (150)
3-44 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Name Type Req? Description
(4000)
EXT_ACT_DURATION NUMBER Yes From the external application, the actual duration
EXT_REMAIN NUMBER Yes From the external application, the remaining duration
_DURATION
EXT_SCH_DURATION NUMBER Yes From the external application, the scheduled duration
CUSTOMER_TBL_TYPE Datatype
This record type enables the user to pass multiple customers to the UPDATE_PROJECT
API. The following table shows the CUSTOMER_TBL_TYPE datatype.
CUSTOMER_ID NUMBER Based on template setup The identifier of the project customer
(15)
3-46 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Name Type Req? Description
DELIVERABLE_IN_REC_TYPE
The following table shows the DELIVERABLE_IN_REC_TYPE datatype.
(100)
(240)
(2000)
(30)
(30)
DELIVERABLE_OUT_REC_TYPE
The following table shows the DELIVERABLE_OUT_REC_TYPE datatype.
3-48 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Name Type Required? Description
DELIVERABLE_ID NUMBER Yes The unique identifier of the deliverable in Oracle Projects
(1)
ACTION_IN_REC_TYPE
The following table shows the ACTION_IN_REC_TYPE datatype.
(100)
(30)
(2000)
(30)
_CODE (30)
VENDOR_ID NUMBER No The ID of the vendor that will supply the object
UNIT_PRICE NUMBER No The unit price of the object. The unit price is needed
only for non-item deliverable procurement actions.
3-50 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Name Type Required? Description
REQUISITION_LINE_TYPE NUMBER No The requisition line type can only have a type of
"AMOUNT". The requisition line type is needed
_ID only for non-item deliverable procurement actions.
(10)
_DATE
(1)
(30)
3-52 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Name Type Required? Description
(30)
PROJECT_FUNCTIONAL VARCHAR2 No Rate type for project functional currency for the
billing event
_RATE_TYPE (30)
PROJECT_FUNCTIONAL DATE No Rate date for project functional currency for the
billing event
_RATE_DATE
PROJECT_FUNCTIONAL NUMBER No Rate for project functional currency for the billing
event
_RATE
PROJECT_RATE_TYPE VARCHAR2 No Rate type for project currency for the billing event
(30)
PROJECT_RATE_DATE DATE No Rate date for project currency for the billing event
PROJECT_RATE NUMBER No Rate for project currency for the billing event
FUNDING_RATE_TYPE VARCHAR2 No Rate type for funding currency for the billing event
(30)
FUNDING_RATE_DATE DATE No Rate date for funding currency for the billing event
FUNDING_RATE NUMBER No Rate for funding currency for the billing event
ACTION_OUT_REC_TYPE
The following table shows the ACTION_OUT_REC_TYPE datatype.
ACTION_ID NUMBER Yes The unique identifier of the deliverable action in Oracle Projects
(1)
• Most of the Oracle Projects APIs use a standard set of input and output parameters.
For a description of these parameters, see Standard API Parameters, page 2-21.
• For an example of PL/SQL code for creating a project without using composite
datatypes, see Creating a Project Using the Load-Execute-Fetch APIs, page 3-60.
3-54 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Step 2: Select a Source Template or Project
When using the APIs to create a new project in Oracle Projects, first select a project
template from which to create the new project. Oracle Projects will not create a new
project unless you perform this step. Use the API view PA_SELECT_TEMPLATE_V to
select a valid Oracle Projects source template.
Alternatively, you can choose a source project. The only difference between templates
and projects is that the field TEMPLATE_FLAG for templates is set to Y. All projects
originate from templates, and the originating template determines which Quick Entry
fields appear in your new project. In this section, all instructions involving source
templates also apply to source projects.
• PA_DISTRIBUTION_RULES_LOV_V
• PA_KEY_MEMBERS_LOV_V
• PA_ORGANIZATIONS_LOV_V
• PA_CUSTOMERS_LOV_V
3-56 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Step 5: Interface Project Information to the Server
Not all tools can call the APIs that use composite datatypes. Tools that do not support
composite datatypes must call the supplementary Load-Execute-Fetch APIs. The
Load-Execute-Fetch APIs include procedures to initialize, load, execute, fetch, and clear
data.
Use these APIs only if you use a tool that does not support composite datatype
parameters. If the tool (for example, Oracle PL/SQL Version 2.3 or higher) supports
composite datatype parameters, you can call the CREATE_PROJECT and
UPDATE_PROJECT APIs directly.
The following table illustrates the relationship between the information in the user
interface and LOAD_PROJECT:
NAME P_PROJECT_NAME
DESCRIPTION P_DESCRIPTION
START_DATE P_START_DATE
COMPLETION_DATE P_COMPLETION_DATE
PROJECT_STATUS_CODE P_PROJECT_STATUS_CODE
PUBLIC_SECTOR_FLAG P_PUBLIC_SECTOR_FLAG
DISTRIBUTION_RULE P_DISTRIBUTION_RULE
CARRYING_OUT_ORGANIZATION_ID P_CARRYING_OUT_ORGANIZATION_ID
CUSTOMER_NAME P_CUSTOMER_ID
LOAD_PROJECT passes the values entered into the Quick Entry value field to their
corresponding parameters. LOAD_PROJECT passes additional parameters, depending
on whether you are updating an existing project or creating a new one. When youcreate
a new project, this procedure must also pass the following parameters:
• P_PM_PROJECT_REFERENCE passes the unique reference code that identifies the
project in the external system.
The following table shows the input parameters for the class category quick entry field.
Important: Youmust load parent tasks before you can load their
subtasks.
For the names and descriptions of other parameters that LOAD_TASK can pass, see
3-58 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
LOAD_TASK, page 3-81.
• Output parameters:
• P_PA_PROJECT_ID, the unique Oracle Projects identification code for the new
project.
3-60 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
--variables needed for Oracle Project specific parameters
l_created_from_project_id NUMBER;
l_pm_product_code VARCHAR2(10);
l_number_of_task_levels NUMBER;
l_project_name VARCHAR2(30);
l_pm_project_reference VARCHAR2(25);
l_project_status_code VARCHAR2(30);
l_distribution_rule VARCHAR2(30);
l_public_sector_flag VARCHAR2(1);
l_carrying_out_organization_id NUMBER;
l_start_date DATE;
l_completion_date DATE;
l_actual_start_date DATE;
l_actual_finish_date DATE;
l_early_start_date DATE;
l_early_finish_date DATE;
l_late_start_date DATE;
l_late_finish_date DATE;
l_person_id NUMBER;
l_project_role_type VARCHAR2(20);
l_class_category VARCHAR2(30);
l_class_code VARCHAR2(30);
l_project_id NUMBER(15);
l_pa_project_number VARCHAR2(25);
l_project_description VARCHAR2(250);
l_customer_id NUMBER;
l_project_relationship_code VARCHAR2(30);
l_task_id NUMBER(15);
l_pm_task_reference VARCHAR2(25);
l_task_index NUMBER;
l_tasks_in pa_project_pub.task_in_tbl_type;
l_task_rec pa_project_pub.task_in_rec_type;
l_key_member_rec pa_project_pub.project_role_rec_type;
l_key_member_tbl pa_project_pub.project_role_tbl_type;
l_task_return_status VARCHAR2(1);
API_ERROR EXCEPTION;
BEGIN
--PRODUCT RELATED DATA
l_pm_product_code :='SOMETHING';
--PROJECT DATA
l_created_from_project_id := 1040;
l_project_name := 'PROJECT_NAME';
l_pm_project_reference := 'PROJECT_NAME';
l_project_description := 'PROJECT_DESCRIPTION';
l_project_status_code := '';
--l_distribution_rule := 'COST/COST';
l_carrying_out_organization_id :=2;
l_start_date :='01-jan-94';
l_completion_date :='31-mar-99';
l_actual_start_date :='01-jan-93';
l_actual_finish_date :='01-apr-99';
l_early_start_date :='01-jan-94';
l_early_finish_date :='31-mar-99';
l_late_start_date :='01-jan-94';
l_late_finish_date :='31-mar-99';
3-62 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
for level1 in 1..number_of_tasks1 loop
a:= a + 1;
l_task_rec.pm_task_reference :=a;
l_task_rec.task_name :='TOP LEVEL '||a;
l_task_rec.pm_parent_task_reference :='';
l_task_rec.task_start_date := '09-MAR-95';
l_task_rec.task_completion_date := '05-JUL-95';
l_task_rec.actual_start_date := '10-MAR-95';
l_task_rec.actual_finish_date := '06-JUL-95';
l_task_rec.early_start_date := '09-MAR-95';
l_task_rec.early_finish_date := '05-JUL-95';
l_task_rec.late_start_date := '09-MAR-95';
l_task_rec.late_finish_date := '05-JUL-95';
--l_task_rec.address_id := 1012;
l_tasks_in(a):= l_task_rec;
parent_level1:= a;
FOR level2 IN 1..number_of_tasks2 LOOP
a:= a + 1;
l_task_rec.pm_task_reference :=a;
l_task_rec.task_name :='2 LEVEL '||a;
l_task_rec.pm_parent_task_reference := parent_level1;
l_tasks_in(a) := l_task_rec;
parent_level2 := a;
for level3 IN 1..number_of_tasks3 loop
a := a + 1;
l_task_rec.pm_task_reference := a;
l_task_rec.task_name :='3 LEVEL '||a;
l_task_rec.pm_parent_task_reference :=
parent_level2;
l_tasks_in(a) := l_task_rec;
parent_level3 := a;
for level4 IN 1..number_of_tasks4 loop
a := a + 1;
l_task_rec.pm_task_reference := a;
l_task_rec.task_name :='Fourth LEVEL
'||a;
l_task_rec.pm_parent_task_reference :=
parent_level3;
l_tasks_in(a) := l_task_rec;
end loop;
end loop;
END LOOP;
end loop;
-----------------------
3-64 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
--This example has
-- only one )
FOR i IN 1..1 LOOP
pa_project_pub.load_class_category(
p_api_version_number =>
l_api_version_number
,p_return_status => l_return_status
,p_class_category => l_class_category
,p_class_code => l_class_code );
IF l_return_status != 'S'
THEN
RAISE API_ERROR;
END IF;
END LOOP;
-----------------------
--LOAD_TASK (loop for multiple tasks)
FOR i IN 1..a LOOP
pa_project_pub.load_task( p_api_version_number =>
l_api_version_number
,p_return_status => l_return_status
,p_pm_task_reference =>
l_tasks_in(i).pm_task_reference
,p_task_name => l_tasks_in(i).task_name
,p_pm_parent_task_reference =>
l_tasks_in(i).pm_parent_task_reference
,p_task_start_date =>
l_tasks_in(i).task_start_date
,p_task_completion_date =>
l_tasks_in(i).task_completion_date
,p_actual_start_date =>
l_tasks_in(i).actual_start_date
,p_actual_finish_date =>
l_tasks_in(i).actual_finish_date
,p_early_start_date =>
l_tasks_in(i).early_start_date
,p_early_finish_date =>
l_tasks_in(i).early_finish_date
,p_late_start_date =>
l_tasks_in(i).late_start_date
,p_late_finish_date =>
l_tasks_in(i).late_finish_date
,p_address_id =>
l_tasks_in(i).address_id);
IF l_return_status != 'S'
THEN
RAISE API_ERROR;
END IF;
END LOOP;
-----------------------
--EXECUTE_CREATE_PROJECT
pa_project_pub.execute_create_project(p_api_version_number =>
l_api_version_number
,p_commit => l_commit
,p_init_msg_list => 'F'
,p_msg_count => l_msg_count
,p_msg_data => l_msg_data
,p_return_status => l_return_status
,p_pm_product_code =>
l_pm_product_code
,p_pa_project_id => l_project_id
,p_pa_project_number =>
Structure APIs
The structure APIs enable you to use an external system to create and change structure
versions. The structure APIs also enable you to add, update, and delete tasks.
3-66 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Note: When youcall any structure API that requires a task identifier,
you must identify the task by passing either the P_PA_TASK_ID or the
P_PM_TASK_REFERENCE parameter.
View Description
• Load-Execute-Fetch Procedures
• FETCH_STRUCTURE_VERSION, page 3-80
3-68 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• FETCH_TASKS, page 3-80
• Check Procedures
• CHECK_ADD_SUBTASK_OK, page 3-83
ADD_TASK
ADD_TASK is a PL/SQL procedure used to add new subtasks to a task of a project in
Oracle Projects. The task record type has been replaced with a parameter with a
standard datatype (NUMBER, VARCHAR2, or DATE) for every field in the record type
definition so that you can call this procedure directly.
• You cannot create a subtask for any project if the parent task has any of the
• A budget
• An asset
• An expenditure item
• For contract projects, you cannot add a subtask to a parent task that has any of the
following attributes:
• Labor cost multiplier
• Labor multiplier
3-70 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Performing Scheduling Validations
When set to 'N' the P_OP_VALIDATE_FLAG parameter eliminates redundant
validation for certain types of scheduling data. Unnecessary scheduling validations can
slow system performance.
You should set P_OP_VALIDATE_FLAG to 'N' if you are using this API to integrate a
third-party scheduling tool with Oracle Projects. Only set this parameter to 'N' if the
third-party scheduling tool can perform validations for:
• Dependencies between tasks and activities
You should set P_OP_VALIDATE_FLAG to 'Y' if you are using the APIs to upload data
from a legacy system that does not perform an extensive validation for the above.
Scheduling data must be validated in order to ensure data integrity in Oracle Projects.
• P_PM_PRODUCT_CODE
• P_PM_PROJECT_REFERENCE
• P_STRUCTURE_VERSION_ID
• P_PA_PROJECT_ID
• P_PM_TASK_REFERENCE
• P_PA_TASK_NUMBER
• P_TASK_NAME
• P_PRED_STRING
• P_PRED_DELIMITER
• P_BASE_PERCENT_COMP_DERIV_CODE
• P_SCH_TOOL_TSK_TYPE_CODE
• P_CONSTRAINT_DATE
• P_FREE_SLACK
• P_TOTAL_SLACK
• P_EFFORT_DRIVEN_FLAG
• P_LEVEL_ASSIGNMENTS_FLAG
• P_INVOICE_METHOD
• P_CUSTOMER_ID
• P_GEN_ETC_SOURCE_CODE
• P_MAPPED_TASK_ID
• P_MAPPED_TASK_REFERENCE
• P_EXT_ACT_DURATION
• P_EXT_REMAIN_DURATION
• P_EXT_SCH_DURATION
APPLY_LP_PROG_ON_CWV
APPLY_LP_PROG_ON_CWV is used to apply the latest progress information on the
current working version of a structure.
You can view descriptions of all of the parameters for APPLY_LP_PROG_ON_CWV in
the Oracle Integration Repository. The Oracle Integration Repository is described in the
preface of this manual.
The required parameters for APPLY_LP_PROG_ON_CWV are listed below:
• P_API_VERSION_NUMBER
• P_PM_WORKING_STR_VERSION_ID
BASELINE_STRUCTURE
BASELINE_STRUCTURE is a PL/SQL procedure to baseline a structure version
You can view descriptions of all of the parameters for BASELINE_STRUCTURE in the
Oracle Integration Repository. The Oracle Integration Repository is described in the
3-72 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
preface of this manual.
The required parameters for BASELINE_STRUCTURE are listed below:
• P_API_VERSION_NUMBER
• P_STRUCTURE_VERSION_ID
• P_PA_PROJECT_ID
CHANGE_CURRENT_WORKING_VERSION
CHANGE_CURRENT_WORKING_VERSION is used to change the current working
version of a structure.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_STRUCTURE_VERSION_ID
• P_PA_PROJECT_ID
CHANGE_STRUCTURE_STATUS
Use this PL/SQL procedure to publish, submit, rework, reject, or approve a structure
and thereby change its status code. Valid status codes are:
• STRUCTURE_WORKING
• STRUCTURE_PUBLISHED
• STRUCTURE_SUBMITTED
• STRUCTURE_REJECTED
• STRUCTURE_APPROVED
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_PA_PROJECT_ID
• P_STATUS_CODE
DELETE_STRUCTURE_VERSION
DELETE_STRUCTURE_VERSION is a PL/SQL procedure used to delete a structure
version from Oracle Projects.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_STRUCTURE_VERSION_ID
DELETE_TASK
DELETE_TASK is a PL/SQL procedure used to delete tasks of a project in Oracle
Projects.
3-74 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
6. No lowest task requisition line exists
• You can delete a top task if it satisfies Rules 1 through 3 for cascaded task deletion.
• You can delete a lowest task if it satisfies Rules 4 through 8 for cascaded task
deletion.
Parameters
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_PM_PRODUCT_CODE
GET_TASK_VERSION
GET_TASK_VERSION is used to get the task version ID of a task for a particular
structure version.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_PA_PROJECT_ID
• P_PA_TASK_ID
• P_PA_STRUCTURE_VERSION_ID
UPDATE_TASK
UPDATE_TASK is a PL/SQL procedure used to update existing tasks of a project in
Oracle Projects. We replaced the task record type with a parameter that uses a standard
datatype (VARCHAR2, NUMBER, and DATE) for every field in the record type
definition so you can call this procedure directly.
The following rules apply to task numbers, identification codes, and organizations:
• A new task number must be unique within a project. (You can use the Check
procedure CHECK_UNIQUE_TASK_NUMBER to verify whether your new task
number is unique in Oracle Projects.)
• If the external system pushes both the TASK_ID and the PM_TASK_REFERENCE
to Oracle Projects, Oracle Projects uses the TASK_ID to identify the task and
updates PM_TASK_REFERENCE with the incoming value (if different).
• You cannot change a task number if any of the following items have been charged
against the task:
• Expenditure items
3-76 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• Purchase order requisition distributions
• Supplier invoices
• You cannot change a task organization if any of the following items have been
charged against the task:
• Cost distribution lines
• Draft invoices
• Each task with a completion date must also have a start date.
• A task completion date must occur before the project completion date.
The following rules apply to moving a task within a project's work breakdown structure
(WBS).
• You can move a subtask as long as its new parent task belongs to the same top task,
because billing, budgeting, and creating capital assets are driven from top tasks.
• PM_TASK_REFERENCE
• TASK_NUMBER
• READY_TO_BILL_FLAG
• READY_TO_DISTRIBUTE_FLAG
• CARRYING_OUT_ORGANIZATION_ID
• SERVICE_TYPE_CODE
• Description
You should set P_OP_VALIDATE_FLAG to 'Y' if you are using the APIs to upload data
from a legacy system that does not perform an extensive validation for the above.
Scheduling data must be validated in order to ensure data integrity in Oracle Projects.
3-78 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_PM_PRODUCT_CODE
• P_PM_PROJECT_REFERENCE
• P_PA_PROJECT_ID
• P_PM_TASK_REFERENCE
• P_PA_TASK_ID
• P_TASK_NAME
• P_PA_TASK_NUMBER
• P_TASK_DESCRIPTION
• P_PRED_STRING
• P_PRED_DELIMITER
• P_BASE_PERCENT_COMP_DERIV_CODE
• P_SCH_TOOL_TSK_TYPE_CODE
• P_CONSTRAINT_TYPE_CODE
• P_CONSTRAINT_DATE
• P_FREE_SLACK
• P_TOTAL_SLACK
• P_EFFORT_DRIVEN_FLAG
• P_LEVEL_ASSIGNMENTS_FLAG
• P_INVOICE_METHOD
• P_CUSTOMER_ID
• P_GEN_ETC_SOURCE_CODE
• P_FINANCIAL_TASK_FLAG
• P_MAPPED_TASK_REFERENCE
• P_DELIVERABLE
• P_EXT_ACT_DURATION
• P_EXT_REMAIN_DURATION
• P_EXT_SCH_DURATION
• P_ETC_EFFORT
• P_PERCENT_COMPLETE
FETCH_STRUCTURE_VERSION
FETCH_STRUCTURE_VERSION is a Load-Execute-Fetch procedure that returns
structure version IDs of workplan and financial structures.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
FETCH_TASK
FETCH_TASK is a Load-Execute-Fetch procedure used to fetch output parameters
related to tasks. FETCH_TASK is used to load successfully processed tasks to a global
PL/SQL table.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_TASK_INDEX
FETCH_TASKS
FETCH_TASKS is a wrapper for FETCH_TASK to handle multiple calls to
FETCH_TASK.
3-80 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_TASK_INDEX
FETCH_TASK_VERSION
FETCH_TASK_VERSION is a Load-Execute-Fetch procedure that returns version
identifiers of tasks.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_TASK_INDEX
LOAD_STRUCTURE
LOAD_STRUCTURE is a Load-Execute-Fetch procedure used to load structure data.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
LOAD_TASK
LOAD_TASK is a Load-Execute-Fetch procedure used to load a task to a global PL/SQL
table.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
• P_TASK_NAME
• P_PA_TASK_NUMBER
• P_PRED_STRING
• P_PRED_DELIMITER
• P_BASE_PERCENT_COMP_DERIV_CODE
• P_SCH_TOOL_TSK_TYPE_CODE
• P_CONSTRAINT_TYPE_CODE
• P_CONSTRAINT_DATE
• P_FREE_SLACK
• P_TOTAL_SLACK
• P_EFFORT_DRIVEN_FLAG
• P_LEVEL_ASSIGNMENTS_FLAG
• P_INVOICE_METHOD
• P_CUSTOMER_ID
• P_GEN_ETC_SOURCE_CODE
• P_FINANCIAL_TASK_FLAG
• P_MAPPED_TASK_ID
• P_MAPPED_TASK_REFERENCE
• P_EXT_ACT_DURATION
• P_EXT_REMAIN_DURATION
• P_EXT_SCH_DURATION
• P_ETC_EFFORT
3-82 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• P_PERCENT_COMPLETE
LOAD_TASKS
LOAD_TASKS is a Load-Execute-Fetch procedure used to load tasks to a global PL/SQL
table. The parameters for this procedure are the same as those for LOAD_TASK, page 3-
81.
Check Procedures
The following check procedures are PL/SQL procedures used to verify in real time that:
• Task information you have entered into your external system is unique in Oracle
Projects
• Certain functions, such as deleting a task, follow the business rules defined in
Oracle Projects
CHECK_ADD_SUBTASK_OK
Use the Check procedure CHECK_ADD_SUBTASK_OK to determine if a subtask can
be added to a parent task.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
CHECK_CHANGE_PARENT_OK
Use the Check procedure CHECK_CHANGE_PARENT_OK to determine if you can
move a task from one parent task to another. You can move a task as long as it retains
the same top task.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
CHECK_DELETE_TASK_OK
Use the Check procedure CHECK_DELETE_TASK_OK to determine if you can delete a
CHECK_TASK_NUMBER_CHANGE_OK
Use the Check procedure CHECK_TASK_NUMBER_CHANGE_OK to determine if you
can change a task's number.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
CHECK_TASK_MFD
Use the check procedure CHECK_TASK_MFD to determine whether tasks deleted in an
external scheduling system such as Microsoft Project can be deleted in Oracle Projects
when that system is integrated with Oracle Projects. Tasks are deleted immediately in
Oracle Projects if no published version exists, and are marked for deletion or cancelled
when the working workplan version is published in Oracle Projects. This procedure
prevents tasks from being deleted if they have transactions.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
CHECK_UNIQUE_TASK_NUMBER
Use the Check procedure CHECK_UNIQUE_TASK_NUMBER to determine if a new or
changed task number is unique within a project.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
3-84 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• P_API_VERSION_NUMBER
CHECK_UNIQUE_TASK_REFERENCE
Use the Check procedure CHECK_UNIQUE_TASK_REFERENCE to determine if a new
or changed task reference (PM_TASK_REFERENCE) is unique.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• LOAD_EXTENSIBLE_ATTRIBUTES
Global Constants
The package PA_PROJECT_PUB includes global constants, which are used for the
parameter P_TRANSACTION_TYPE. The global constants are listed in the following
table:
LOAD_EXTENSIBLE_ATTRIBUTE
This API loads a single attribute value for a given attribute group for the specified
project and task.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The following table shows which parameters for this procedure are required:
Name Required
P_API_VERSION_NUMBER Yes
P_ATTR_GRP_ROW_INDEX Yes
3-86 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Parameter Requirements
In the preceding table, if the Required column contains a number, the following logic
determines if a value is required:
Of the parameters that have the same number in the Required column, a value must be
supplied for only one of the parameters. For example, P_TASK_ID and
P_TASK_REFERENCE both have the number 1 in the Required column. A value must
be supplied for either P_TASK_ID or P_TASK_REFERENCE.
LOAD_EXTENSIBLE_ATTRIBUTES
This is a bulk load API which loads the attribute values in a batch of 1000 attributes per
API call. This procedure calls the LOAD_EXTENSIBLE_ATTRIBUTE API.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The following table shows the required parameters for this procedure:
Name Required
P_ATTR_GRP_ROW_INDEX Yes
Attribute Value
3-88 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Attribute Value
The following table illustrates how the Attribute Row Identifier puts the attributes into
a single row.
PL/SQL Attribute Internal Internal Attribute Value Attribute Value Attribute Value
Record Row Attribute Attribute Name (String) (Number) (Date)
Number Identifier Group Name
To load the information shown here, a PL/SQL record is used to load each cell in the
table above. All the cells in a single row can be identified by using a common Attribute
Row Identified.
The following table shows the logical approach for loading this information using the
LOAD_EXTENSIBLE_ATTRIBUTES bulk load API.
This example illustrates how the Attribute Row Identifier is used to group the attributes
into a single row. Using the bulk load approach, you can load several attribute groups
(both single- and multi-row) in one call to the API.
3-90 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Example of Using the LOAD_EXTENSIBLE_ATTRIBUTE API
The following sample script shows how you can use the
LOAD_EXTENSIBLE_ATTRIBUTE API to integrate a single attribute/value pair for a
user-defined attribute group.
3-92 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
l_number_of_task_levels number;
l_project_name varchar2(30);
l_project_number varchar2(80);
l_pm_project_reference varchar2(25);
l_project_status_code varchar2(30);
l_distribution_rule varchar2(30);
l_public_sector_flag varchar2(1);
l_carrying_out_organization_id number;
l_start_date date;
l_completion_date date;
l_actual_start_date date;
l_actual_finish_date date;
l_early_start_date date;
l_early_finish_date date;
l_late_start_date date;
l_late_finish_date date;
l_person_id number;
l_project_role_type varchar2(20);
l_class_category varchar2(30);
l_class_code varchar2(30);
l_project_id number(15);
l_pa_project_number varchar2(25);
l_project_description varchar2(250);
l_customer_id number;
l_project_relationship_code varchar2(30);
l_task_id number(15);
l_pm_task_reference varchar2(25);
l_task_index number;
project_loop number;
l_tasks_in pa_project_pub.task_in_tbl_type;
l_task_rec pa_project_pub.task_in_rec_type;
l_key_member_rec pa_project_pub.project_role_rec_type;
l_key_member_tbl pa_project_pub.project_role_tbl_type;
l_task_return_status varchar2(1);
l_short_name varchar2(10);
l_role_list_id number;
l_work_type_id number;
l_calendar_id number;
l_location_id number;
l_probability_member_id number;
l_project_value number;
l_opp_value_currency_code varchar2(15) := 'USD';
l_expected_approval_date date;
api_error exception;
l_org_member_rec pa_project_pub.project_role_rec_type;
l_org_member_tbl pa_project_pub.project_role_tbl_type;
l_task_version_id number;
l_encoded_msg varchar2(4000);
l_decoded_msg varchar2(4000);
l_final_msg varchar2(4000);
l_structure_type varchar2(25);
l_structure_version_name varchar2(25);
l_structure_version_id varchar2(25);
l_structure_description varchar2(150);
l_long_name varchar2(80);
v_time_before number;
l_ATTR_GRP_ROW_INDEX number;
l_ATTR_GRP_INTERNAL_NAME varchar2(15);
l_ATTR_INTERNAL_NAME varchar2(15);
l_ATTR_DISP_VALUE varchar2(15);
3-94 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
l_task_rec.early_finish_date := '01-APR-05';
l_task_rec.late_start_date := '01-JAN-01';
l_task_rec.late_finish_date := '01-APR-05';
l_tasks_in(a) := l_task_rec;
parent_level1 := a;
FOR level2 IN 1..number_of_tasks2 LOOP
a := a + 1;
l_task_rec.pm_task_reference := a;
l_task_rec.task_name := '2 LEVEL '|| a;
l_task_rec.pm_parent_task_reference := parent_level1;
l_tasks_in(a) := l_task_rec;
parent_level2 := a;
for level3 IN 1..number_of_tasks3 loop
a := a + 1;
l_task_rec.pm_task_reference := a;
l_task_rec.task_name :='3 LEVEL '|| a;
l_task_rec.pm_parent_task_reference := parent_level2;
l_tasks_in(a) := l_task_rec;
parent_level3 := a;
for level4 IN 1..number_of_tasks4 loop
a := a + 1;
l_task_rec.pm_task_reference := a;
l_task_rec.task_name := '4 LEVEL '|| a;
l_task_rec.pm_parent_task_reference := parent_level3;
l_tasks_in(a) := l_task_rec;
for level5 IN 1..number_of_tasks5 loop
a := a + 1;
l_task_rec.pm_task_reference := a;
l_task_rec.task_name := '5 LEVEL '|| a;
l_task_rec.pm_parent_task_reference := parent_level4;
l_tasks_in(a) := l_task_rec;
for level6 IN 1..number_of_tasks6 loop
a := a + 1;
l_task_rec.pm_task_reference := a;
l_task_rec.task_name := '6 LEVEL '|| a;
l_task_rec.pm_parent_task_reference := parent_level5;
l_tasks_in(a) := l_task_rec;
end loop;––6th level
end loop;––5th level
end loop;––4th level
end loop;––3rd level
end loop;––2nd level
end loop;––1st level
-----------------------
dbms_output.put_line('Total tasks processed. '||l_tasks_in.count);
-----------------------
--INIT_CREATE_PROJECT
pa_project_pub.init_project;
-----------------------
--dbms_output.put_line('Before load_project');
--LOAD_PROJECT
pa_project_pub.load_project( p_api_version_number =>
l_api_version_number
,p_return_status => l_return_status
,p_created_from_project_id => l_created_from_project_id
,p_project_name => l_project_name
,p_long_name => l_long_name
,p_description => l_project_description
,p_pm_project_reference => l_pm_project_reference
3-96 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
END IF;
-----------------------
--dbms_output.put_line('bef load task');
-----------------------
--EXECUTE_CREATE_PROJECT
pa_project_pub.execute_create_project(
p_api_version_number => l_api_version_number
,p_commit => l_commit
,p_init_msg_list => 'T'
,p_msg_count => l_msg_count
,p_msg_data => l_msg_data
,p_return_status => l_return_status
,p_workflow_started => l_work_flow_started
,p_pm_product_code => l_pm_product_code
,p_pa_project_id => l_project_id
,p_pa_project_number => l_pa_project_number
);
--dbms_output.put_line ('status '||l_return_status || ' msg count
'||l_msg_count);
IF l_return_status in( 'E', 'U' ) THEN
dbms_output.put_line( 'l_msg_data '||l_msg_data );
dbms_output.put_line( 'Error count '||l_msg_count );
l_msg_count := fnd_msg_pub.count_msg;
FOR l_counter IN REVERSE 1..l_msg_count LOOP
PA_UTILS.Get_Encoded_Msg(
p_index => l_counter
,p_msg_out => l_encoded_msg);
fnd_message.set_encoded(l_encoded_msg);
l_decoded_msg := fnd_message.get;
l_final_msg := l_final_msg || nvl(l_decoded_msg, l_encoded_msg);
dbms_output.put_line( 'ERROR MESSAGE CODE: '|| l_counter|| ' :
'||l_encoded_msg );
dbms_output.put_line( 'ERROR MESSAGE TEXT: '|| l_counter|| ' : '||
l_final_msg );
END LOOP;
--FETCH_TASK
FOR l_task_index in 1..a LOOP
pa_project_pub.fetch_task(
p_api_version_number => l_api_version_number
,p_return_status => l_return_status
,p_task_index => l_task_index
,p_pa_task_id => l_task_id
,p_pm_task_reference => l_pm_task_reference
,p_task_return_status => l_task_return_status
);
IF l_return_status != 'S' OR l_task_return_status != 'S' THEN
dbms_output.put_line ('error text '|| SUBSTR (SQLERRM , 1 , 240));
RAISE API_ERROR;
END IF;
END LOOP;
--dbms_output.put_line('bef execute fetch str workplan');
-----------------------
--FETCH_TASK
pa_project_pub.fetch_structure_version(
p_api_version_number => l_api_version_number
,p_return_status => l_return_status
,p_structure_type => 'WORKPLAN'
,p_pa_structure_version_id => l_task_version_id
,p_struc_return_status => l_task_return_status
);
IF l_return_status != 'S' THEN
dbms_output.put_line ('error text '|| SUBSTR (SQLERRM , 1 , 240));
RAISE API_ERROR;
ELSE
dbms_output.put_line (' Workplan Str ver id '||l_task_version_id );
END IF;
--dbms_output.put_line('bef execute fetch str financial');
pa_project_pub.fetch_structure_version(
p_api_version_number => l_api_version_number
,p_return_status => l_return_status
,p_structure_type => 'FINANCIAL'
,p_pa_structure_version_id => l_task_version_id
,p_struc_return_status => l_task_return_status);
IF l_return_status != 'S' THEN
dbms_output.put_line ('error text '|| SUBSTR (SQLERRM , 1 , 240));
RAISE API_ERROR;
ELSE
dbms_output.put_line (' Financial Str ver id '||l_task_version_id );
END IF;
-----------------------
--CLEAR_CREATE_PROJECT
pa_project_pub.clear_project;
IF l_return_status != 'S' THEN
3-98 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
RAISE API_ERROR;
END IF;
-----------------------
--HANDLE EXCEPTIONS
--COMMIT;
DBMS_OUTPUT.put_line('Time elapsed in secs :' || (DBMS_UTILITY.get_time
–
v_time_before)/(100));
EXCEPTION
WHEN API_ERROR THEN
dbms_output.put_line( 'In Exception' );
for i in 1..l_msg_count loop
pa_interface_utils_pub.get_messages(
p_data => l_data
,p_msg_index => i
,p_msg_count => l_msg_count
,p_msg_data => l_msg_data
,p_msg_index_out => l_msg_index_out
);
dbms_output.put_line ('error mesg '||l_data);
end loop;
end create_project_EA;
end pa_ea_test;
/
3-100 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
--variables needed for Oracle Project specific parameters
l_created_from_project_id NUMBER;
l_pm_product_code VARCHAR2(10);
l_number_of_task_levels NUMBER;
l_project_name VARCHAR2(30);
l_project_number VARCHAR2(80);
l_pm_project_reference VARCHAR2(25);
l_project_status_code VARCHAR2(30);
l_distribution_rule VARCHAR2(30);
l_public_sector_flag VARCHAR2(1);
l_carrying_out_organization_id NUMBER;
l_start_date DATE;
l_completion_date DATE;
l_actual_start_date DATE;
l_actual_finish_date DATE;
l_early_start_date DATE;
l_early_finish_date DATE;
l_late_start_date DATE;
l_late_finish_date DATE;
l_person_id NUMBER;
l_project_role_type VARCHAR2(20);
l_class_category VARCHAR2(30);
l_class_code VARCHAR2(30);
l_project_id NUMBER(15);
l_pa_project_number VARCHAR2(25);
l_project_description VARCHAR2(250);
l_customer_id NUMBER;
l_project_relationship_code VARCHAR2(30);
l_task_id NUMBER(15);
l_pm_task_reference VARCHAR2(25);
l_task_index NUMBER;
project_loop NUMBER;
l_tasks_in pa_project_pub.task_in_tbl_type;
l_task_rec pa_project_pub.task_in_rec_type;
l_ea_rec
pa_project_pub.PA_EXT_ATTR_ROW_TYPE;
l_key_member_rec
pa_project_pub.project_role_rec_type;
l_key_member_tbl
pa_project_pub.project_role_tbl_type;
l_task_return_status VARCHAR2(1);
l_short_name VARCHAR2(10);
l_role_list_id NUMBER;
l_work_type_id NUMBER;
l_calendar_id NUMBER;
l_location_id NUMBER;
l_probability_member_id NUMBER;
l_project_value NUMBER;
l_opp_value_currency_code VARCHAR2(15) := 'USD';
l_expected_approval_date DATE;
API_ERROR EXCEPTION;
l_org_member_rec
pa_project_pub.project_role_rec_type;
l_org_member_tbl
pa_project_pub.project_role_tbl_type;
l_task_version_id NUMBER;
l_encoded_msg VARCHAR2(4000);
l_decoded_msg VARCHAR2(4000);
l_final_msg VARCHAR2(4000);
l_structure_type VARCHAR2(25);
l_structure_version_name VARCHAR2(25);
--PROJECT DATA
l_created_from_project_id := 13086;
l_project_name := 'zk0425_11';
l_project_number := l_project_name;
l_pm_project_reference := l_project_name;
l_project_description := l_project_name;
l_long_name := 'Long name AMG project' ||
l_project_name;
l_project_status_code := '';
l_carrying_out_organization_id :=244;
l_start_date :='01-jan-94';
l_completion_date :='31-mar-15';
l_actual_start_date :='01-jan-94';
l_actual_finish_date :='01-apr-15';
l_early_start_date :='01-jan-94';
l_early_finish_date :='31-mar-15';
l_late_start_date :='01-jan-94';
l_late_finish_date :='31-mar-16';
l_role_list_id :=1000 ;
l_work_type_id :=10020;
l_calendar_id :=550;
l_location_id :=1;
l_probability_member_id :=1005;
l_project_value :=1000;
l_expected_approval_date := '31-mar-99';
3-102 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
l_class_code :='Non-classified';
--TASKS DATA
--Set the number of tasks for every level (there are 6 levels)
number_of_tasks1 := 2;
number_of_tasks2 := 1;
number_of_tasks3 := 0;
number_of_tasks4 := 0;
number_of_tasks5 := 0;
number_of_tasks6 := 0;
a := 0;
for level1 in 1..number_of_tasks1 loop
a:= a + 1;
l_task_rec.pm_task_reference :=a;
l_task_rec.task_name :='TOP LEVEL '||a;
l_task_rec.pm_parent_task_reference :='';
l_task_rec.actual_start_date := '10-MAR-95';
l_task_rec.actual_finish_date := '06-JUL-10';
l_task_rec.early_start_date := '09-MAR-95';
l_task_rec.early_finish_date := '05-JUL-10';
l_task_rec.late_start_date := '09-MAR-95';
l_task_rec.late_finish_date := '05-JUL-10';
l_task_rec.scheduled_start_date := '01-jan-01';
l_task_rec.scheduled_finish_date := '31-dec-05';
l_tasks_in(a):= l_task_rec;
parent_level1:= a;
FOR level2 IN 1..number_of_tasks2 LOOP
a:= a + 1;
l_task_rec.pm_task_reference :=a;
l_task_rec.task_name :='2 LEVEL '||a;
l_task_rec.scheduled_start_date := '01-jan-02';
l_task_rec.scheduled_finish_date := '31-dec-07';
l_task_rec.pm_parent_task_reference := parent_level1;
l_tasks_in(a) := l_task_rec;
parent_level2 := a;
for level3 IN 1..number_of_tasks3 loop
a := a + 1;
l_task_rec.pm_task_reference := a;
l_task_rec.task_name :='3 LEVEL '||a;
l_task_rec.pm_parent_task_reference := parent_level2;
l_tasks_in(a) := l_task_rec;
parent_level3 := a;
for level4 IN 1..number_of_tasks4 loop
a := a + 1;
l_task_rec.pm_task_reference := a;
l_task_rec.task_name
:='Fourth LEVEL '||a;
l_task_rec.pm_parent_task_reference
:= parent_level3;
l_tasks_in(a) := l_task_rec;
for level5 IN 1..number_of_tasks5 loop
a := a + 1;
l_task_rec.pm_task_reference
:= a;
l_task_rec.task_name := 'Fifth LEVEL '||a;
l_task_rec.pm_parent_task_reference :=
parent_level4;
l_tasks_in(a) := l_task_rec;
for level6 IN 1..number_of_tasks6 loop
a := a + 1;
l_task_rec.pm_task_reference
--INIT_CREATE_PROJECT
pa_project_pub.init_project;
-----------------------
--dbms_output.put_line('Before load_project');
--LOAD_PROJECT
pa_project_pub.load_project( p_api_version_number =>
l_api_version_number
,p_return_status => l_return_status
,p_created_from_project_id =>
l_created_from_project_id
,p_project_name => l_project_name
,p_long_name => l_long_name
,p_description => l_project_description
,p_pm_project_reference => l_pm_project_reference
,p_pa_project_number => l_project_number
,p_carrying_out_organization_id =>
l_carrying_out_organization_id
,p_public_sector_flag => l_public_sector_flag
,p_customer_id => l_customer_id
,p_project_status_code => l_project_status_code
,p_start_date => l_start_date
,p_completion_date => l_completion_date
,p_actual_start_date => l_actual_start_date
,p_actual_finish_date => l_actual_finish_date
,p_early_start_date => l_early_start_date
,p_early_finish_date => l_early_finish_date
,p_late_start_date => l_late_start_date
,p_late_finish_date => l_late_finish_date
,p_role_list_id => l_role_list_id
,p_work_type_id => l_work_type_id
,p_calendar_id => l_calendar_id
,p_location_id => l_location_id
,p_probability_member_id=>l_probability_member_id
,p_project_value => l_project_value
,p_opp_value_currency_code =>
l_opp_value_currency_code
,p_expected_approval_date=>l_expected_approval_date
,p_distribution_rule => l_distribution_rule);
IF l_return_status != 'S'
THEN
RAISE API_ERROR;
3-104 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
END IF;
-----------------------
--dbms_output.put_line('Before load_structure');
--LOAD_PROJECT
l_structure_type := 'FINANCIAL';
pa_project_pub.load_structure( p_api_version_number =>
l_api_version_number
,p_return_status => l_return_status
,p_structure_type => l_structure_type
);
IF l_return_status != 'S'
THEN
RAISE API_ERROR;
END IF;
-----------------------
--LOAD_EXTENSIBLE_ATTRIBUTE
l_row_identifier_arr.extend;
l_attr_group_int_name.extend;
l_attr_int_name.extend;
l_attr_value_str.extend;
l_attr_value_num.extend;
l_attr_value_date.extend;
l_row_identifier_arr(1) := 1;
l_attr_group_int_name(1) := 'Application Weightings';
l_attr_int_name(1) := 'Product Family';
l_attr_value_str(1) := 'Financials';
l_row_identifier_arr.extend;
l_attr_group_int_name.extend;
l_attr_int_name.extend;
l_attr_value_str.extend;
l_attr_value_num.extend;
l_attr_value_date.extend;
l_row_identifier_arr(2) := 1;
l_attr_group_int_name(2) := 'Application Weightings';
l_attr_int_name(2) := 'Application Module';
l_attr_value_str(2) := 'Assets';
l_row_identifier_arr.extend;
l_attr_group_int_name.extend;
l_attr_int_name.extend;
l_attr_value_str.extend;
l_attr_value_num.extend;
l_attr_value_date.extend;
l_row_identifier_arr(3) := 1;
l_attr_group_int_name(3) := 'Application Weightings';
l_attr_int_name(3) := 'Default Weighting';
l_attr_value_num(3) := 0.6;
l_row_identifier_arr.extend;
l_attr_group_int_name.extend;
l_attr_int_name.extend;
l_attr_value_str.extend;
l_attr_value_num.extend;
l_attr_value_date.extend;
l_row_identifier_arr(4) := 2;
l_attr_group_int_name(4) := 'Application Weightings';
l_attr_int_name(4) := 'Product Family';
l_attr_value_str(4) := 'Financials';
l_row_identifier_arr.extend;
l_attr_group_int_name.extend;
l_attr_int_name.extend;
l_attr_value_str.extend;
l_attr_value_num.extend;
l_attr_value_date.extend;
l_row_identifier_arr(5) := 2;
l_attr_group_int_name(5) := 'Application Weightings';
l_attr_int_name(5) := 'Application Module';
l_attr_value_str(5) := 'General Ledger';
l_row_identifier_arr.extend;
l_attr_group_int_name.extend;
3-106 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
l_attr_int_name.extend;
l_attr_value_str.extend;
l_attr_value_num.extend;
l_attr_value_date.extend;
l_row_identifier_arr(6) := 2;
l_attr_group_int_name(6) := 'Application Weightings';
l_attr_int_name(6) := 'Default Weighting';
l_attr_value_num(6) := 0.4;
dbms_output.put_line('bef load ext attr API CALL');
pa_project_pub.load_extensible_attributes(
p_api_version_number => l_api_version_number
,x_return_status => l_return_status
,P_ATTR_GRP_ROW_INDEX => l_row_identifier_arr
,P_ATTR_GRP_INTERNAL_NAME=> l_attr_group_int_name
,P_ATTR_INTERNAL_NAME => l_attr_int_name
,P_ATTR_VALUE_STR => l_attr_value_str
,P_ATTR_VALUE_NUM => l_attr_value_num
,P_ATTR_VALUE_DATE => l_attr_value_date
);
dbms_output.put_line('After load ext attr');
IF l_return_status != 'S'
THEN
RAISE API_ERROR;
END IF;
--dbms_output.put_line(after load ext attr');
-----------------------
--dbms_output.put_line('bef execute create project');
-----------------------
--EXECUTE_CREATE_PROJECT
pa_project_pub.execute_create_project(p_api_version_number =>
l_api_version_number
,p_commit => l_commit
,p_init_msg_list => 'F'
,p_msg_count => l_msg_count
,p_msg_data => l_msg_data
,p_return_status => l_return_status
,p_workflow_started => l_work_flow_started
,p_pm_product_code => l_pm_product_code
,p_pa_project_id => l_project_id
,p_pa_project_number =>
l_pa_project_number
);
--dbms_output.put_line ('status '||l_return_status || ' msg count
'||l_msg_count);
IF l_return_status in( 'E', 'U' )
THEN
dbms_output.put_line( 'l_msg_data '||l_msg_data );
dbms_output.put_line( 'Error count '||l_msg_count );
l_msg_count := fnd_msg_pub.count_msg;
FOR l_counter IN REVERSE 1..l_msg_count LOOP
PA_UTILS.Get_Encoded_Msg(p_index => l_counter,
p_msg_out => l_encoded_msg);
fnd_message.set_encoded(l_encoded_msg);
l_decoded_msg := fnd_message.get;
l_final_msg := l_final_msg || nvl(l_decoded_msg, l_encoded_msg);
dbms_output.put_line( 'ERROR MESSAGE CODE: '|| l_counter|| ' :
'||l_encoded_msg );
dbms_output.put_line( 'ERROR MESSAGE TEXT: '|| l_counter|| ' : '||
l_final_msg );
END LOOP;
--FETCH_TASK
FOR l_task_index in 1..a LOOP
pa_project_pub.fetch_task( p_api_version_number => l_api_version_number
,p_return_status => l_return_status
,p_task_index => l_task_index
,p_pa_task_id => l_task_id
,p_pm_task_reference => l_pm_task_reference
,p_task_return_status => l_task_return_status);
IF l_return_status != 'S'
OR l_task_return_status != 'S'
THEN
dbms_output.put_line ('error text '|| SUBSTR (SQLERRM , 1 , 240));
RAISE API_ERROR;
END IF;
END LOOP;
--dbms_output.put_line('bef execute fetch str workplan');
-----------------------
--FETCH_TASK
pa_project_pub.fetch_structure_version(
p_api_version_number => l_api_version_number
,p_return_status => l_return_status
,p_structure_type => 'WORKPLAN'
,p_pa_structure_version_id => l_task_version_id
,p_struc_return_status =>
l_task_return_status);
IF l_return_status != 'S'
THEN
dbms_output.put_line ('error text '|| SUBSTR (SQLERRM , 1 , 240));
RAISE API_ERROR;
ELSE
dbms_output.put_line (' Workplan Str ver id '||l_task_version_id );
END IF;
--dbms_output.put_line('bef execute fetch str financial');
pa_project_pub.fetch_structure_version(
p_api_version_number => l_api_version_number
,p_return_status => l_return_status
,p_structure_type => 'FINANCIAL'
,p_pa_structure_version_id => l_task_version_id
,p_struc_return_status =>
l_task_return_status);
IF l_return_status != 'S'
THEN
dbms_output.put_line ('error text '|| SUBSTR (SQLERRM , 1 , 240));
RAISE API_ERROR;
ELSE
dbms_output.put_line (' Financial Str ver id '||l_task_version_id );
END IF;
-----------------------
3-108 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
--CLEAR_CREATE_PROJECT
pa_project_pub.clear_project;
IF l_return_status != 'S'
THEN
RAISE API_ERROR;
END IF;
-----------------------
--HANDLE EXCEPTIONS
end loop;
DBMS_OUTPUT.put_line (
'Time elapsed in secs :' ||
(DBMS_UTILITY.get_time – v_time_before) / (100)
);
EXCEPTION
WHEN API_ERROR THEN
dbms_output.put_line( 'In Exception'||sqlerrm );
for i in 1..l_msg_count loop
pa_interface_utils_pub.get_messages (
p_encoded => FND_API.G_TRUE,
p_data => l_data
,p_msg_index => i
,p_msg_count => l_msg_count
,p_msg_data => l_msg_data
,p_msg_index_out => l_msg_index_out );
dbms_output.put_line ('error mesg :'||l_data);
end loop;
END ;
/
Resource APIs
You can keep track of and organize both labor and non-labor resources using the
system that you prefer. Then, use the resource APIs to export your resource lists and the
resources they include to Oracle Projects. Oracle Projects updates its resource
information accordingly. As your resources and resource lists change, update the
information in your system and periodically synchronize the two systems.
Note: When youcall any resource API that requires a resource list
identifier, pass either the P_RESOURCE_LIST_NAME or the
P_RESOURCE_LIST_ID parameter to identify the resource list. When
youcall any resource API that requires a resource identifier, pass either
the P_RESOURCE_ALIAS or the P_RESOURCE_LIST_MEMBER_ID
parameter to identify the resource.
PA_EVENT_TYPES_RES_V Displays event types defined in Oracle Projects. You can define any
event type returned by this view as a resource in Oracle Projects.
PA_EXPENDITURE_TYPES_RES_V Displays expenditure types defined in Oracle Projects. You can define
any expenditure type returned by this view as a resource in Oracle
Projects.
PA_JOBS_RES_V Displays information about all the jobs defined in your human resources
application. You can define any job returned by this view as a resource
in Oracle Projects.
PA_LOWEST_LEVEL_RESOURCES_V Retrieves Oracle Projects identification codes and names for resource
lists and lowest-level resource list members.
3-110 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
View Description
PA_REVENUE_CATEGORIES_RES_V Displays revenue categories defined in Oracle Projects. You can define
any revenue category returned by this view as a resource in Oracle
Projects.
• Load-Execute-Fetch Procedures
• CLEAR_CREATE_RESOURCE_LIST, page 3-118
• FETCH_PLAN_FORMAT
• LOAD_RESOURCE_FORMAT
• LOAD_PLANNING_RESOURCE
ADD_RESOURCE_LIST_MEMBER
ADD_RESOURCE_LIST_MEMBER is a PL/SQL procedure that adds a resource member
to an existing resource list.
Business Rules
1. Calling modules can pass either the RESOURCE_LIST_NAME or the
RESOURCE_LIST_ID.
3. If the resource list is grouped, you must pass a valid resource group alias.
3-112 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
6. If a given resource member already exists, this API does not return an error.
Instead, it returns a successful return status and the
RESOURCE_LIST_MEMBER_ID of the existing resource member.
Note: Because you can store only one transaction attribute for a given
resource, this API accepts only a single RESOURCE_ATTR_VALUE,
which may hold PERSON_ID, JOB_ID, and so on.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERS ION_NUMBER
• P_RESOURCE_ TYPE_CODE
• P_RESOURCE_ ATTR_VALUE
• P_RESOURCE_ ALIAS
CREATE_RESOURCE_LIST
CREATE_RESOURCE_LIST is a PL/SQL procedure that creates a resource list and
optionally creates the resource list members.
This API uses composite datatypes. For more information, see APIs That Use
Composite Datatypes, page 2-22.
Business Rules
• Valid values for P_GROUP_RESOURCE_TYPE are EXPENDITURE_CATEGORY,
REVENUE_CATEGORY, ORGANIZATION, and NONE.
• If calling programs pass the P_MEMBER_TBL (optional), this API creates the
relevant resource list member records.
• If your resource list is grouped, you must pass a valid resource group alias.
• The value for P_RESOURCE_ATTR_VALUE must correspond with the value for
P_RESOURCE_TYPE. For example, the person identification code for
P_RESOURCE_ATTR_VALUE must be valid if P_RESOURCE_TYPE equals
EMPLOYEE.
• If you do not specify the resource group alias, the group resource type must be
NONE.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERS ION_NUMBER
• RESOURCE_L IST_NAME
• GROUP_ RESOURCE_TYPE
• RESOURCE_TYPE_CODE
• RESOURCE_ ATTR_VALUE
• RESOURCE_ALIAS
UPDATE_RESOURCE_LIST
UPDATE_RESOURCE_LIST is a PL/SQL procedure that updates an existing resource
list, including updating existing or adding new resource list members.
This API uses composite datatypes. For more information, see APIs That Use
Composite Datatypes, page 2-22.
Business Rules
• Calling modules can pass either the RESOURCE_LIST_NAME or the
RESOURCE_LIST_ID.
• You cannot change GROUPED_BY_TYPE if the resource list already contains active
members.
• DESCRIPTION
3-114 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• START DATE
• END DATE
• You can update existing or add new resource list members by including the
member records in the MEMBER_TBL. If a resource list member already exists, you
can update the following fields:
• ALIAS. Specify the P_NEW_ALIAS.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• RESOURCE_TYPE_CODE
• RESOURCE_ ATTR_VALUE
• RESOURCE_ALIAS
DELETE_RESOURCE_LIST
DELETE_RESOURCE_LIST is a PL/SQL procedure that deletes a given resource list.
Business Rules
• Calling modules can pass either the P_RESOURCE_LIST_NAME or the
P_RESOURCE_LIST_ID.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameter for this procedure is listed below:
• P_API_VERSION_NUMBER
DELETE_RESOURCE_LIST_MEMBER
DELETE_RESOURCE_LIST_MEMBER is a PL/SQL procedure that deletes a given
resource list member.
Business Rules
• Calling modules can pass either the P_RESOURCE_LIST_NAME or the
P_RESOURCE_LIST_ID. Calling modules can also pass the P_ALIAS or the
P_ALIAS_MEMBER_ID.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
SORT_RESOURCE_LIST_MEMBERS
SORT_RESOURCE_LIST_MEMBERS is a PL/SQL procedure that updates the sort order
for resource members in a given resource list.
Business Rules
• Calling modules can pass either the P_RESOURCE_LIST_NAME or the
P_RESOURCE_LIST_ID.
3-116 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• If the calling modules pass both the P_RESOURCE_LIST_NAME and the
P_RESOURCE_LIST_ID, this API uses the latter.
• If you specify a resource group alias, this API sorts only resources below that
resource group. Otherwise, this API sorts all resources in the resource list.
• You can sort resources by alias or resource name. Valid values for P_SORT_BY
PARAMETER are ALIAS and RESOURCE_NAME.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_SORT_BY
UPDATE_RESOURCE_LIST_MEMBER
UPDATE_RESOURCE_LIST_MEMBER is a PL/SQL procedure that updates the alias
and enables or disables the resource list members.
Business Rules
• Calling modules can pass either the P_RESOURCE_LIST_NAME or
P_RESOURCE_LIST_ID.
• You can use the P_ENABLED_FLAG to enable or disable a resource member. If the
parameter value is passed as NULL or something other than Y, the column value
remains the same.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameter for this procedure is listed below:
• P_API_VERSION_NUMBER
CLEAR_UPDATE_MEMBERS
CLEAR_UPDATE_MEMBERS is a Load-Execute-Fetch procedure used to clear the
global data structures that were set up during the Initialize step for the
Load-Execute-Fetch update APIs.
EXEC_CREATE_RESOURCE_LIST
EXEC_CREATE_RESOURCE_LIST is a Load-Execute-Fetch procedure used to execute
the composite API CREATE_RESOURCE_LIST.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_RETURN_STATUS
EXEC_UPDATE_RESOURCE_LIST
EXEC_UPDATE_RESOURCE_LIST is a Load-Execute-Fetch procedure used to execute
the composite API UPDATE_RESOURCE_LIST.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameter for this procedure is listed below:
• P_API_VERSION_NUMBER
FETCH_MEMBERS
FETCH_MEMBERS is a Load-Execute-Fetch procedure used to fetch resource members
from the global output structure for resource list members.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
3-118 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
The required parameter for this procedure is listed below:
• P_API_VERSION_NUMBER
FETCH_RESOURCE_LIST
FETCH_RESOURCE_LIST is a Load-Execute-Fetch procedure used to fetch one
resource list identifier at a time from the global output structure for resource lists.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameter for this procedure is listed below:
• P_API_VERSION_NUMBER
INIT_CREATE_RESOURCE_LIST
INIT_CREATE_RESOURCE_LIST is a Load-Execute-Fetch procedure used to set up the
global data structures used by other Load-Execute-Fetch procedures.
INIT_UPDATE_MEMBERS
INIT_UPDATE_MEMBERS is a Load-Execute-Fetch procedure used to set up the global
data structures used by other Load-Execute-Fetch procedures.
LOAD_MEMBERS
LOAD_MEMBERS is a Load-Execute-Fetch procedure used to load the resource list
member global input structure.
Business Rules
• Calling modules can pass either P_RESOURCE_LIST_NAME or
P_RESOURCE_LIST_ID.
• If the resource list is grouped, you must pass a valid resource group alias.
• If the calling module passes information to this API for both resource group and
resource member parameters, the API first verifies that the resource group exists. If
the resource group does not exist, the API creates the resource group and then
creates the resource.
• If a given resource member already exists, this API does not return an error.
Instead, it returns a successful return status and the resource list member
identification code of the existing resource member.
Note: Because you can store only one transaction attribute for a
given resource, this API accepts only a single
RESOURCE_ATTR_VALUE, which may hold PERSON_ID,
JOB_ID, and so on.
• You can use the P_ENABLED_FLAG to enable or disable a resource member. If the
parameter value is passed as NULL or something other than Y, the column value
remains the same.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameter for this procedure is listed below:
• P_API_VERSION_NUMBER
LOAD_RESOURCE_LIST
LOAD_RESOURCE_LIST is a Load-Execute-Fetch procedure used to load the resource
list global input structure.
Business Rules
• Valid values for P_GROUP_RESOURCE_TYPE are EXPENDITURE_CATEGORY,
REVENUE_CATEGORY, ORGANIZATION, and NONE.
• If calling programs pass the P_MEMBER_TBL (optional), this API creates the
3-120 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
relevant resource list member records.
• If your resource list is grouped, you must pass a valid resource group alias.
• The value for P_RESOURCE_ATTR_VALUE must correspond with the value for
P_RESOURCE_TYPE. For example, P_RESOURCE_ATTR_VALUE must have a
valid person identification code if P_RESOURCE_TYPE equals EMPLOYEE.
• If you do not specify the resource group alias, the group resource type must be
NONE.
• If the resource list already contains active members, you cannot change
GROUPED_BY_TYPE.
• DESCRIPTION
• START DATE
• END DATE
• To update existing or add new resource list members, include the member records
in MEMBER_TBL. If a resource list member already exists, you can update the
following fields:
• ALIAS. Specify P_NEW_ALIAS.
• You can use the value for P_ALIAS as the key to fetch the member record.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
View Description
3-122 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
View Description
• Load-Execute-Fetch Procedures
• EXEC_CREATE_RESOURCE_LIST, page 3-135
(80)
(255)
P_START_DATE DATE The resource list start date, passed during resource list creation
3-124 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Name Type Description
P_JOB_GROUP_ID NUMBER The job group ID of the job associated with the resource list. This
value comes from the view PA_JOBS_VIEW.
P_JOB_GROUP_NAME VARCHAR2 The job group name of the job associated with the resource list.
You can pass either the name or the P_JOB_GROUP_ID value.
(30)
P_USE_FOR_WP_FLAG VARCHAR2 Flag to indicate whether the resource list can be associated with a
workplan. Y indicates that the resource list will be used for
(1) workplan. N indicates that the resource list will not be used in
workplan.
P_CONTROL_FLAG VARCHAR2 Flag to indicate whether the resource list is centrally controlled or
project specific. Y indicates that the resource list is centrally
(1) controlled. N indicates that the resource list is project specific.
_NUMBER
X_RESOURCE_LIST_ID NUMBER Resource list identifier of any new planning resource list
P_RES_FORMAT_ID NUMBER Resource format identifier, passed when adding a resource format to
a resource list.
3-126 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Name Type Description
(80)
P_VENDOR_ID NUMBER The vendor identifier. This sets the value of VENDOR_ID
of PA_RESOURCE_LIST_MEMBERS table.
(240)
_NAME (30)
P_RESOURCE NUMBER This parameter contains the identifier of the resource class
to which the resource belongs. It can take the following
_CLASS_ID values: 1,2,3, or 4.
P_RESOURCE VARCHAR2 This parameter contains the code of the resource class to
which the resource belongs. It can take the following
_CLASS_CODE (30) values: EQUIPMENT, FINANCIAL ELEMENTS,
MATERIAL ITEMS PEOPLE
P_SPREAD_CURVE NUMBER Optional, defines the way cost or revenue amounts are
distributed across periods for financial planning. This
_ID holds the identifier of the spread curves available. It sets
the value for SPREAD_CURVE_ID of
PA_RESOURCE_LIST_MEMBERS table.
3-128 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Name Type Description
P_COPY_FROM VARCHAR2
_RL_FLAG
P_RESOURCE VARCHAR2
_CLASS_FLAG
P_MIGRATION_CODE VARCHAR2
_CATEGORY (150)
P_RECORD NUMBER This required attribute is the record version number of the
resource list member. It has significance during the
_VERSION_NUMBER update of the resource list member.
3-130 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Name Type Description
CREATE_RESOURCE_LIST
CREATE_RESOURCE_LIST is a PL/SQL procedure that enables users to create resource
lists, corresponding resource formats, and resource list members.
This API uses composite datatypes. For more information, see APIs That Use
Composite Datatypes, page 2-22.
Business Rules
• CREATE_RESOURCE_LIST validates the resource list parameters and creates the
• If the system creates the resource list successfully, it then creates resource formats
and passes them as parameters to CREATE_RESOURCE_LIST.
• If the system cannot add a resource format to the resource list, the API fails.
• If the system adds the resource formats successfully, it then processes the planning
resources. If it fails to create any planning resource, the API fails.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual. The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_PLAN_RES_LIST_REC
• P_PLAN_RL_FORMAT_TBL
• P_PLANNING_RESOURCE_IN_TBL
UPDATE_RESOURCE_LIST
UPDATE_RESOURCE_LIST is a PL/SQL procedure that enables you to update a
resource list, corresponding resource formats, and planning resources. Since a resource
format cannot be updated, it creates a resource format. It can also enable you to update
existing planning resources or create a new planning resource if no planning resource
exists.
This API uses composite datatypes. For more information, see APIs That Use
Composite Datatypes, page 2-22.
Business Rules
• Calling modules can pass either the RESOURCE_LIST_NAME or the
RESOURCE_LIST_ID.
• DESCRIPTION
• START DATE
3-132 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• END DATE
• You can add new resource formats to the planning resource list by passing the
formats P_PLAN_RL_FORMAT_TBL.
• You can update existing or addi new planning resources by passing the planning
resources in P_PLANNING_RESOURCE_IN_REC.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_PLAN_RES_LIST_REC
• X_PLAN_RES_LIST_REC
• P_PLAN_RL_FORMAT_TBL
• X_PLAN_RL_FORMAT_TBL
• P_PLANNING_RESOURCE_IN_TBL
• X_PLANNING_RESOURCE_OUT_TBL
• X_MSG_COUNT
• X_MSG_DATA
• X_RETURN_STATUS
DELETE_RESOURCE_LIST
DELETE_RESOURCE_LIST is a PL/SQL procedure that enables you to delete a resource
list and corresponding planning resources and resource formats belonging to the
resource list.
Business Rules
• Calling modules can pass either the P_RESOURCE_LIST_NAME or the
P_RESOURCE_LIST_ID.
• When the planning resource list is deleted, all the resource formats and planning
• You cannot delete the planning resource list if it is referenced by a financial plan or
workplan.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_RES_LIST_ID
• X_MSG_COUNT
• X_MSG_DATA
• X_RETURN_STATUS
DELETE_PLANNING RESOURCE
DELETE_PLANNING_RESOURCE is a PL/SQL procedure that enables you to delete a
planning resource that is not in use or disable a planning resource that is in use.
Business Rule
The calling module passes a table containing valid resource list member IDs. This
procedure deletes each list member if it is not in use, or disables it if it is in use. If the
list member ID does not exist, the procedure does not raise an error message, and
returns a Success result.
Parameters
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_RESOURCE_LIST_MEMBER_ID
• X_RETURN_STATUS
• X_MSG_COUNT
3-134 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• X_ERROR_MSG_DATA
DELETE_PLAN_RL_FORMAT
This procedure deletes one or more resource formats from a resource list.
Business Rule
The calling module has to pass in a table of valid resource format Ids and the ID of the
resource list they belong to. The API will delete each format from the resource list if
there are no planning resources of that format on the list. If any planning resources
exist, the resource format cannot be deleted from the list.
Parameters
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_RES_LIST_ID
• P_PLAN_RL_FORMAT_TB
• X_RETURN_STATUS
• X_MSG_COUNT
• X_ERROR_MSG_DATA
EXEC_CREATE_RESOURCE_LIST
EXEC_CREATE_RESOURCE_LIST is a Load-Execute-Fetch procedure used to execute
the composite API CREATE_RESOURCE_LIST.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• X_RETURN_STATUS
• X_MSG_COUNT
• X_MSG_DATA
• X_RETURN_STATUS
• X_MSG_COUNT
• X_MSG_DATA
FETCH_RESOURCE_LIST
FETCH_RESOURCE_LIST is a Load-Execute-Fetch procedure used to fetch one
resource list identifier at a time from the global output structure for resource lists. It
returns the status and the new RESOURCE_LIST_ID, if any.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• X_RETURN_STATUS
• X_RESOURCE_LIST_ID
• X_LIST_RETURN_STATUS
FETCH_PLAN_FORMAT
FETCH_PLAN_FORMAT is a Load-Execute-Fetch procedure that returns the planning
resource format status and the new PLAN_RL_FORMAT_ID.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
3-136 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• P_API_VERSION_NUMBER
• X_RETURN_STATUS
• X_PLAN_RL_FORMAT_ID
• X_FORMAT_RETURN_STATUS
FETCH_RESOURCE_LIST_MEMBER
FETCH_RESOURCE_LIST_MEMBER is a Load-Execute-Fetch procedure that returns
the resource list member status and the new RESOURCE_LIST_MEMBER_ID, if any
exists.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• X_RETURN_STATUS
• X_RESOURCE_LIST_MEMBER_ID
• X_MEMBER_RETURN_STATUS
INIT_CREATE_RESOURCE_LIST
INIT_CREATE_RESOURCE_LIST is a Load-Execute-Fetch procedure used to set up the
global temporary tables for resource formats and resource list members. It also
initializes the record structure for the resource list. There are no parameters for this
procedure.
INIT_UPDATE_RESOURCE_LIST
INIT_UPDATE_RESOURCE_LIST is a Load-Execute-Fetch procedure used to initialize
the global temporary tables for the resource formats and resource list members. It also
initializes the record structure for the resource list. There are no parameters for this
procedure.
LOAD_RESOURCE_LIST
LOAD_RESOURCE_LIST is a Load-Execute-Fetch procedure that enables you to load
the global record for a resource list with values.
• P_START DATE
• The following parameters are optional when you create a new planning resource
list:
• P_DESCRIPTION
• P_END_DATE
• P_JOB_GROUP_ID
• P_JOB_GROUP_NAME
• P_USE_FOR_WP_FLAG
• P_CONTROL_FLAG
• The following parameters can be updated when you update a planning resource
list:
• P_RESOURCE_LIST_NAME
• P_START_DATE
• P_DESCRIPTION
• P_END_DATE
• P_JOB_GROUP_ID
• P_JOB_GROUP_NAME
• P_USE_FOR_WP_FLAG
• P_CONTROL_FLAG
You can view descriptions of all of the parameters for this procedure in the Oracle
3-138 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_RESOURCE_LIST_NAME
• P_DESCRIPTION
• P_JOB_GROUP_ID
• X_RETURN_STATUS
LOAD_RESOURCE_FORMAT
Enables you to load values into the global table for resource formats. This procedure
populates the table and increments the count.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• X_RETURN_STATUS
LOAD_PLANNING_RESOURCE
Enables the user to load the global table for planning resources. This procedure
populates the table and increments the count.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_RES_FORMAT_ID
• P_RECORD_VERSION_NUMBER
• P_PROJECT_ID
View Description
3-140 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
View Description
_RES_V
PA_RES_TYPES_AMG_V View that returns resource types defined in the system. You need to pass
the resource type while defining an element in the resource breakdown
structure
PA_RBS_ELEMENTS_AMG_V View that returns all the elements in a resource breakdown structure
(240)
(2000)
3-142 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Name Type Description
EFFECTIVE_FROM_DATE DATE The date from which the resource breakdown structure can
be used. Resource breakdown structures with effective
from dates that are before the current date are eligible to be
assigned to projects. EFFECTIVE_FROM_DATE cannot be
NULL.
EFFECTIVE_TO_DATE DATE The date up to which the resource breakdown structure can
be used. Resource breakdown structures with effective to
dates that are on or after the current date are eligible to be
assigned to projects.
RBS_VERSION_ID NUMBER The version identifier of the resource breakdown structure (RBS).
(240)
(2000)
VERSION_START DATE The resource breakdown structure effective start date. The system
uses this date to decide whether all the project transactions should
_DATE be mapped to the version. If the date is before the system date, the
system maps the transactions to this version.
JOB_GROUP_ID NUMBER The job group identifier of the job group for the resource breakdown
structure version. Jobs from this job group are eligible to be elements
of the resource breakdown structure hierarchy. You can select the
job group from the PA_JOB_GROUPS_VIEW view.
RECORD NUMBER The record version number of the RBS version record from the
PA_RBS_VERSIONS_AMG_V view
_VERSION_NUMBER
RESOURCE_TYPE_ID NUMBER The resource type identifier of the element. You can get the value
from PA_RES_TYPES_AMG_V view.
RESOURCE_SOURCE_ID NUMBER The resource identifier that makes up the resource breakdown
structure element.
RESOURCE_SOURCE VARCHAR The source code of the resource breakdown structure element. It has
2 a value if the resource type of the element is associated with the
_CODE resource type code of REVENUE_CATEGORY or USER_DEFINED.
(240)
3-144 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Name Type Description
ORDER_NUMBER NUMBER The order in which the elements should be displayed on a given
level of the resource breakdown structure in project reporting.
PROCESS_TYPE VARCHAR Type of processing required for the resource breakdown structure
2 element. The valid values are:
U Update element
RBS_LEVEL NUMBER Level at which the element is placed in the resource breakdown
structure. This value is passed when the element is created. The
level can have a value between 1 and 10. 1 is reserved for the root
element, which will be ignored during processing.
RBS_REF_ELEMENT_ID NUMBER Identifier used to distinguish each element processed at each RBS
level. It is passed when the element is created. Each element must
have a RBS_REF_ELEMENT_ID.
PARENT_REF_ELEMENT NUMBER Indicates the element parent. If the RBS_LEVEL is 1 or 2 then it does
not need to be populated. RBS_LEVEL 1 elements do not need
_ID parents. The RBS_LEVEL 2 elements parents are updated by the
system from the root element's ID.
RESOURCE_SOURCE_ID
The RESOURCE_SOURCE_ID parameter is populated with the resource identifier that
makes up the resource breakdown structure element. If the element is a rule, then the
system passes -1 as the RESOURCE_SOURCE_ID. If the element is an instance, the
system passes the resource identification code.
Following are the resource types with identification codes:
• BOM_LABOR: Get the BOM Labor ID from the PA_BOM_LABOR_RES_V view
RBS_ELEMENT_ID NUMBER The resource breakdown structure's element identifier for the new element
3-146 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Resource Breakdown Structure API Procedure Definitions
This section contains descriptions of the resource breakdown structure APIs, including
business rules and parameters.
CREATE_RBS
The CREATE_RBS procedure enables you to create a resource breakdown structure
(RBS), which is composed of the RBS header, the RBS version, and it's elements of the
hierarchy.
Business Rules
• CREATE_RBS creates a resource breakdown structure. At minimum, CREATE_RBS
creates a header and a working version for a resource breakdown structure.
• If the version record is not populated, CREATE_RBS uses the data stored in the
P_HEADER_REC parameter to create the version record.
• If the version information is passed, the version start date must be greater or equal
to the effective from date of the header record.
• CREATE_RBS can also create the entire resource breakdown structure hierarchy if
the elements of the hierarchy are passed.
• The root element of the hierarchy of a resource breakdown structure version is the
version itself. The version is not an updatable element. The system ignores any
alternative elements that you may provide.
• The following information must be passed for each element in the resource
breakdown structure hierarchy:
• RBS_LEVEL
• PROCESS_TYPE
• PARENT_RES_ELEMENT_ID
• RESOURCE_TYPE_ID
• RESOURCE_SOURCE_ID or RESOURCE_SOURCE_CODE
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_HEADER_REC
• X_RBS_HEADER_ID
• X_RBS_VERSION_ID
• X_ELEMENTS_TBL
• X_RETURN_STATUS
• X_MSG_COUNT
• X_ERROR_MSG_DATA
COPY_RBS_WORKING_VERSION
This procedure enables you to create a working version of a resource breakdown
structure from an existing frozen version.
Business Rules
1. The calling module must pass one of the following:
• a resource breakdown structure header (Name or ID) and the version number
of a frozen resource breakdown structure version
This information specifies version that will be copied as the current working
version. The existing working version will be overwritten by a copy of the specified
frozen version.
2. The record version number of the current working version is also required for
locking purposes.
Parameters
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_REC_VERSION_NUMBER
3-148 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• X_RETURN_STATUS
• X_MSG_COUNT
• X_ERROR_MSG_DATA
UPDATE_RBS
The UPDATE_RBS procedure enables you to update the resource breakdown structure
header and version and delete, update, or add records to element records.
Business Rules
• UPDATE_RBS can be used to update the resource breakdown structure version,
header, or elements, individually or in combination with each other.
• You cannot delete the root node/element record for UPDATE_RBS because it is
system-generated.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_HEADER_REC
• P_VERSION_REC
• P_ELEMENTS_TBL
• X_ELEMENTS_TBL
• X_RETURN_STATUS
• X_MSG_COUNT
INIT_RBS_PROCESSING
INIT_RBS_PROCESSING is a Load-Execute-Fetch procedure that initializes the global
temporary tables for creating and updating the resource breakdown structure.
LOAD_RBS_HEADER
LOAD_RBS_HEADER is a load-execute-fetch procedure that loads header record
information into the global PL/SQL record for the resource breakdown structure.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_NAME
• P_EFFECTIVE_START_DATE
• X_RETURN_STATUS
LOAD_RBS_VERSION
LOAD_RBS_VERSION is a load-execute-fetch procedure that loads version record
information into a global PL/SQL record.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_NAME
• P_VERSION_START_DATE
• X_RETURN_STATUS
LOAD_RBS_ELEMENTS
LOAD_RBS_ELEMENTS is a load-execute-fetch procedure that loads element record
information into a global PL/SQL table.
3-150 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_PARENT_ELEMENT_ID
• P_RESOURCE_TYPE_ID
• P_PROCESS_TYPE
• X_RETURN_STATUS
FETCH_RBS_HEADER
FETCH_RBS_HEADER is a load-execute-fetch procedure that retrieves the
RBS_HEADER_ID and the header success or error status back to the calling procedure.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• X_RBS_HEADER_ID
• X_RETURN_STATUS
FETCH_RBS_VERSION
FETCH_RBS_VERSION is a load-execute-fetch procedure that retrieves the
RBS_VERSION_ID and the version success status.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• X_RBS_VERSION_ID
• X_RBS_VER_RETURN_STATUS
FETCH_RBS_ELEMENT
FETCH_RBS_ELEMENT is a load-execute-fetch procedure that retrieves the
RBS_ELEMENT_ID and the success value for the index value you enter.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_RBS_ELEMENT_INDEX
• X_RBS_ELEMENT_ID
• X_RETURN_STATUS
EXEC_CREATE_RBS
EXEC_CREATE_RBS is a load-execute-fetch procedure that executes the resource
breakdown structure creation process.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• X_RETURN_STATUS
• X_MSG_COUNT
• X_ERROR_MSG_DATA
EXEC_UPDATE_RBS
EXEC_UPDATE_RBS is a load-execute-fetch procedure that executes the resource
breakdown structure update process.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
3-152 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• P_API_VERSION_NUMBER
• X_RETURN_STATUS
• X_MSG_COUNT
• X_ERROR_MSG_DATA
FREEZE_RBS_VERSION
FREEZE_RBS_VERSION is a process that freezes the current working resource
breakdown structure version and enables the user to create a new working version.
Business Rules
• To freeze a working resource breakdown structure version, you must pass one or
more of the following parameters
• RBS_VERSION_ID
• RBS_HEADER_ID
• RBS_HEADER_NAME
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_RBS_VERSION_ID
• P_RBS_VERSION_RECORD_VER_NUM
• X_RETURN_STATUS
• X_MSG_COUNT
• X_ERROR_MSG_DATA
ASSIGN_RBS_TO_PROJECT
ASSIGN_RBS_TO_PROJECT is a process that assigns the resource breakdown structure
to a project. You must provide the resource breakdown structure Header ID and the
Project ID.
• To pass resource breakdown structure information, you can pass either of the
following:
• the resource breakdown structure header identifier in the P_RBS_HEADER_ID
field.
• You can assign a resource breakdown structure for the purpose of project reporting
and/or program reporting.
• You can also indicate whether the resource breakdown structure should be the
primary reporting resource breakdown structure for your project.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_PROJECT_ID
• P_RBS_HEADER_ID
• X_RETURN_STATUS
• X_MSG_COUNT
• X_ERROR_MSG_DATA
3-154 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Dependency APIs
CREATE_DEPENDENCY
CREATE_DEPENDENCY is a PL/SQL procedure that creates an intra-project
dependency.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_MSG_COUNT
• P_MSG_DATA
• P_RETURN_STATUS
• P_PM_PRODUCT_CODE
• P_PA_PROJECT_ID
• P_STRUCTURE_VERSION_ID
• P_PM_TASK_REFERENCE
• P_PA_TASK_ID
• P_PM_PRED_REFERENCE
• P_PA_PRED_ID
UPDATE_DEPENDENCY
UPDATE_DEPENDENCY is a PL/SQL procedure that updates an existing intra-project
dependency.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_MSG_COUNT
• P_MSG_DATA
• P_RETURN_STATUS
• P_PM_PRODUCT_CODE
• P_PM_PROJECT_REFERENCE
• P_PA_PROJECT_ID
• P_STRUCTURE_VERSION_ID
• P_PA_TASK_ID
• P_PA_PRED_ID
• P_PM_TASK_REFERENCE
• P_PM_PRED_REFERENCE
• P_PA_TASK_ID
3-156 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• P_PA_PRED_ID
DELETE_DEPENDENCY
DELETE_DEPENDENCY is a PL/SQL procedure that deletes an existing intra-project
dependency.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_MSG_COUNT
• P_MSG_DATA
• P_RETURN_STATUS
• P_PM_PRODUCT_CODE
• P_PM_PROJECT_REFERENCE
• P_PA_PROJECT_ID
• P_STRUCTURE_VERSION_ID
• P_PM_TASK_REFERENCE
• P_PA_TASK_ID
• P_PM_PRED_REFERENCE
• P_PA_PRED_ID
ASSIGNMENT_IN_REC_TYPE
The following table shows the ASSIGNMENT_IN_REC_TYPE datatype.
3-158 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Name Type Required? Description
ASSIGNMENT_OUT_REC_TYPE
The following table shows the ASSIGNMENT_OUT_REC_TYPE datatype.
3-160 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
TASK_DEL_REC_TYPE
The following table shows the TASK_DEL_REC_TYPE datatype.
TASK_ASGMT_DEL_TYPE
The following table shows the TASK_ASGMT_DEL_TYPE datatype.
ASSIGNMENT_PERIODS_TYPE
The following table shows the ASSIGNMENTS_PERIODS_TYPE datatype.
3-162 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
LOAD_TASK_ASSIGNMENTS
LOAD_TASK_ASSIGNMENTS is a PL/SQL procedure that moves task assignments
from client side to a PLSQL table on the server side, where it is used by
LOAD/EXECUTE/FETCH cycle.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• X_RETURN_STATUS
• X_MSG_COUNT
• X_MSG_DATA
LOAD_TASK_ASSIGNMENT_PERIODS
LOAD_TASK_ASSIGNMENT_PERIODS is a PL/SQL procedure that moves the
periodic data of task assignments from client side to a PLSQL table on the server side.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• X_RETURN_STATUS
• X_MSG_COUNT
• X_MSG_DATA
EXECUTE_CREATE_TASK_ASGMTS
EXECUTE_CREATE_TASK_ASGMTS is a PL/SQL procedure that creates task
assignments using data in a PLSQL table.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• X_RETURN_STATUS
• X_MSG_COUNT
EXECUTE_UPDATE_TASK_ASGMTS
EXECUTE_UPDATE_TASK_ASGMTS is a PL/SQL procedure that updates task
assignments.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• X_RETURN_STATUS
• X_MSG_COUNT
• X_MSG_DATA
CREATE_TASK_ASSIGNMENTS
CREATE_TASK_ASSIGNMENTS is a PL/SQL procedure that creates task assignments
by accepting a table of assignment records.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_TASK_ASSIGNMENTS_IN
• P_TASK_ASSIGNMENTS_OUT
• X_RETURN_STATUS
• X_MSG_COUNT
• X_MSG_DATA
CREATE_TASK_ASSIGNMENT_PERIODS
CREATE_TASK_ASSIGNMENT_PERIODS is a PL/SQL procedure that creates task
assignments and periodic data by accepting a table of assignment records and a table of
periodic data.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
3-164 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
The required parameters for this procedure are listed below:
• P_TASK_ASSIGNMENTS_IN
• P_TASK_ASSIGNMENTS_OUT
• P_TASK_ASSIGNMENT_PERIODS_IN
• P_TASK_ASSIGNMENT_PERIODS_OUT
• X_RETURN_STATUS
• X_MSG_COUNT
• X_MSG_DATA
UPDATE_TASK_ASSIGNMENTS
UPDATE_TASK_ASSIGNMENTS is a PL/SQL procedure that updates task
assignments. This API allows users to update the resource assignments on tasks
without locking the workplan version, and allows multiple users to update the resource
assignments for a task.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_TASK_ASSIGNMENTS_IN
• P_TASK_ASSIGNMENTS_OUT
• X_RETURN_STATUS
• X_MSG_COUNT
• X_MSG_DATA
UPDATE_TASK_ASSIGNMENT_PERIODS
UPDATE_TASK_ASSIGNMENT_PERIODS is a PL/SQL procedure that updates task
assignments and periodic data.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_TASK_ASSIGNMENTS_OUT
• P_TASK_ASSIGNMENT_PERIODS_IN
• P_TASK_ASSIGNMENT_PERIODS_OU
• X_RETURN_STATUS
• X_MSG_COUNT
• X_MSG_DATA
DELETE_TASK_ASSIGNMENTS
DELETES_TASK_ASSIGNMENTS is a PL/SQL procedure that deletes task assignments.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_TASK_ASSIGNMENTS_IN
• X_RETURN_STATUS
• X_MSG_COUNT
• X_MSG_DATA
FETCH_TASK_ASSIGNMENTS
FETCH_TASK_ASSIGNMENTS is a PL/SQL procedure that retrieves task assignments
from the server side PLSQL table.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_PM_TASK_ASGMT_REFERENCE
• P_PA_TASK_ASSIGNMENT_ID
• P_PM_TASK_REFERENCE
3-166 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• P_PA_TASK_ID
• P_RESOURCE_ALIAS
• P_RESOURCE_LIST_MEMBER_ID
• X_RETURN_STATUS
CONVERT_PM_TAREF_TO_ID
CONVERT_PM_TAREF_TO_ID is a PL/SQL procedure that converts a given task
assignment reference to a task assignment ID.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_PM_PRODUCT_CODE
• P_PA_PROJECT_ID
• P_PA_STRUCTURE_VERSION_ID
• P_PA_TASK_ID
• P_PA_TASK_ELEM_VER_ID
• X_PA_TASK_ASSIGNMENT_ID
• X_RETURN_STATUS
INIT_TASK_ASSIGNMENTS
INIT_TASK_ASSIGNMENTS initializes the task assignments global tables prior to
Load-Execute cycle.
INIT_TASK_ASSIGNMENTS has no parameters.
This chapter describes how to implement APIs that interface and assign assets from
external systems.
This chapter covers the following topics:
• Asset APIs
• Asset API Procedure and Function Definitions
• Cost Plus Application Programming Interface (API)
Asset APIs
The asset APIs provide an open interface for external systems to insert, update, assign,
and delete assets.
PA_ASSET_BOOKS_LOV_V You can use this view to retrieve valid asset books from
Oracle Projects and display them in your external system.
PA_PARENT_ASSET_LOV_V You can use this view to retrieve valid parent assets from
Oracle Projects and display them in your external system.
PA_RET_TARGET_ASSET_LO You can use this view to retrieve valid retired target assets
V_V from Oracle Projects and display them in your external
system.
ADD_PROJECT_ASSET
This procedure adds a project asset to the specified project If the validations complete
successfully, a new PA_PROJECT_ASSETS_ALL row is created.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_PM_PRODUCT_CODE
• P_PM_PROJECT_REFERENCE
4-2 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• P_PA_PROJECT_ID
• P_PM_ASSET_REFERENCE
• P_PA_ASSET_NAME
• P_ASSET_NUMBER
• P_ASSET_DESCRIPTION
• P_PROJECT_ASSET_TYPE
UPDATE_PROJECT_ASSET
This procedure updates a project asset on the specified project. If the validations
complete successfully, the PA_PROJECT_ASSETS_ALL row is updated with any new
values specified.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_MSG_COUNT
• P_MSG_DATA
• P_RETURN_STATUS
• P_PM_PRODUCT_CODE
• P_PM_PROJECT_REFERENCE
• P_PA_PROJECT_ID
• P_PA_ASSET_NAME
• P_ASSET_NUMBER
• P_ASSET_DESCRIPTION
• P_PROJECT_ASSET_TYPE
ADD_ASSET_ASSIGNMENT
This procedure adds an asset assignment to the specified project. If the validations
complete successfully, a PA_PROJECT_ASSET_ASSIGNMENTS row is created.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_MSG_COUNT
• P_MSG_DATA
• P_RETURN_STATUS
• P_PM_PRODUCT_CODE
• P_PM_PROJECT_REFERENCE
• P_PA_PROJECT_ID
• P_PM_TASK_REFERENCE
DELETE_ASSET_ASSIGNMENT
This procedure deletes an asset assignment from a project.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
4-4 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• P_API_VERSION_NUMBER
• P_MSG_COUNT
• P_MSG_DATA
• P_RETURN_STATUS
• P_PM_PRODUCT_CODE
• P_PM_PROJECT_REFERENCE
• P_PA_PROJECT_ID
• P_PM_TASK_REFERENCE
LOAD_PROJECT_ASSET
This procedure adds a project asset row to the global PL/SQL table G_ASSETS_IN_TBL.
If the asset already exists on the project, the procedure calls the
UPDATE_PROJECT_ASSET procedure.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_PM_ASSET_REFERENCE
• P_PA_ASSET_NAME
• P_ASSET_NUMBER
• P_ASSET_DESCRIPTION
• P_PROJECT_ASSET_TYPE
LOAD_ASSET_ASSIGNMENT
This procedure adds an asset assignment row to the global PL/SQL table
G_ASSET_ASSIGNMENTS_IN_TBL. Rows in this table can then be added in mass to
the current project by the EXECUTE_ADD_PROJECT_ASSET procedure, which calls
the ADD_ASSET_ASSIGNMENT procedure for each row in the PL/SQL table.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
• P_RETURN_STATUS
• P_PM_TASK_REFERENCE
EXECUTE_ADD_PROJECT_ASSET
This procedure is called from the CREATE_PROJECT procedure. It processes project
assets and project asset assignments sent to the procedure in PL/SQL table input
parameters.
For each project asset row in the P_ASSETS_IN table, the procedure determines if the
asset already exists. If it exists, the procedure calls the UPDATE_PROJECT_ASSET
procedure for that row. Otherwise, it calls the ADD_PROJECT_ASSET procedure for
that row.
For each project asset assignment row in the P_ASSET_ASSIGNMENTS_IN table, the
procedure determines if the asset assignment already exists. If the assignment does not
exist, the procedure calls the ADD_ASSET_ASSIGNMENT procedure for that row. If it
does exist, the procedure does nothing.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_MSG_COUNT
• P_MSG_DATA
• P_RETURN_STATUS
• P_PM_PRODUCT_CODE
• P_PM_PROJECT_REFERENCE
• P_PA_PROJECT_ID
• P_ASSETS_IN
4-6 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
CONVERT_PM_ASSETREF_TO_ID
This procedure converts an incoming asset reference to a project asset ID.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_PA_PROJECT_ID
• P_RETURN_STATUS
FETCH_PROJECT_ASSET_ID
This function returns the PROJECT_ASSET_ID based on the ASSET_REFERENCE and
PROJECT_ID.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_PA_PROJECT_ID
• P_PM_ASSET_REFERENCE
Note: Any amounts calculated using the API will not show up in cost
plus detail views that display the burden cost breakdown. Also, if you
update rates for the burden schedule, you must manually mark all
items that are affected by the rate changes.
Error Handling
Use the status and stage parameters to help resolve error conditions should your
procedure fail.
The status parameter indicates the processing status of your procedure as follows:
status = 0 The procedure executed successfully.
status < 0 An Oracle error occurred and the process did not complete.
The stage parameter shows you where in the processing of the cost plus API the
procedure failed. Use the stage parameter to resolve the specific problem that caused
your procedure to fail. The following table lists these different stages and what they
mean.
Stage Meaning
100 Cannot find a revision for the given burden schedule and effective date
400 There is no active compiled set for the given burden schedule and organization
4-8 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Related Topics
Labor Transaction Extensions, page 9-16
You would use the following PL/SQL procedure to obtain the burden amount for this
business requirement using the cost plus API.
pa_cost_plus.get_burden_amount(60,
'03-MAR-94',
'Professional',
18,
1000,
burden_amount,
burden_sch_rev_id,
compiled_set_id,
status,
stage);
if (status = 0) then
-- use the calculated burden_amount to implement your
-- business requirement
end if;
• Events
Control Actions
The following new Control Actions have been added for Agreement/Funding API
functionality:
• Update Agreement
• Delete Agreement
• Add Funding
• Update Funding
• Delete Funding
For more information on the control actions, see Control Actions Window, Oracle
Projects User Guide.
View Description
5-2 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• UPDATE_AGREEMENT, page 5-5
CREATE_AGREEMENT
This API creates an agreement with associated funds.
Note: To use this API you must have a database environment that is
capable of supporting the PL/SQL table and a user defined record (for
example, Oracle Server 7.3 and PL/SQL 2.3). Otherwise,use the
Load-Execute-Fetch APIs supplied in the pa_agreement_pub_ package.
• Agreement type
• Agreement number
• Term name
• Revenue limit
• Valid Employee
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_PM_PRODUCT_CODE
• P_AGREEMENT_IN_REC
DELETE_AGREEMENT
This API deletes an agreement and associated funds.
Business Rules
• If the funding is baselined, the agreement cannot be deleted.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
5-4 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• P_PM_PRODUCT_CODE
• P_PM_AGREEMENT_REFERENCE
• P_AGREEMENT_ID
UPDATE_AGREEMENT
This API updates an agreement and associated funds.
Business Rules
• If there is at least one summary project funding that exists where the sum of the
baselined amount and total unbaselined amount is less then the revenue accrued or
billed amount, the API does not allow the revenue or invoice limit to be changed.
• The agreement amount cannot be less than the sum of the total baselined amount
and unbaselined amount.
• The customer cannot be changed if there is one fund for the agreement.
• List of Values
• Customer number
• Agreement type
• Agreement number
• Term name
• Revenue limit
• Valid employee
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_MSG_COUNT
• P_MSG_DATA
• P_RETURN_STATUS
• P_AGREEMENT_IN_REC
CREATE_BASELINE_BUDGET
The API procedure PA_AGREEMENT_PUB.CREATE_BASELINE_BUDGET creates
and baselines an approved revenue budget and baselines the funding for a project. This
procedure calls the PA_BUDGET_PUB.CREATE_DRAFT_BUDGET procedure to create
a budget and the PA_BUDGET.BASELINE_BUDGET procedure to baseline the budget.
Business Rules:
• Baseline Funding without Budget must be enabled for the project. The functionality
can be enabled for a project in the Revenue and Billing Information window.
• If funding for the project is at the project level, the procedure creates an approved
revenue budget that uses the system-defined budget entry method Project Level
Baseline. This budget entry method budgets at the project level and does not use a
resource list.
• If funding for the project is at the top task level, the procedure creates an approved
revenue budget that uses the system-defined budget entry method Task Level
Baseline. This budget entry method budgets at the top task level and does not use a
resource list.
• If descriptive flexfields are defined for a budget, you can pass them in as
parameters.
• All the business rules associated with the Budget APIs are enforced.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_MSG_COUNT
• P_MSG_DATA
• P_RETURN_STATUS
• P_PM_PRODUCT_CODE
5-6 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• P_PA_PROJECT_ID
ADD_FUNDING
This API adds funding to an agreement.
Business Rules
• If the project is funded by multiple customers, funding cannot be done at the task
level.
• If the Project Type is not Contract, the fund amount must be zero.
• Check funding level: If there is an existing Project Level Funding, there cannot also
be a Top Task Level Funding. A project can only have one funding level.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_PM_PRODUCT_CODE
• P_PM_FUNDING_REFERENCE
• P_FUNDING_ID
• P_PA_PROJECT_ID
• P_AGREEMENT_ID
DELETE_FUNDING
This API deletes a fund from an agreement.
Business Rules
• If the funding is baselined, the agreement cannot be deleted.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_PM_PRODUCT_CODE
• P_PM_FUNDING_REFERENCE
• P_FUNDING_ID
UPDATE_FUNDING
This API updates funding for an agreement.
Business Rules
• If the project is funded by multiple customers, task level funding is not allowed.
• If the Project Type is not Contract, the fund amount must be zero.
5-8 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• Check funding level: If there is an existing Project Level Funding, there cannot also
be a Top Task Level Funding. A project can only have one funding level.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_PM_PRODUCT_CODE
• P_PM_FUNDING_REFERENCE
• P_FUNDING_ID
• P_AGREEMENT_ID
INIT_AGREEMENT
This API sets the global tables used by the Load-Execute-Fetch procedures that create a
new agreement or update an existing agreement.
Parameters: None
LOAD_AGREEMENT
This API loads an agreement to a PL/SQL record.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_PM_AGREEMENT_REFERENCE
• P_AGREEMENT_ID
• P_CUSTOMER_ID
• P_CUSTOMER_NUM
• P_AGREEMENT_NUM
• P_AGREEMENT_TYPE
• P_AMOUNT
• P_TERM_ID
• P_TERM_NAME
• P_OWNED_BY_PERSON_ID
• P_OWNED_BY_PERSON_NAME
LOAD_FUNDING
This API loads funding to a PL/SQL table.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_PM_FUNDING_REFERENCE
• P_FUNDING_ID
• P_AGREEMENT_ID
• P_PROJECT_ID
• P_ALLOCATED_AMOUNT
EXECUTE_CREATE_AGREEMENT
This API creates an agreement with the funding using the data stored in the global
tables during the Load phase.
Business Rules
List of values
5-10 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• Customer number
• Agreement type
• Agreement number
• Term name
• Revenue limit
• Valid Employee
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_PM_PRODUCT_CODE
• P_AGREEMENT_ID_OUT
• P_CUSTOMER_ID_OUT
EXECUTE_UPDATE_AGREEMENT
This API updates an agreement with the funding using the data stored in the global
tables during the Load phase.
Business Rules
• If there is at least one summary project funding that exists where the sum of the
baselined amount and total unbaselined amount is less then the revenue accrued or
billed amount, the API does not allow the revenue or invoice limit to be changed.
• The agreement amount cannot be less than the sum of the total baselined amount
and unbaselined amount.
• The customer cannot be changed if there is one fund for the agreement.
• List of Values
• Customer number
• Agreement type
• Term name
• Revenue limit
• Valid employee
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_PM_PRODUCT_CODE
FETCH_FUNDING
This API gets the return_status that was returned during creation of funds and stored in
a global PL/SQL table.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_FUNDING_INDEX
CLEAR_AGREEMENT
This API clears the global variables that were set up during initialization.
CHECK_DELETE_AGREEMENT_OK
This API checks whether an agreement can be deleted.
Business Rules
• If the funding is baselined, the agreement cannot be deleted.
5-12 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
AND
total funding amount >= amount accrued or billed
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_PM_AGREEMENT_REFERENCE
• P_AGREEMENT_ID
CHECK_ADD_FUNDING_OK
This API checks whether a fund can be added.
Business Rules
• If the project is funded by multiple customers, task level funding is not allowed.
• If the project type is not Contract, the fund amount must be zero.
• The funding level must be valid: If there is an existing Project Level Funding, there
cannot also be a Top Task Level Funding. A project can only have one funding
level.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_PM_AGREEMENT_REFERENCE
• P_AGREEMENT_ID
• P_PM_FUNDING_REFERENCE
• P_TASK_ID
• P_PROJECT_ID
CHECK_DELETE_FUNDING_OK
This API checks whether a fund can be deleted.
Business Rules
• If the funding is baselined, the agreement cannot be deleted.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_PM_FUNDING_REFERENCE
• P_FUNDING_ID
CHECK_UPDATE_FUNDING_OK
This API checks whether a fund can be added.
Business Rules
• If the project is funded by multiple customers, task level funding is not allowed.
• If the project type is not Contract, the fund amount must be zero.
5-14 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• If the funding is baselined, the funding amount cannot be updated.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_PM_PRODUCT_CODE
• P_PM_FUNDING_REFERENCE
• P_FUNDING_ID
• P_PM_AGREEMENT_REFERENCE
• P_AGREEMENT_ID
• Most of the Oracle Projects APIs use a standard set of input and output parameters.
For a description of these parameters, see Standard API Parameters, page 2-21.
You can also use the following views to retrieve the list of values for collecting
agreement information:
• PA_AGREEMENT_TYPE_LOV_V
• PA_TERMS_LOV_V
• PA_OWNED_BY_LOV_V
• PA_CUSTOMERS_LOV_V
5-16 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• Load Agreement (LOAD_AGREEMENT)
In the example above, INIT_AGREEMENT resets the server-side global PL/SQL tables
that temporarily store the Agreement and Funding data. Once you set up these tables,
you can use LOAD_AGREEMENT to move the Agreement data to the Oracle Projects
database.
When you create a new agreement, this procedure must also pass parameters:
P_PM_AGREEMENT_REFERENCE the unique reference code that identifies the
agreement in the external system.
• Project ID (P_PROJECT_ID): The identifier of the Project for which the funding
needs to be created.
• Task ID (P_TASK_ID): For task-level funding, the identifier of the task for which
the funding needs to be created.
Output parameters
• P_AGREEMENT_ID - The unique Oracle Projects identification code for the new
Agreement.
• P_MSG_COUNT shows the number of errors detected during the execution of the
API
If the API detects one error, the API returns the error message text. If the API detects
multiple errors, use GET_MESSAGES to retrieve the error messages. See
GET_MESSAGES, page 2-25.
5-18 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Load-Execute-Fetch process by calling the API CLEAR_AGREEMENT and either save
or roll back your changes to the database.
5-20 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
a NUMBER:=0;
API_ERROR EXCEPTION;
BEGIN
-- PRODUCT RELATED DATA
l_pm_product_code :='MSPROJECT';
-- AGREEMENT RELATED DATA
l_pm_agreement–reference :='amg06';
l_agreement_id :=Null;
l_customer_id :=1004;
l_customer_name :='Universal Packaging';
l_customer_num :='1004';
l_agreement_num :='amg06';
l_agreement_type :='Service Agreement';
l_amount := 2000;
l_term_id := 4;
l_term_name := Null;
l_revenue_limit_flag := N;
l_expiration_date := Null;
l_description := Null;
l_owned_by_person_id := 53;
l_owned–by_person_name :=Null;
l_attribute_category :=Null;
l_attribute1 :=Null;
l_attribute2 :=Null;
l_attribute3 :=Null;
l_attribute4 :=Null;
l_attribute5 :=Null;
l_attribute6 :=Null;
l_attribute7 :=Null;
l_attribute8 :=Null;
l_attribute9 :=Null;
l_attribute10 :=Null;
l_template_flag :=N;
-- LOOP CONSTRUCT
l_funding_in(a):= l_funding_rec;
a:= 2;
l_funding_rec.pm_funding_reference := 'C1004';
l_funding_rec.project_funding_id :=Null;
l_funding_rec.agreement_id := Null;
-- LOOP CONSTRUCT
l_funding_in(a) := l_funding_rec;
------------------------------------------
––INIT_CREATE_AGREEMENT
pa_agreement_pub.init_agreement;
------------------------------------------
--LOAD AGREEMENT
pa_agreement_pub.load_agreement
(p_api_version_number => l_api_version_number
,p_init_msg_list => l_init_msg_list
,p_return_status => l_return_status
,p_pm_agreement_reference =>
l_pm_agreement_reference
,p_agreement_id => l_agreement_id
,p_customer_id => l_customer_id
,p_customer_name => l_customer_name
p_customer_num => l_customer_num
,p_agreement_num => l_agreement_num
,p_agreement_type => l_agreement_type
,p_amount => l_amount
,p_term_id => l_term_id
,p_term_name => l_term_name
,p_revenue_limit_flag => l_revenue_limit_flag
,p_expiration_date => l_expiration_date
,p_description => l_description
,p_owned_by_person_id => l_owned_by_person_id
,p_owned_by_person_name => l_owned_by_person_name
,p_attribute_category => l_attribute_category
,p_attribute1 => l_attribute1
,p_attribute2 => l_attribute2
,p_attribute3 => l_attribute3
,p_attribute4 => l_attribute4
,p_attribute5 => l_attribute5
,p_attribute6 => l_attribute6
,P_attribute7 => l_attribute7
,p_attribute8 => l_attribute8
,p_attribute9 => l_attribute9
,p_attribute10 => l_attribute10
,p_template_flag => l_template_flag);
IF l_return_status != 'S'
THEN
RAISE API_ERROR;
END IF;
5-22 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
FOR i IN 1..a LOOP
pa_agreement_pub.load_funding
(p_api_version_number => l_api_version_number
,p_init_msg_list => l_init_msg_list
,p_return_status => l_return_status
,p_pm_funding_reference => l_funding_in(i).pm_funding_reference
,p_funding_id => l_funding_in(i).project_funding_id
,p_agreement_id => l_funding_in(i).agreement_id
,p_project_id => l_funding_in(i).project_id
,p_task_id => l_funding_in(i).task_id
,p_allocated_amount => l_funding_in(i).allocated_amount
,p_date_allocated => l_funding_in(i).date_allocated
,p_attribute_category => l_funding_in(i).attribute_category
,p_attribute1 => l_funding_in(i).attribute1
,p_attribute2 => l_funding_in(i).attribute2
,p_attribute3 => l_funding_in(i).attribute3
,p_attribute4 => l_funding_in(i).attribute4
,p_attribute5 => l_funding_in(i).attribute5
,p_attribute6 => l_funding_in(i).attribute6
,p_attribute7 => l_funding_in(i).attribute7
,p_attribute8 => l_funding_in(i).attribute8
,p_attribute9 => l_funding_in(i).attribute9
,p_attribute10 => l_funding_in(i).attribute10);
IF l_return_status != 'S'
THEN
RAISE API_ERROR;
END IF;
END LOOP;
--EXECUTE_CREATE_AGREEMENT
pa_agreement_pub.execute_create_agreement
( p_api_version_number => l_api_version_number,
p_commit => l_commit,
p_init_msg_list => l_init_msg_list,
p_msg_count => l_msg_count,
p_msg_data => l_msg_data
p_return_status => l_return_status,
p_pm_product_code => l_pm_product_code,
p_agreement_id_out => l_agreement_id_out,
p_customer_id_out => l_customer_id_out);
IF l_return_status != 'S'
THEN
RAISE API_ERROR;
END IF;
--FETCH_TASK
FOR l_funding_index in 1 ..a (loop for multiple Fundings)
LOOP
pa_agreement_pub.fetch_funding
(p_api_version_number => l_api_version_number
,p_init_msg_list => l_init_msg_list
,p_return_status => l_return_status
,p_funding_index => l_funding_index
,p_funding_id => l_funding_id
,p_pm_funding_reference =>
l_pm_funding_reference);
IF l_return_status != 'S'
THEN
RAISE API_ERROR;
END IF;
------------------------------------------
CLEAR_CREATE_AGREEMENT
pa_agreement_pub.clear_agreement;
------------------------------------------
IF l_return_status != 'S'
THEN
RAISE API_ERROR;
END IF;
-- HANDLE EXCEPTIONS
EXCEPTION
WHEN API_ERROR THEN
for i in 1..l_msg_count
loop
pa_interface_utils_pub.get_messages
(p_msg_data => l_msg_data,
p_data => l_data,
p_msg_count => l_msg_count,
p_msg_index_out =>
l_msg_index_out);
dbms_output.put_line ('error mesg '||l_data);
end loop;
5-24 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
DECLARE
--variables needed for API standard parameters
l_api_version_number NUMBER :=1.0;
l_commit VARCHAR2(1):= 'F';
l_return_status VARCHAR2(1);
l_init_msg_list VARCHAR2(1);
l_msg_count NUMBER;
l_msg_data VARCHAR2(2000);
l_data VARCHAR2(2000);
l_msg_entity VARCHAR2(100);
l_msg_entity_index NUMBER;
l_msg_index NUMBER;
l_msg_index_out NUMBER;
l_encoded VARCHAR2(1);
l_agreement_id_out NUMBER;
l_customer_id–outNUMBER;
l_funding_id NUMBER;
--Funding Variables
l_pm_funding_reference VARCHAR2(25);
l_funding_rec pa_agreement_pub.funding_rec_in_type;
l_funding_in pa_agreement_pub.funding_rec_in_type;
l_funding_out pa_agreement_pub.funding_rec_out_type;
-- Loop Variables;
a NUMBER
API_ERROR EXCEPTION
--BEGIN
-- PRODUCT RELATED DATA
l_pm_product_code:='MSPROJECT';
--AGREEMENT DATA
p_agreement_in_rec.pm_agreement_reference := 'AMGTEST1';
p_agreement_in_rec.agreement_id := Null;
p_agreement_in_rec.customer_id := 21491;
p_agreement_in_rec.customer_num := '1086';
p_agreement_in_rec.agreement_num := 'AMGTEST1';
p_agreement_in_rec.agreement_type := 'Contract';
p_agreement_in_rec.amount := 2000;
p_agreement_in_rec.term_id := 1000;
p_agreement_in_rec.term_name := Null;
p_agreement_in_rec.revenue_limit_flag:= 'N';
p_agreement_in_rec.expiration_date := Null;
p_agreement_in_rec.description := Null;
p_agreement_in_rec.owned_by_person_id:= 1234;
p_agreement_in_rec.attribute_category:= Null;
p_agreement_in_rec.attribute1 := Null;
p_agreement_in_rec.attribute3 := Null;
p_agreement_in_rec.attribute4 := Null;
--FUNDING DATA
a:= 1;
l_funding_rec.pm_funding_reference := 'AMGTEST1FUN'
l_funding_rec.project_funding_id := Null;
l_funding_rec.agreement_id := Null;
l_funding_rec.project_id := 7946;
l_funding_rec.task_id := 10273;
l_funding_rec.allocated_amount := 200;
l_funding_rec.date_allocated := '27-DEC-01';
l_funding_rec.desc_flex_name := Null;
l_funding_rec.attribute_category := Null;
l_funding_rec.attribute1 := Null;
l_funding_rec.attribute2 := Null;
l_funding_rec.attribute3 := Null;
l_funding_rec.attribute4 := Null;
l_funding_rec.attribute5 := Null;
l_funding_rec.attribute6 := Null;
l_funding_rec.attribute7 := Null;
l_funding_rec.attribute8 := Null;
l_funding_rec.attribute9 := Null;
l_funding_rec.attribute10 := Null;
-- LOOP CONSTRUCT
l_funding_in(a):= l_funding_rec;
-- CONSTRUCTING THE FUNDING TABLE
FOR i IN 1..a LOOP
l_funding_in(i).pm_funding_reference :=
l_funding_rec.pm_funding_reference
l_funding_in(i).project_funding_id :=l_funding_rec.funding _id;
l_funding_in(i).agreement_id :=l_funding_rec.p_agreement_id;
l_funding_in(i).project_id :=l_funding_rec._project_id;
l_funding_in(i).task_id := l_funding_rec.p_task_id;
l_funding_in(i).allocated_amount :=l_funding_rec.p_allocated_amount;
l_funding_in(i).date_allocated :=l_funding_rec.p_date_allocated;
l_funding_in(i).desc_flex_name :=l_funding_rec.p_desc_flex_name;
l_funding_in(i).attribute_category :=l_funding_rec.p_attribute_category;
l_funding_in(i).attribute1 :=l_funding_rec.p_attribute1;
l_funding_in(i).attribute2 :=l_funding_rec.p_attribute2;
l_funding_in(i).attribute3 :=l_funding_rec.p_attribute3;
l_funding_in(i).attribute4 :=l_funding_rec.p_attribute4;
l_funding_in(i).attribute5 :=l_funding_rec.p_attribute5;
l_funding_in(i).attribute6 :=l_funding_rec.p_attribute6;
l_funding_in(i).attribute7 :=l_funding_rec.p_attribute7;
l_funding_in(i).attribute8 :=l_funding_rec.p_attribute8;
l_funding_in(i).attribute9 :=l_funding_rec.p_attribute9;
l_funding_in(i).attribute10 :=l_funding_rec.p_attribute10;
END LOOP;
-- 'CREATE_AGREEMENT
pa_agreement_pub.create_agreement
( p_api_version_number => l_api_version_number
,p_commit => l_commit
,p_init_msg_list => l_init_msg_list
,p_msg_count => l_msg_count
5-26 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
,p_msg_data => l_msg_data
,p_return_status => l_return_status
,p_pm_product_code => l_pm_product_code
,p_agreement_in_rec => p_agreement_in_rec
,p_agreement_out_rec=> p_agreement_out_rec
,p_funding_in_tbl => l_funding_in
,p_funding_out_tbl => l_funding_out);
IF l_return_status != 'S'
THEN
RAISE API_ERROR;
END IF;
--HANDLE EXCEPTIONS
EXCEPTION
WHEN API_ERROR THEN
for i in 1..1_msg_count
loop
pa_interface_utils_pub.get_messages
(p_msg_date => l_msg_date
,p_data => l_data
,p_msg_count => l_msg_count
,p_msg_index_out => l_msg_index_out)
dbms_output.put_line ('error mesg' 1_data)
end loop;
if i = 1 THEN
WHEN OTHERS THEN
pa_interface_utils_pub.get_messages
(p_msg_data => l_msg_data
,p_data => l_data
,p_msg_count => l_msg_count
,p_msg_index_out => l_msg_index_out);
dbms_output.put_line ('error mesg'1_data)
END;
/
Event APIs
The event APIs provide an open interface for external systems to insert, update, and
delete events.
EVENT_REC_IN_TYPE Datatype
The following table shows the parameters in EVENT_REC_IN_TYPE:
P_PM_EVENT VARCHAR2 NULL Unique identifier of the event in the external system
_REFERENCE (25)
P_TASK_NUMBER VARCHAR2 NULL The sequential number that identifies the task
(25)
P_EVENT_NUMBER NUMBER NULL The sequential number that identifies the event
P_EVENT_TYPE VARCHAR2 NULL The event type that classifies the event
(30)
P_DESCRIPTION VARCHAR2 NULL The free text description of the event. For billing
events, the description is displayed as the invoice line
(250) description.
P_BILL_HOLD_FLAG VARCHAR2 NULL Flag indicating that the event is held from invoicing
(1)
5-28 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Name Type Value Description
P_COMPLETION_DATE DATE NULL The date on which the event is complete, and on or
after which the event is processed for revenue accrual
and/or invoicing.
(240)
(30)
P_PROJECT_NUMBER VARCHAR2 NULL The sequential number that identifies the project
(25)
(240
P_INVENTORY_ORG_NAM VARCHAR2 NULL The inventory organization associated with the event
E
(240
P_INVENTORY_ITEM_ID NUMBER NULL Identifier of the inventory item associated with the
event
(3)
_AMOUNT
_AMOUNT
P_PROJECT_RATE_TYPE VARCHAR2 NULL Exchange rate type to use for conversion from bill
transaction currency to project currency
(30)
P_PROJECT_RATE_DATE DATE NULL Exchange rate date to use for conversion from bill
transaction currency to project currency if Fixed Date
rate date type is used for customer billing.
P_PROJECT_EXCHANGE NUMBER NULL Exchange rate to use for conversion from bill
transaction currency to project currency if User
_RATE exchange rate type is used.
P_PROJFUNC_RATE_TYPE VARCHAR2 NULL Exchange rate type to use for conversion from bill
transaction currency to project functional currency for
(30) customer billing.
P_PROJFUNC_RATE_DATE DATE NULL Exchange rate date to use for conversion from bill
transaction currency to project functional currency if
Fixed Date rate date type is used for customer billing.
P_PROJFUNC_EXCHANGE NUMBER NULL Exchange rate to use for conversion from bill
transaction currency to project functional if User
_RATE exchange rate type is used.
P_FUNDING_RATE_TYPE VARCHAR2 NULL Exchange rate type to use for conversion from bill
transaction currency to funding currency for customer
(30) billing.
P_FUNDING_RATE_DATE DATE NULL Exchange rate date to use for conversion from bill
transaction currency to funding currency if Fixed Date
rate date type is used for customer billing.
5-30 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Name Type Value Description
P_FUNDING_EXCHANGE NUMBER NULL Exchange rate to use for conversion from bill
transaction currency to project or functional currency
_RATE
P_ADJUSTING_REVENUE VARCHAR2 NULL Flag indicating that the event is an adjusting revenue
event
_FLAG (1)
(1)
_NUMBER
EVENT_REC_OUT_TYPE Datatype
The following table displays the parameters for EVENT_REC_OUT_TYPE:
EVENT_ID NUMBER (15) NULL The reference code that uniquely identifies the event in
Oracle Projects
EVENT_IN_TBL_TYPE
EVENT_IN_TBL_TYPE is the table of EVENT_REC_IN_TYPE.
CREATE_EVENT
This API creates an event or a set of events.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_PM_PRODUCT_CODE
DELETE_EVENT
This API deletes an event.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_PM_EVENT_REFERENCE
• P_EVENT_ID
UPDATE_EVENT
This API updates an event or set of events.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
5-32 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• P_MSG_COUNT
• P_MSG_DATA
• P_RETURN_STATUS
INIT_EVENT
This API sets the global tables used by the Load-Execute-Fetch procedures that create a
new event or update an existing event. This API has no parameters.
LOAD_EVENT
This API loads an event to a PL/SQL record.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_PM_PRODUCT_CODE
• P_API_VERSION_NUMBER
• P_PM_EVENT_REFERENCE
• P_TASK_NUMBER
• P_EVENT_NUMBER
• P_EVENT_TYPE
EXECUTE_CREATE_EVENT
This API creates an event using the data which is stored in the global tables during the
Load phase.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_PM_PRODUCT_CODE
• P_EVENT_ID_OUT
FETCH_EVENT
This API gets the RETURN_STATUS that was returned during creation of an event and
stored in a global PL/SQL table.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_PM_PRODUCT_CODE
CLEAR_EVENT
This API clears the global variables that were set up during initialization.
Parameters: None
CHECK_DELETE_EVENT_OK
This API checks whether an event can be deleted.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_PM_PRODUCT_CODE
• P_PM_EVENT_REFERENCE
5-34 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• P_EVENT_ID
View Description
6-2 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• ASSOCIATE_DLV_TO_TASK_ASSIGN, page 6-6
You can view descriptions of all of the parameters for thes procedures in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
LOAD_DELIVERABLE
You can use this API to load the PL/SQL table for one deliverable. The required
parameters for this procedure are listed below:
• X_RETURN_STATUS
• P_DELIVERABLE_NAME
• P_DELIVERABLE_SHORT_NAME
• PX_DELIVERABLE_ID
• P_PM_DELIVERABLE_REFERENCE
LOAD_DELIVERABLES
You can use this API to load the PL/SQL table for deliverables. The required parameters
for this procedure are listed below:
• X_RETURN_STATUS
• P_DELIVERABLE_NAME
• P_DELIVERABLE_SHORT_NAME
• PX_DELIVERABLE_ID
• P_PM_DELIVERABLE_REFERENCE
LOAD_ACTION
You can use this procedure to load a single deliverable action in the PL/SQL table for
deliverable actions. The required parameters for this procedure are listed below:
• P_DELIVERABLE_ID
Business Rules
• The parameters P_EXPENDITURE_ORG_ID, P_EXPENDITURE_TYPE, and
P_EXPENDITURE_ITEM_DATE are required only if the destination type is
EXPENSE.
• The parameters P_QUANTITY and P_UOM_CODE are required only for non-item
deliverable procurement type. These parameters are applicable for the action
Shipping.
CREATE_DELIVERABLE
You can use this procedure to create a deliverable for a project. The required parameters
for this procedure are listed below:
• X_RETURN_STATUS
• P_DELIVERABLE_NAME
• P_DELIVERABLE_SHORT_NAME
• PX_DELIVERABLE_ID
• P_PM_DELIVERABLE_REFERENCE
UPDATE_DELIVERABLE
You can use this procedure to update the attributes of a deliverable. The required
parameters for this procedure are listed below:
• X_RETURN_STATUS
6-4 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• PX_DELIVERABLE_ID
• P_PM_DELIVERABLE_REFERENCE
CREATE_DELIVERABLE_ACTION
You can use this procedure to create a deliverable action for a deliverable. The required
parameters for this procedure are listed below:
• P_DELIVERABLE_ID
Business Rules
• If the class type of the deliverable is item, the following rules apply:
• If the action is Procurement, values are required for P_RECEIVING_ORG_ID
and P_QUANTITY.
• P_EXPENDITURE_ITEM_DATE
• If the deliverable class type is not item, the following rules apply:
• The parameter P_RECEIVING_ORG_ID is required.
UPDATE_DELIVERABLE_ACTION
You can use this procedure to update attributes of a deliverable action. The required
parameters for this procedure are listed below:
• P_DELIVERABLE_ID
Business Rules
• If the class type of the deliverable is item, the following rules apply:
• If the action is Procurement, values are required for P_RECEIVING_ORG_ID
• P_EXPENDITURE_ITEM_DATE
• If the deliverable class type is not item, the following rules apply:
• The parameter P_RECEIVING_ORG_ID is required.
DELETE_DELIVERABLES
You can use this procedure to delete a deliverable for a project.
DELETE_DELIVERABLE_ACTIONS
You can use this procedure to delete a deliverable action for a deliverable. The required
parameters for this procedure are listed below:
• P_PM_DELIVERABLE_REFERENCE
• P_DELIVERABLE_ID
• P_ACTION_ID
ASSOCIATE_DLV_TO_TASK
You can use this procedure to associate a deliverable with a task. The required
parameters for this procedure are listed below:
• P_DELIVERABLE_REFERENCE
• P_DELIVERABLE_ID
ASSOCIATE_DLV_TO_TASK_ASSIGN
You can use this procedure to associate a deliverable to a task assignment. The required
parameters for this procedure are listed below:
6-6 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• P_DELIVERABLE_ID
DELETE_DLV_TO_TASK_ASSCN
You can use this procedure to delete a deliverable-to-task association. The required
parameters for this procedure are listed below:
• P_PM_DELIVERABLE_REFERENCE
• P_DELIVERABLE_ID
DELETE_DLV_TO_TASK_ASSIGN
You can use this procedure to delete a deliverable-to-task assignment association. The
required parameters for this procedure are listed below:
• P_DELIVERABLE_ID
• P_PM_DELIVERABLE_REFERENCE
Budget APIs
Budgets track the time and resources that you expect to use to complete a project or
task. Use your external system to prepare your budget, and then use Budget APIs to
interface the budget and budget line into Oracle Projects. Oracle Projects then generates
a budget based on the resource budgets and rates stored in the external system. You can
interface multiple budget versions to Oracle Projects and baseline them as needed.
Note: When youcall a budget API that requires a project identifier, you
must pass either the P_PA_PROJECT_ID or the
P_PM_PROJECT_REFERENCE parameter to identify the project. When
youcall a budget API that requires a resource list identifier, you must
pass either the P_RESOURCE_LIST_NAME or the
P_RESOURCE_LIST_ID parameter to identify the resource list.
6-8 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• CALCULATE_AMOUNTS, page 6-21
• Load-Execute-Fetch Procedures
• CLEAR_BUDGET, page 6-52
PA_TASK_ID IN NUMBER No The reference code that uniquely identifies the task in Oracle
Projects
PM_TASK IN VARCHAR2 No The reference code that uniquely identifies the task in the
external system
_REFERENCE (30)
_MEMBER_ID
_DATE
_DATE
(30)
(255)
6-10 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Name Usage Type Req? Description
PM_PRODUCT_C IN VARCHAR2 No The product code of the vendor of the external system
ODE
(30)
PM_BUDGET IN VARCHAR2 No The reference code that identifies the budget line on client
side
_LINE_REFEREN (30)
CE
_CATEGORY (30)
TXN_CURRENCY IN VARCHAR2 Yes The transaction currency code for the budget line
_CODE (15)
PROJFUNC_COS IN VARCHAR2 No The rate type for converting cost amounts from the
T transaction currency to the project functional currency
(30)
_RATE_TYPE
PROJFUNC_COS IN VARCHAR2 No The rate date type for converting cost amounts from
T transaction currency to project functional currency
(30)
_RATE_DATE_TY
PE
PROJFUNC_COS IN DATE No The rate date for converting cost amounts from transaction
T currency to project functional currency
_RATE_DATE
PROJFUNC_COS IN NUMBER No The rate for converting cost amounts from the transaction
T currency to the project functional currency when the
PROJFUNC_COST_RATE_TYPE is User
_EXCHANGE_RA
TE
PROJFUNC_REV IN VARCHAR2 No The rate type for converting revenue amounts from the
transaction currency to the project functional currency
_RATE_TYPE (30)
PROJFUNC_REV IN VARCHAR2 No The rate date type for converting revenue amounts from
transaction currency to project functional currency
_RATE_DATE_TY (30)
PE
PROJFUNC_REV IN DATE No The rate date for converting revenue amounts from
transaction currency to project functional currency
_RATE_DATE
PROJFUNC_REV IN NUMBER No The rate for converting revenue amounts from the
transaction currency to the project functional currency when
_EXCHANGE_RA the PROJFUNC_REV_RATE_TYPE is User
TE
PROJECT_COST IN VARCHAR2 No The rate type for converting cost amounts from the
transaction currency to the project currency
_RATE_TYPE (30)
PROJECT_COST IN VARCHAR2 No The rate date type for converting cost amounts from
transaction currency to project currency
_RATE_DATE_TY (30)
PE
PROJECT_COST IN DATE No The rate date for converting cost amounts from transaction
currency to project currency
_RATE_DATE
PROJECT_COST IN NUMBER No The rate for converting cost amounts from the transaction
currency to the project currency when the
_EXCHANGE_RA PROJECT_COST_RATE_TYPE is User
TE
PROJECT_REV IN VARCHAR2 No The rate type for converting revenue amounts from the
transaction currency to the project currency
_RATE_TYPE (30)
PROJECT_REV IN VARCHAR2 No The rate date type for converting revenue amounts from
transaction currency to project currency
_RATE_DATE_TY (30)
PE
6-12 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Name Usage Type Req? Description
PROJECT_REV IN DATE No The rate date for converting revenue amounts from
transaction currency to project currency
_RATE_DATE
PROJECT_REV IN NUMBER No The rate for converting revenue amounts from the
transaction currency to the project currency when the
_EXCHANGE_RA PROJECT_REV_RATE_TYPE is User
TE
CHANGE_REAS IN VARCHAR2 No The reference code that identifies the change reason
ON
(30)
_CODE
BUDGET_LINE_OUT_TBL_TYPE Datatype
The table type BUDGET_LINE_OUT_TBL_TYPE is a table of
BUDGET_LINE_OUT_REC_TYPE. The following table shows the attributes of the
BUDGET_LINE_OUT_REC_TYPE datatype.
CALC_BUDGET_LINE_OUT_TBL_TYPE Datatype
The table type CALC_BUDGET_LINE_OUT_TBL_TYPE is a table of
CALC_BUDGET_LINE_OUT_REC_TYPE. The following table shows the attributes of
the CALC_BUDGET_LINE_OUT_REC_TYPE datatype.
PA_TASK_ID OUT NUMBER The reference code that uniquely identifies the task in Oracle
Projects
NOCOP
Y
PM_TASK OUT VARCHA The reference code that uniquely identifies the task in the external
R2 system
_REFERENCE NOCOP
Y (30)
_MEMBER_ID NOCOP
Y
_DATE NOCOP
Y
6-14 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Name Usage Type Description
NOCOP
Y
TXN_CURRENCY OUT VARCHA The transaction currency code for the budget line. For Forms-based
R2(30) budgets, this is always the project functional currency.
_CODE
PROJECT_RAW OUT NUMBER Calculated raw cost amount in project currency. Applicable only
for budgets created using the web-based user interface.
_COST
PROJECT OUT NUMBER Calculated burdened cost amount in project currency. Applicable
only for budgets created using the web-based user interface.
_BURDENED_COS
T
PROJECT_REVEN OUT NUMBER Calculated revenue amount in project currency. Applicable only
UE for budgets created using the web-based user interface.
PROJFUNC_RAW OUT NUMBER Calculated raw cost amount in project functional currency.
Applicable only for budgets created using the web-based user
_COST interface.
Business Rules
This section describes general business rules, and rules for using this procedure with
versions created for budget types and for financial plan types.
General Rules
• After you use ADD_BUDGET_LINE to add a line to a draft or working version,
save the data before you call the procedure BASELINE_BUDGET. (A working
version may require approval before you can create a baseline.) Enter funding in
Oracle Projects before you create a baseline for a revenue budget.
• You can add lines only to draft or working versions. You cannot add lines to a
submitted or baseline version. You cannot add lines to an approved revenue budget
working version if the autobaseline feature is enabled.
• Oracle Projects establishes the following links between information stored in your
system and certain information in Oracle Projects. You can use the following
parameters instead of their corresponding Oracle Projects identification codes:
• P_PM_PROJECT_REFERENCE links to P_PA_PROJECT_ID.
• Products that call budget APIs must specify their respective product codes. Oracle
Projects predefines product codes and provides these codes to the appropriate
vendors.
• You do not need to specify values for the following pair of parameters if the version
is not categorized by resources:
• P_RESOURCE_ALIAS and P_RESOURCE_LIST_MEMBER_ID
• The following rules apply for versions that are time-phased by PA or GL periods:
• If a valid value is specified for the parameter P_PERIOD_NAME, then this
procedure adds a line to the version for the specified period.
6-16 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
If a version is time-phased by PA periods, then the value specified for the
parameter P_PERIOD_NAME must map to a PA period. Likewise, if a version
is time-phased by GL periods, then the value specified for P_PERIOD_NAME
must map to a GL period.
If the value specified for P_PERIOD_NAME is invalid, then the procedure will
abort.
• If Descriptive Flexfields are defined, then you can pass them as IN parameters.
• All business rules for adding a line to a version for a budget type or a financial plan
type in the user interface are applicable when you use this procedure.
Budget Types
• The following parameters are not used for planning with budget types:
• P_FIN_PLAN_TYPE_ID
• P_FIN_PLAN_TYPE_NAME
• P_VERSION_NUMBER
• P_VERSION_TYPE
• P_CURRENCY_CODE
• You cannot use this procedure to add a budget line for a forecast budget type.
• The task level at which you specify budget information should correspond to the
level specified in the budget entry method. For example, if the budget entry method
specifies that you can enter a budget only at the lowest task level, then this
procedure should pass only lowest tasks.
• When the budget entry method (BEM) restricts entry of a certain field as shown in
the following table, do not specify values for the corresponding parameter.
• If a project and a budget type are enabled for budgetary controls, then you cannot
add a budget line for a GL period that is after the latest encumbrance year defined
in the ledger associated with the project.
• The task level at which you specify plan information should correspond to the level
specified in the planning level of a budget or forecast version. For example, if the
planning level specifies that you can enter a budget or forecast at the top task level,
then this procedure should pass only top task and project-level budget and forecast
6-18 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
amounts.
• You cannot use this procedure to add a line under the following conditions:
• If the option to allow edit after initial baseline is not enabled for the financial
plan type, then you cannot modify a working version after you create a
baseline.
• A workplan version
• When the amount entry options restrict entry of certain fields as shown in the
following table, do not specify values for the corresponding parameters. In these
cases, the budget or forecast is created with the specified amount entry options and
edit of the corresponding quantities and amounts is not allowed.
Cost quantity not enterable p_quantity (used when the version is for
cost only)
Revenue quantity not enterable p_quantity (used when the version is for
revenue only)
Quantity not enterable p_quantity (used when cost and revenue are
planned together in the same version)
Parameters
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual. The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_PM_PRODUCT_CODE
BASELINE_BUDGET
BASELINE_BUDGET is a PL/SQL procedure used to create a baseline for an existing
budget in Oracle Projects for either a project and budget type, or a project and financial
plan type.
Business Rules
• The following parameters are used for planning with financial plan types. These
parameters are not used for planning with budget types.
• P_FIN_PLAN_TYPE_ID
• P_FIN_PLAN_TYPE_NAME
• P_VERSION_TYPE
• You must set up funding in Oracle Projects before you can create a baseline for a
revenue budget.
• If you have not yet submitted a budget, Oracle Projects submits it automatically
before creating a baseline.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual. The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
6-20 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• P_PM_PRODUCT_CODE
• P_BUDGET_TYPE_CODE
CALCULATE_AMOUNTS
CALCULATE_AMOUNTS is a PL/SQL procedure used to recalculate raw cost,
burdened cost, and revenue amounts for lines in a draft or working version in Oracle
Projects for either a project and a budget type, or a project and financial plan type. This
procedure uses the Budget Calculation Extension (PA_CLIENT_EXTN_BUDGET) to
perform the calculations.
Business Rules
This section describes general business rules, and rules for using this procedure with
versions created for budget types and for financial plan types.
General Rules
• You can recalculate amounts only for draft or working versions. You cannot
recalculate amounts for submitted or baseline versions. You cannot use this
procedure to recalculate amounts for an approved revenue budget version if the
autobaseline feature is enabled.
• To call this procedure, you must specify the project identifier (either
P_PA_PROJECT_ID or P_PM_PROJECT_REFERENCE), and one of the following
budget/forecast identifiers:
• P_BUDGET_VERSION_ID
• BUDGET_TYPE_CODE
• P_FIN_PLAN_TYPE_ID or P_FIN_PLAN_TYPE_NAME
• For rate-based planning transactions, the raw cost rate is set to the returned raw
cost value divided by the quantity.
• For non-rate based planning transactions from revenue and cost plans, the bill
rate is set to the returned revenue value divided by the quantity.
• For rate-based planning transactions, the bill rate is set to the returned revenue
value divided by the quantity.
• To specify amounts to recalculate, set the value of one or more of the following
parameters to Y:
• P_CALC_RAW_COST_YN
• P_CALC_BURDENED_COST_YN
• P_CALC_REVENUE_YN
Budget Types
• The following parameters are not used for planning with budget types:
• P_FIN_PLAN_TYPE_ID
• P_FIN_PLAN_TYPE_NAME
• P_VERSION_TYPE
• P_BUDGET_VERSION_NUMBER
• If a project and a budget type are enabled for budgetary controls, and the value for
the parameter P_UPDATE_DB_FLAG is set to Y, then Oracle Projects does not
recalculate budget lines for GL periods that are after the latest encumbrance year
6-22 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
defined in the ledger associated with the project.
• You must specify a value for the parameter P_VERSION_TYPE if cost and revenue
are planned separately.
• You cannot use this procedure to recalculate amounts for a working version under
the following conditions:
• If the option to allow edit after initial baseline is not enabled for the financial
plan type, then you cannot modify a working version after you create a
baseline.
• A workplan version
• For forecast versions that are time-phased by periods, this procedure recalculates
amounts for lines that do not have actual amounts (where the value of the
parameter P_BUDGET_START_DATE is after the ETC start date). If a forecast
version is not time-phased by periods, then this procedure recalculates amounts for
all lines, including lines with actual amounts.
Parameters
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual. The required parameters for this procedure are listed below:
• P_PM_PRODUCT_CODE
Business Rules
• The following parameters are used for planning with financial plan types. These
parameters are not used for planning with budget types.
• Plan type identifier and plan type name parameters
• P_TIME_PHASED_CODE
• P_PLAN_IN_MULTI_CURR_FLAG
• Currency attributes
• Flags for raw cost, burdened cost, revenue, quantity planning, create current
working version, replace current working version
• P_USING_RESOURCE_LISTS_FLAG
• A draft budget requires approval before you can create a baseline. After you use
this API to create a draft budget and budget lines, save the data to the database
before calling the API BASELINE_BUDGET. For a revenue budget, enter the
funding in Oracle Projects before you can create a baseline.
• We establish the following links between information stored in your system and
certain information in Oracle Projects, so you can pass the following parameters
instead of their corresponding Oracle Projects identification codes.
• For budgets: P_PM_PROJECT_REFERENCE links to P_PA_PROJECT_ID.
P_RESOURCE_LIST_NAMElinks to P_RESOURCE_LIST_ID.
• Products that call budget APIs must specify their respective product codes. Oracle
Projects predefines product codes and provides these codes to the appropriate
vendors.
6-24 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• The following pairs of parameters can both have NULL values if the budget is not
categorized by resources, as defined by the budget entry method or financial
planning option:
• P_RESOURCE_LIST_NAME and P_RESOURCE_LIST_ID
• You can specify a value for the PERIOD_NAME parameter only when budgeting by
PA or GL period, as defined by the budget entry method or financial planning
option.
• When you budget by date range, you must provide the budget start and end dates.
These dates may not overlap for a certain resource assignment.
Note: You cannot budget by date range for budgets that you create
for financial plan types.
• The task level at which you pass budget information should correspond to the level
specified in the budget entry method. For example, for budgets that you create for
budget types, if the budget entry method specifies that you can enter a budget only
at the lowest task level, then this API passes only lowest tasks.
• When the budget entry method (BEM) flags shown in the following table are set to
N, do not pass the related parameters.
cost_quantity_flag quantity
raw_cost_flag raw_cost
burdened_cost_flag burdened_cost
rev_quantity_flag quantity
revenue_flag revenue
• Your budget entry method must reflect the needs of your external system.
• You can specify a value for the parameter P_REVENUE_AMOUNT only for a
revenue budget, as defined by the budget type or financial plan type.
• If a draft budget already exists for a project and budget type, creating a new draft
budget deletes the existing budget and budget lines.
• If a working budget or forecast version exists for a project and financial plan type,
creating a new working budget or forecast version with
P_CREATE_NEW_CURR_WORKING_FLAG set to N creates a new working
budget or forecast version with budget lines.
• If a current working budget or forecast version exists for a project and financial plan
type, creating a new working budget or forecast version with
P_CREATE_NEW_CURR_WORKING_FLAG set to Y marks the newly created
budget or forecast version as Current Working.
• If a current working budget or forecast version exists for a project and financial plan
type, creating a new working budget or forecast version with
P_REPLACE_CURRENT_WORKING_FLAG set to Y deletes the existing Current
Working budget or forecast version and budget lines, and marks the newly created
budget or forecast version as Current Working.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual. The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_PM_PRODUCT_CODE
• P_BUDGET_TYPE_CODE
6-26 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• P_ENTRY_METHOD_CODE
CREATE_DRAFT_FINPLAN
CREATE_DRAFT_FINPLAN creates draft budgets and forecasts for financial plan types
and is similar to CREATE_DRAFT_BUDGET. This procedure accepts summary data at
the project, task, resource, and currency levels. For budget and forecast versions that are
time-phased by PA or GL period, the API also spreads the data, including quantities
and amounts, across periods based on the spread curve associated with a resource. No
other edit or modification of data is performed by this procedure. The validations and
function security for this procedure are similar to that for CREATE_DRAFT_BUDGET.
• burdened cost
• revenue
Business Rules
• A draft budget requires approval before you can create a baseline. After you use
this API to create a draft budget and budget lines, save the data to the database
before calling the API BASELINE_BUDGET. For a revenue budget, you must enter
the funding in Oracle Projects before you can create a baseline for the budget.
• We establish the following links between information stored in your system and
certain information in Oracle Projects. Therefore, you can pass the following
parameters instead of their corresponding Oracle Projects identification codes:
• For budgets: P_PM_PROJECT_REFERENCE links to P_PA_PROJECT_ID.
P_RESOURCE_LIST_NAME links to P_RESOURCE_LIST_ID.
• Products that call budget APIs must specify their respective product codes. Oracle
Projects predefines product codes and provides these codes to the appropriate
vendors.
• If the financial plan type associated with the project specifies that cost and revenue
are planned separately, then you must specify whether the budget or forecast
version is to be created as a cost version or a revenue version. Otherwise, you do
not need to pass the value for P_VERSION_TYPE. If passed, the value should
correspond to the value defined for the financial plan type.
• You can specify whether planning in multiple currencies is enabled for the budget
or forecast version using P_PLAN_IN_MULTI_CURR_FLAG. If this parameter is
not passed, then the system uses the value defined for the financial plan type.
• You can specify the planning level of the budget or forecast. If this parameter is not
passed, then the system uses the value defined for the financial plan type.
• If the plan amounts created using this API are not classified using a resource list,
then you must set the value of P_USING_RESOURCE_LISTS_FLAG to N.
• When the amount entry fields shown in the following table are set to N, do not pass
the related parameters. In this case, the budget or forecast is created with the
corresponding amount entry options and edit of these quantities and amounts is
not possible.
raw_cost_flag raw_cost
6-28 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Amount Entry Field Related Parameter
burdened_cost_flag burdened_cost
revenue_flag revenue
• You can specify a value for the parameter P_REVENUE_AMOUNT only for a
budget or forecast for which the financial plan type allows planning for revenue, or
planning for cost and revenue together.
• If descriptive Flexfields are defined for a budget version, you can pass them in as
parameters.
• The task level at which you pass budget information should correspond to the level
specified in the planning level of a budget or forecast. For example, if the planning
level specifies that you can enter a budget at the top task level, then this API passes
top tasks and project level budget and forecast amounts.
• If descriptive Flexfields are defined for a resource assignment, you can pass them in
as parameters.
• A draft budget does not require you to create budget lines simultaneously.
• For budgets or forecasts created using financial plan types, multiple working
versions can exist along with one current working version. The
P_CREATE_NEW_CURR_WORKING_FLAG and
P_REPLACE_CURRENT_WORKING_FLAG parameters determine whether the
new budget version is created as a current working version and whether the new
version replaces (deletes) the existing current working version.
• If a current working budget or forecast version exists for a project and financial
plan type, creating a new working budget or forecast version with
P_CREATE_NEW_CURR_WORKING_FLAG set to Y marks the newly created
budget or forecast version as Current Working.
• If a current working budget or forecast version exists for a project and financial
plan type, creating a new working budget or forecast version with
P_REPLACE_CURRENT_WORKING_FLAG set to Y deletes the existing
Current Working budget or forecast version and budget lines, and marks the
newly created budget or forecast version as Current Working.
• All business rules for creating a budget or forecast version for a financial plan type
are applicable when using this API. For example, if the Current Working version is
locked by another user, and P_CREATE_NEW_CURR_WORKING_FLAG or
P_REPLACE_CURRENT_WORKING_FLAG parameters are set to Y, then an
appropriate message is returned that the Current Working version is locked and
cannot be replaced or deleted.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual. The required parameters for this procedure are listed below:
• P_PM_PRODUCT_CODE
• P_BUDGET_VERSION_NAME
DELETE_BASELINE_BUDGET
DELETE_BASELINE_BUDGET is a PL/SQL procedure used to delete a baseline version
in Oracle Projects for either a project and budget type, or a project and financial plan
type.
Business Rules
This section describes general business rules, and rules for using this procedure with
versions created for budget types and for financial plan types.
General Rules
• For budgets that do not use budgetary controls, you can use this procedure to
delete any baseline version except the following:
6-30 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• Current (latest version)
• Current Original
• For budgets that use budgetary controls, you can use this procedure to delete any
baseline version except the following:
• Current (latest version)
• If budgetary control balances exist, the version previous to the Current version
• Current Original
• You cannot use this procedure to delete draft or working versions and submitted
versions.
• Oracle Projects establishes the following links between information stored in your
system and certain information in Oracle Projects. You can use the following
parameters instead of their corresponding Oracle Projects identification codes:
• P_PM_PROJECT_REFERENCE links to P_PA_PROJECT_ID.
• Products that call budget APIs must specify their respective product codes. Oracle
Projects predefines product codes and provides these codes to the appropriate
vendors.
• To delete a baseline version and its corresponding lines, you must specify a value
for the parameter P_VERSION_NUMBER.
• If you specify a value for a current original or current baseline version, then the
procedure will abort.
• If budgetary controls are enabled and you specify a value for a previous
baseline version that has budgetary control balances, then the procedure will
abort.
Budget Types
• The following parameters are not used for planning with budget types:
• P_FIN_PLAN_TYPE_ID
• P_FIN_PLAN_TYPE_NAME
• P_VERSION_TYPE
• You cannot use this procedure to delete a baseline version for a forecast budget
type.
• The following parameter is not used for planning with financial plan types:
• P_BUDGET_TYPE_CODE
• You must specify a value for the parameter P_VERSION_TYPE if cost and revenue
are planned separately.
• You cannot use this procedure to delete a baseline version under the following
conditions:
• A version for an organization forecast
• A workplan version
Parameters
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual. The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_PM_PRODUCT_CODE
6-32 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• P_BUDGET_TYPE_CODE
• P_FIN_PLAN_TYPE_ID
• P_VERSION_TYPE
• P_VERSION_NUMBER
DELETE_BUDGET_LINE
DELETE_BUDGET_LINE is a PL/SQL procedure used to delete a line from a draft or
working version in Oracle Projects for either a project and budget type, or a project and
financial plan type.
Business Rules
This section describes general business rules, and rules for using this procedure with
versions created for budget types and for financial plan types.
General Rules
• After you use DELETE_BUDGET_LINE to delete one or more lines from a draft or
working version, save the data before you call the procedure BASELINE_BUDGET.
(A working version may require approval before you can create a baseline.)
• You can delete lines only from draft or working versions. You cannot delete lines
from a submitted or baseline version. You cannot delete lines from an approved
revenue budget working version if the autobaseline feature is enabled.
• Oracle Projects establishes the following links between information stored in your
system and certain information in Oracle Projects. You can use the following
parameters instead of their corresponding Oracle Projects identification codes:
• P_PM_PROJECT_REFERENCE links to P_PA_PROJECT_ID.
• Products that call budget APIs must specify their respective product codes. Oracle
Projects predefines product codes and provides these codes to the appropriate
vendors.
• You do not need to specify values for the following pair of parameters if the version
is not categorized by resources:
• Oracle Projects does not validate a date value specified for the parameter
P_START_DATE.
• All business rules for deleting a line from a version for a budget type or a financial
plan type in the user interface are applicable when you use this procedure.
Budget Types
• The following parameters are not used for planning with budget types:
• P_FIN_PLAN_TYPE_ID
• P_FIN_PLAN_TYPE_NAME
• P_VERSION_NUMBER
• P_VERSION_TYPE
• P_CURRENCY_CODE
• You cannot use this procedure to delete a budget line for a forecast budget type.
• If values are specified for the parameter P_START_DATE and the parameter
P_PERIOD_NAME, then the procedure uses P_PERIOD_NAME to derive the start
date.
• If no task data is specified, then Oracle Projects assumes that the budget entry
6-34 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
method specifies uncategorized budgeting (budgets not tracked by resource)
and project-level budgeting.
• You must specify a value for the parameter P_VERSION_TYPE if cost and revenue
are planned separately.
• You cannot use this procedure to delete a line under the following conditions:
• If the option to allow edit after initial baseline is not enabled for the financial
plan type, then you cannot modify a working version after you create a
baseline.
• A workplan version
• Depending on the planning options defined for the version, this procedure may
require you to specify task and resource data.
• You must specify a value for the parameter P_CURRENCY_CODE if you are
• If you specify a value for the parameter P_CURRENCY_CODE, and do not specify
values for the parameters P_START_DATE and P_PERIOD_NAME, then the
procedure deletes all lines for the specified currency code and task/resource
combination.
Parameters
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual. The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_PM_PRODUCT_CODE
The parameters that identify the version and line are listed below:
• P_PA_PROJECT_ID
• P_BUDGET_TYPE_CODE
• P_FIN_PLAN_TYPE_ID
• P_VERSION_TYPE
• P_VERSION_NUMBER
• P_PA_TASK_ID
• P_RESOURCE_LIST_MEMBER_ID
• P_CURRENCY_CODE
• P_START_DATE
• P_PERIOD_NAME
6-36 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
DELETE_DRAFT_BUDGET
DELETE_DRAFT_BUDGET is a PL/SQL procedure used to delete a draft or working
version in Oracle Projects for either a project and budget type, or a project and financial
plan type.
Business Rules
This section describes general business rules, and rules for using this procedure with
versions created for budget types and for financial plan types.
General Rules
• You can delete only draft or working versions. You cannot delete a submitted or
baseline version. You cannot delete an approved revenue budget working version if
the autobaseline feature is enabled.
• Oracle Projects establishes the following links between information stored in your
system and certain information in Oracle Projects. You can use the following
parameters instead of their corresponding Oracle Projects identification codes:
• P_PM_PROJECT_REFERENCE links to P_PA_PROJECT_ID.
• Products that call budget APIs must specify their respective product codes. Oracle
Projects predefines product codes and provides these codes to the appropriate
vendors.
• All business rules for deleting a draft or working version for a budget type or a
financial plan type in the user interface are applicable when you use this procedure.
Budget Types
• The following parameters are not used for planning with budget types:
• P_FIN_PLAN_TYPE_ID
• P_FIN_PLAN_TYPE_NAME
• P_VERSION_NUMBER
• P_VERSION_TYPE
• You cannot use this procedure to delete a working version for a forecast budget
type.
• You must specify a value for the parameter P_VERSION_TYPE if cost and revenue
are planned separately.
• You cannot use this procedure to delete a working version under the following
conditions:
• If the option to allow edit after initial baseline is not enabled for the financial
plan type, then you cannot delete a working version after you create a baseline.
• A workplan version
Parameters
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual. The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_PM_PRODUCT_CODE
• P_BUDGET_TYPE_CODE
• P_FIN_PLAN_TYPE_ID
• P_VERSION_TYPE
6-38 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• P_VERSION_NUMBER
GET_PROJECT_ID
To retrieve information about all the financial plan types attached to a project, the
project context must be set. GET_PROJECT_ID returns the PROJECT_ID for the project
in context used by the public view PA_FINPLAN_TYPES_V. This view is used by
Oracle Project Connect.
SET_PROJECT_ID
SET_PROJECT_ID used to set thepublic variable G_PROJECT_ID which is used by
public view PA_FINPLAN_TYPES_V. This view is used by Oracle Project Connect.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
The required parameters for SET_PROJECT_ID are listed below:
• P_PROJECT_ID
UPDATE_BUDGET
UPDATE_BUDGET is a PL/SQL procedure used to update a draft or working version in
Oracle Projects for either a project and budget type, or a project and financial plan type.
This procedure updates existing lines or inserts new lines, depending on whether lines
already exist.
This API uses composite datatypes. For more information, see APIs That Use
Composite Datatypes, page 2-22.
Business Rules
This section describes general business rules, and rules for using this procedure with
versions created for budget types and for financial plan types.
General Rules
• After you use UPDATE_BUDGET to update a draft or working version, save the
data before you call the procedure BASELINE_BUDGET. (A working version may
require approval before you can create a baseline.)
• You can update only draft or working versions. You cannot update submitted or
baseline versions. You cannot update an approved revenue budget working version
if the autobaseline feature is enabled.
• With respect to lines, you can use this procedure only to update existing lines or to
• Oracle Projects establishes the following links between information stored in your
system and certain information in Oracle Projects. You can use the following
parameters instead of their corresponding Oracle Projects identification codes:
• P_PM_PROJECT_REFERENCE links to P_PA_PROJECT_ID.
• Products that call budget APIs must specify their respective product codes. Oracle
Projects predefines product codes and provides these codes to the appropriate
vendors.
• You do not need to specify values for the following pair of parameters if the version
is not categorized by resources:
• RESOURCE_ALIAS and RESOURCE_LIST_MEMBER_ID
• The following rules apply for versions that are time-phased by PA or GL periods:
• If a valid value is specified for the parameter PERIOD_NAME, then this
procedure updates the line for the specified period.
If a version is time-phased by PA periods, then the value specified for the
parameter PERIOD_NAME must map to a PA period. Likewise, if a version is
time-phased by GL periods, then the value specified for PERIOD_NAME must
map to a GL period.
If the value specified for PERIOD_NAME is invalid, then the procedure will
abort.
6-40 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
a version is time-phased GL periods, then the value for the parameter
BUDGET_START_DATE must map to the start date of a GL period.
If Oracle Projects cannot determine a valid period name, then the procedure
will abort.
• If Descriptive Flexfields are defined, then you can pass them as IN parameters.
• All business rules for updating a version for a budget type or a financial plan type
in the user interface are applicable when you use this procedure.
Budget Types
• The following parameters are not used for planning with budget types:
• P_FIN_PLAN_TYPE_ID
• P_FIN_PLAN_TYPE_NAME
• P_BUDGET_VERSION_NUMBER
• P_VERSION_TYPE
• TXN_CURRENCY_CODE
• You cannot use this procedure to update a budget version or budget lines for a
forecast budget type.
• The task level at which you specify budget information should correspond to the
level specified in the budget entry method. For example, if the budget entry method
specifies that you can enter a budget only at the lowest task level, then this
procedure should pass only lowest tasks.
• When the budget entry method (BEM) restricts entry of a certain field as shown in
the following table, do not specify values for the corresponding parameter.
• If a project and a budget type are enabled for budgetary controls, then you cannot
update or add budget lines for GL periods that are after the latest encumbrance
year defined in the ledger associated with the project.
• The task level at which you specify plan information should correspond to the level
specified in the planning level of a budget or forecast version. For example, if the
planning level specifies that you can enter a budget or forecast at the top task level,
then this procedure should pass only top task and project-level budget and forecast
amounts.
• You cannot use this procedure to update a working version under the following
conditions:
• If the option to allow edit after initial baseline is not enabled for the financial
plan type, then you cannot modify a working version after you create a
baseline.
6-42 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• A budget or forecast version has processing errors
• A workplan version
• When the amount entry options restrict entry of certain fields as shown in the
following table, do not specify values for the corresponding parameters. In these
cases, the budget or forecast is created with the specified amount entry options and
edit of the corresponding quantities and amounts is not allowed.
Cost quantity not enterable quantity (used when the version is for cost
only)
Revenue quantity not enterable quantity (used when the version is for
revenue only)
Quantity not enterable quantity (used when cost and revenue are
planned together in the same version)
• You can specify values for the parameters RAW_COST and BURDENED_COST
only for budgets or forecasts for which the financial plan type allows planning for
cost, or for cost and revenue together in the same version.
• You can specify a value for the parameter REVENUE only for a budget or forecast
for which the financial plan type allows planning for revenue, or for cost and
revenue together in the same version.
Parameters
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual. The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
Parameter in this procedure that identify the version and line are listed below:
• P_PA_PROJECT_ID
• P_BUDGET_TYPE_CODE
• P_FINPLAN_TYPE_ID
• P_VERSION_TYPE
• P_BUDGET_VERSION_NUMBER
_MEMBER_ID*
(30)
6-44 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Name Usage Type Req? Description
(255)
(30)
6-46 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
P_BUDGET_LINES_OUT shown in the parameters table.
UPDATE_BUDGET_LINE
UPDATE_BUDGET_LINE is a PL/SQL procedure used to update a line for a draft or
working version in Oracle Projects for either a project and budget type, or a project and
financial plan type.
Business Rules
This section describes general business rules, and rules for using this procedure with
versions created for budget types and for financial plan types.
General Rules
• After you use UPDATE_BUDGET_LINE to update a line for a draft or working
version, save the data before you call the procedure BASELINE_BUDGET. (A
working version may require approval before you can create a baseline.)
• You can update lines only for draft or working versions. You cannot update lines
for submitted or baseline versions. You cannot update lines for an approved
revenue budget working version if the autobaseline feature is enabled.
• Oracle Projects establishes the following links between information stored in your
system and certain information in Oracle Projects. You can use the following
parameters instead of their corresponding Oracle Projects identification codes:
• P_PM_PROJECT_REFERENCE links to P_PA_PROJECT_ID.
• Products that call budget APIs must specify their respective product codes. Oracle
Projects predefines product codes and provides these codes to the appropriate
vendors.
• You do not need to specify values for the following pair of parameters if the version
is not categorized by resources:
• The following rules apply for versions that are time-phased by PA or GL periods:
• If a valid value is specified for the parameter P_PERIOD_NAME, then this
procedure updates the line for the specified period.
If a version is time-phased by PA periods, then the value specified for the
parameter P_PERIOD_NAME must map to a PA period. Likewise, if a version
is time-phased by GL periods, then the value specified for P_PERIOD_NAME
must map to a GL period.
If the value specified for P_PERIOD_NAME is invalid, then the procedure will
abort.
• If Descriptive Flexfields are defined, then you can pass them as IN parameters.
• All business rules for updating lines for a budget type or a financial plan type in the
user interface are applicable when you use this procedure.
Budget Types
• The following parameters are not used for planning with budget types:
• P_FIN_PLAN_TYPE_ID
6-48 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• P_FIN_PLAN_TYPE_NAME
• P_VERSION_NUMBER
• P_VERSION_TYPE
• P_CURRENCY_CODE
• You cannot use this procedure to update budget lines for a forecast budget type.
• The task level at which you specify budget information should correspond to the
level specified in the budget entry method. For example, if the budget entry method
specifies that you can enter a budget only at the lowest task level, then this
procedure should pass only lowest tasks.
• When the budget entry method (BEM) restricts entry of a certain field as shown in
the following table, do not specify values for the corresponding parameter.
• If a project and a budget type are enabled for budgetary controls, then you cannot
update or add budget lines for GL periods that are after the latest encumbrance
year defined in the ledger associated with the project.
• The task level at which you specify plan information should correspond to the level
specified in the planning level of a budget or forecast version. For example, if the
planning level specifies that you can enter a budget or forecast at the top task level,
then this procedure should pass only top task and project-level budget and forecast
amounts.
• You cannot use this procedure to update a working version under the following
conditions:
• If the option to allow edit after initial baseline is not enabled for the financial
plan type, then you cannot modify a working version after you create a
baseline.
• A workplan version
• When the amount entry options restrict entry of certain fields as shown in the
following table, do not specify values for the corresponding parameters. In these
cases, the budget or forecast is created with the specified amount entry options and
edit of the corresponding quantities and amounts is not allowed.
Cost quantity not enterable p_quantity (used when the version is for cost only)
6-50 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Amount Entry Option Setting Related Parameter
Revenue quantity not enterable p_quantity (used when the version is for revenue only)
Quantity not enterable p_quantity (used when cost and revenue are planned together in
the same version)
• You can specify a value for the parameter P_REVENUE only for a budget or
forecast for which the financial plan type allows planning for revenue, or for cost
and revenue together in the same version.
Parameters
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual. The required parameters in this procedure are listed below:
• P_API_VERSION_NUMBER
• P_PM_PRODUCT_CODE
The parameters in this procedure that identify the version and line are listed below:
• P_PA_PROJECT_ID
• P_BUDGET_TYPE_CODE
• P_FIN_PLAN_TYPE_ID
• P_VERSION_TYPE
• P_VERSION_NUMBER
• P_PA_TASK_ID
• P_CURRENCY_CODE
• P_BUDGET_START_DATE
• P_PERIOD_NAME
CLEAR_BUDGET
CLEAR_BUDGET is a Load-Execute-Fetch procedure used to clear the global data
structures set up during the Initialize step.
CLEAR_CALCULATE_AMOUNTS
CLEAR_CALCULATE_AMOUNTS is a Load-Execute-Fetch procedure used to reset the
global data structures used by the Load-Execute-Fetch procedure
CALCULATE_AMOUNTS. The procedure CALCULATE_AMOUNTS calls
CLEAR_CALCULATE_AMOUNTS to.initialize the data structure that is used to fetch
the calculated amounts for a plan version.
.
EXECUTE_CALCULATE_AMOUNTS
EXECUTE_CALCULATE_AMOUNTS is a Load-Execute-Fetch procedure used to
calculate the raw cost, burdened cost, and revenue amounts using existing budget lines
for a given project and budget type, or financial plan type. For each budget line, this
API writes to globals that can be read by the API FETCH_CALCULATE_AMOUNTS.
Business Rules
• The following parameters are used only for budgets that are created for a financial
plan type:
• P_BUDGET_VERSION_ID
• P_FIN_PLAN_TYPE_ID
• P_FIN_PLAN_TYPE_NAME
• P_VERSION_TYPE
• P_BUDGET_VERSION_NUMBER
6-52 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• You must pass an uppercase 'Y' for each calculation flag to recalculate the
corresponding amount.
• Regardless of its update status, this API returns one row of amounts for each
budget line it reads.
• To update the budget lines for a project with the calculated amounts generated
from this API, you must set the P_UPDATE_DB_FLAG to an uppercase 'Y'.
• This API returns the total number of budget lines processed in the OUT parameter
P_TOT_BUDGET_LINES_CALCULATED. This total determines how many times
to call FETCH_CALCULATE_AMOUNTS in a loop.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual. The required parameters for EXECUTE_CALCULATE_AMOUNTS are
listed below:
• P_API_VERSION_NUMBER
• P_PM_PRODUCT_CODE
• P_BUDGET_TYPE_CODE
EXECUTE_CREATE_DRAFT_BUDGET
EXECUTE_CREATE_DRAFT_BUDGET is used to create a budget and its budget lines
using the data stored in the global tables during the Load process.
Business Rules
The following parameters are used for planning with financial plan types. These
parameters are not used for planning with budget types.
• Plan type identifier and plan type name parameters
• P_TIME_PHASED_CODE
• P_PLAN_IN_MULTI_CURR_FLAG
• Currency attributes
• Flags for raw cost, burdened cost, revenue, quantity planning, create current
working version, replace current working version
• P_USING_RESOURCE_LISTS_FLAG
• P_PM_PRODUCT_CODE
• P_BUDGET_TYPE_CODE
• P_ENTRY_METHOD_CODE
EXECUTE_CREATE_DRAFT_FINPLAN
EXECUTE_CREATE_DRAFT_FINPLAN creates budgets and forecasts using the data
stored in the global tables during the Load process. Before calling this procedure, you
should call LOAD_RESOURCE_INFO to load the resource information along with the
quantity and amounts required for budget and forecast line creation.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual. The required parameters for EXECUTE_CREATE_DRAFT_FINPLAN are
listed below:
• P_PM_PRODUCT_CODE
• P_BUDGET_VERSION_NAME
EXECUTE_UPDATE_BUDGET
EXECUTE_UPDATE_BUDGET is a Load-Execute-Fetch procedure used to update a
budget and its budget lines using the data stored in the global tables during the Load
process.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual. The required parameters for EXECUTE_UPDATE_BUDGET are listed
below:
• P_API_VERSION_NUMBER
• P_PM_PRODUCT_CODE
• P_BUDGET_TYPE_CODE
6-54 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
FETCH_BUDGET_LINE
FETCH_BUDGET_LINE is a Load-Execute-Fetch procedure used to retrieve the return
status returned during the creation of a budget line from a global PL/SQL table.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual. The required parameters for FETCH_BUDGET_LINE are listed below:
• P_API_VERSION_NUMBER
• P_LINE_INDEX
FETCH_CALCULATE_AMOUNTS
FETCH_CALCULATE_AMOUNTS is a Load-Execute-Fetch procedure used to get the
raw cost, burdened cost, and revenue amounts by budget line from global records
updated by the API EXECUTE_CALCULATE_AMOUNTS.
Call this API in a loop for each calculated budget line using the API
EXECUTE_CALCULATE_AMOUNTS. The value the API
EXECUTE_CALCULATE_AMOUNTS returns for
P_TOT_BUDGET_LINES_CALCULATED determines how many times to call this API.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual. The required parameters for FETCH_CALCULATE_AMOUNTS are listed
below:
• P_API_VERSION_NUMBER
INIT_BUDGET
INIT_BUDGET is a Load-Execute-Fetch procedure used to set up the global data
structures that other Load-Execute-Fetch procedures use to create a new or update an
existing draft budget in Oracle Projects.
INIT_CALCULATE_AMOUNTS
INIT_CALCULATE_AMOUNTS is a Load-Execute-Fetch procedure used to set up the
global data structures used by the Load-Execute-Fetch API CALCULATE_AMOUNTS.
LOAD_BUDGET_LINE
LOAD_BUDGET_LINE is a Load-Execute-Fetch procedure used to load a budget line to
a global PL/SQL table.
The following parameters are used for planning with financial plan types. These
• Currency attributes
• P_CHANGE_REASON_CODE
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual. The required parameters for LOAD_BUDGET_LINE are listed below:
• P_API_VERSION_NUMBER
• P_TXN_CURRENCY_CODE
LOAD_RESOURCE_INFO
Call LOAD_RESOURCE_INFO before you call EXECUTE_CREATE_DRAFT_FINPLAN
to load resource information required to create a budget or forecast. This procedure
loads the resource information along with summary amounts to a global PL/SQL table
used by EXECUTE_CREATE_DRAFT_FINPLAN.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual. There are no required parameters for LOAD_RESOURCE_INFO.
• Most of the Oracle Projects APIs use a standard set of input and output parameters.
See Standard API Parameters, page 2-21.
• For an example of PL/SQL code that creates a budget using APIs that use composite
datatypes, see Creating a Budget Using a Composite Datatype API, page 6-66.
6-56 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Step 1: Connect to an Oracle Database
To ensure that proper security is enforced while accessing Oracle Projects data, follow
the steps in Security Requirements, page 2-8.
The statement returns C if you have chosen a cost budget, and R if you have chosen a
revenue budget. The following table illustrates the amounts each budget type can hold
and their relation to the parameters of LOAD_BUDGET_LINE:
Revenue P_REVENUE
6-58 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• For TIME_PHASED_TYPE_CODE P Budget lines by PA periods G Budget lines by
GL periods R Budget lines by date ranges N Budget lines not time-phased
The following table illustrates the relationship between certain selected values and
budget parameters. Pass only one of the two values:
RESOURCE_LIST_ID P_RESOURCE_LIST_ID
RESOURCE_LIST_NAME P_RESOURCE_LIST_NAME
The following table illustrates the relationship between certain selected values and
budget parameters:
CODE P_CHANGE_REASON_CODE
DESCRIPTION P_DESCRIPTION
Select Tasks
Depending on the budget entry level, the budget line should include the appropriate
TASK_ID or TASK_REFERENCE. With project-level budgeting, you do not pass
task-related parameters. With task-level budgeting (top, lowest, or mixed), you can use
the following SQL statements to retrieve valid task values:
• Budget at the top task level
SELECT task_id
, pm_task_reference
, task_number
, task_name
FROM pa_tasks
WHERE project_id = &project_id
AND parent_task_id IS NULL
The following table illustrates the relationship between certain selected values and
budget line parameters. Pass only one of the two values:
6-60 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Selected Value Budget Line Parameter
TASK_ID P_PA_TASK_ID
PM_TASK_REFERENCE P_PM_TASK_REFERENCE
The following table illustrates the relationship between certain of the selected values
and budget line parameters. Pass only one of the two values:
RESOURCE_LIST_MEMBER_ID P_RESOURCE_LIST_MEMBER_ID
ALIAS P_RESOURCE_ALIAS
Select Periods
How the budget entry method is time-phased affects which budget line parameters
accept passed values, as shown in the following table:
No Time-Phasing None
When you use time-phased budgeting, you can use the following SQL statements to
retrieve the appropriate date information:
• Period name
SELECT period_name
FROM pa_budget_periods_v
WHERE period_type_code = &time_phased_type_code
The following table illustrates the relationship between certain selected values and
budget line parameters. You can pass a value for either the PERIOD_NAME or both the
PERIOD_START_DATE and PERIOD_END_DATE:
PERIOD_NAME P_PERIOD_NAME
PERIOD_START_DATE P_BUDGET_START_DATE
PERIOD_END_DATE P_BUDGET_END_DATE
Select Descriptions
You do not need to pass a description for budget lines.
6-62 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
APIs. The Load-Execute-Fetch procedures include Initialize, Load, Execute, Fetch, and
Clear categories. For more information, see API Procedures, page 2-31.
• P_MSG_COUNT shows the number of errors detected during the execution of the
API.
If the API detects one error, the API returns the error message text. If the API detects
multiple errors, use GET_MESSAGES to retrieve the error messages. See
GET_MESSAGES, page 2-25.
If the error relates to a budget line, use FETCH_BUDGET_LINE to identify the line
causing the error. The API parameter P_LINE_RETURN_STATUS identifies the line by
returning either E (business rule violation) or U (unexpected error) for that line. (For
more information about the return status, see Standard API Parameters, page 2-21. If
you use FETCH_BUDGET_LINE for any other reason, it returns the error
NO_DATA_FOUND.
6-64 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
end if;
l_budget_lines_in_rec.quantity :=93;
l_budget_lines_in_rec.budget_start_date := '05–MAY–95';
l_budget_lines_in_rec.budget_end_date := '09–MAY–95';
l_budget_lines_in_rec.raw_cost :=300;
l_budget_lines_in(i) := l_budget_lines_in_rec;
END LOOP;
–––––––––––––––––––––––
––INIT_BUDGET
pa_budget_pub.init_budget;
–––––––––––––––––––––––
––LOAD_BUDGET_LINE
FOR i IN 1..a LOOP
pa_budget_pub.load_budget_line( p_api_version_number =>
l_api_version_number
,p_return_status => l_return_status
,p_pa_task_id => l_budget_lines_in(i).pa_task_id
,p_pm_task_reference => l_budget_lines_in(i).pm_task_reference
,p_resource_alias => l_budget_lines_in(i).resource_alias
,p_resource_list_member_id =>
l_budget_lines_in(i).resource_list_member_id
,p_budget_start_date => l_budget_lines_in(i).budget_start_date
,p_budget_end_date => l_budget_lines_in(i).budget_end_date
,p_period_name => l_budget_lines_in(i).period_name
,p_description => l_budget_lines_in(i).description
,p_raw_cost => l_budget_lines_in(i).raw_cost
,p_burdened_cost => l_budget_lines_in(i).burdened_cost
,p_revenue => l_budget_lines_in(i).revenue
,p_quantity => l_budget_lines_in(i).quantity );
END LOOP;
IF l_return_status != 'S'
THEN
RAISE API_ERROR;
END IF;
–––––––––––––––––––––––
––EXECUTE_CREATE_DRAFT_BUDGET
pa_budget_pub.execute_create_draft_budget
( p_api_version_number => l_api_version_number
,p_msg_count => l_msg_count
,p_msg_data => l_msg_data
,p_return_status => l_return_status
,p_pm_product_code => l_pm_product_code
,p_pa_project_id => l_pa_project_id
,p_pm_project_reference => l_pm_project_reference
,p_budget_type_code => l_budget_type_code
,p_change_reason_code => l_change_reason_code
,p_description => l_description
,p_entry_method_code => l_entry_method_code
,p_resource_list_name => l_resource_list_name
,p_resource_list_id => l_resource_list_id );
IF l_return_status != 'S'
THEN
null; ––RAISE API_ERROR;
END IF;
–––––––––––––––––––––––
––FETCH_LINE
FOR l_line_index in
1..PA_BUDGET_PUB.G_budget_lines_tbl_count LOOP
pa_budget_pub.fetch_budget_line( p_api_version_number =>
l_api_version_number
,p_return_status => l_return_status
6-66 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
DECLARE
––variables needed for API standard parameters
l_api_version_number NUMBER :=1.0;
l_commit VARCHAR2(1):= 'F';
l_return_status VARCHAR2(1);
l_init_msg_list VARCHAR2(1);
l_msg_count NUMBER;
l_msg_data VARCHAR2(2000);
l_data VARCHAR2(2000);
l_msg_entity VARCHAR2(100);
l_msg_entity_index NUMBER;
l_msg_index NUMBER;
l_msg_index_out NUMBER;
l_encoded VARCHAR2(1);
i NUMBER;
a NUMBER;
––variables needed for Oracle Projects–specific parameters
l_pm_product_codeVARCHAR2(10);
l_pa_project_id NUMBER;
l_pm_project_reference VARCHAR2(25);
l_budget_type_code VARCHAR2(30);
l_version_name VARCHAR2(30);
l_change_reason_code VARCHAR2(30);
l_description VARCHAR2(255);
l_entry_method_code VARCHAR2(30);
l_resource_list_name VARCHAR2(60);
l_resource_list_id NUMBER;
l_budget_lines_inpa_budget_pub.budget_line_in_tbl_type;
l_budget_lines_in_rec pa_budget_pub.budget_line_in_rec_type;
l_budget_lines_out pa_budget_pub.budget_line_out_tbl_type;
l_line_index NUMBER;
l_line_return_status VARCHAR2(1);
API_ERROR EXCEPTION;
BEGIN
––PRODUCT RELATED DATA
l_pm_product_code :='SOMETHING';
––BUDGET DATA
l_pm_project_reference := 'PROJECT_NAME';
l_budget_type_code := 'AC'; '––AR'; ––
l_change_reason_code := 'ESTIMATING ERROR';
l_description := 'New description 2';
l_version_name := 'New version ';
l_entry_method_code := 'PA_LOWEST_TASK_BY_DATE_RANGE';
l_resource_list_id := 1014;
––BUDGET LINES DATA
a := 5;
FOR i IN 1..a LOOP
if i = 1 THEN
l_budget_lines_in_rec.pa_task_id := 2440;
l_budget_lines_in_rec.resource_list_member_id := 1401;
elsif i = 2 THEN
l_budget_lines_in_rec.resource_list_member_id := 1402;
l_budget_lines_in_rec.pa_task_id := 2443;
elsif i = 3 THEN
l_budget_lines_in_rec.resource_list_member_id := 1404;
l_budget_lines_in_rec.pa_task_id := 2446;
elsif i = 4 THEN
l_budget_lines_in_rec.resource_list_member_id := 1407;
l_budget_lines_in_rec.pa_task_id := 2449;
elsif i = 5 THEN
l_budget_lines_in_rec.resource_list_member_id := 1408;
6-68 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
dbms_output.put_line ('error mesg '||l_data);
end loop;
END;
/
• Refresh Cost and Bill Rates for People and Equipment: If your company updates
its cost and bill rate schedules, you can keep planning transaction amounts on all
projects current by using this API to refresh the cost and bill rates for people and
equipment on projects.
• Refresh Rates on a Project Created from a Source Project: When you create a
project from a source project that has a defined workplan structure, the cost rates
and bill rates are copied from the source project. The new project may use a
different cost or bill rate schedule, or may have different currency conversion
options. This API enables you to refresh rates on the newly created project.
REFRESH_RATES
The refresh rates procedure enables you to refresh conversion rates, cost rates, and bill
rates in both workplans and financial plans. The internal name of the procedure is
pa_fp_calc_plan_pub.refresh_rates. The procedure is contained in the public API
package PA_FP_CALC_PLAN_PUB.
Business Rules
• You must supply a value for either P_PROJECT_ID or
P_PM_PROJECT_REFERENCE. (These parameters have "Conditional" indicated in
the "Required?" column.)
• P_BUDGET_VERSION_NUMBER
• P_FINPLAN_TYPE_ID
• P_FINPLAN_TYPE_NAME
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual. The required parameters for this procedure are listed below:
• P_API_VERSION_NUMBER
• P_PM_PRODUCT_CODE
• P_UPDATE_PLAN_TYPE
Status APIs
Use your external system to calculate and monitor the progress of your project in terms
of earned value and percentage complete. Then use the status APIs to report project
status inquiry (and billing, if required) to Oracle Projects.
6-70 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Note: Project status inquiry does not report budgets created using
financial plan types. Consequently, the status APIs and views related to
budgeting and forecasting listed below only report and process budgets
and forecasts created using budget types.
Using the status views described in this section, you can display actual and budgeted
amounts in various formats:
• GL period
• PA period
• Resource
• Burden components
• Track as labor
The values for the summarization attributes are hard-coded in a view that is used for
mapping actuals to resources. The client can change the values by changing the view.
The logic of the view is outlined in the two following tables. The following table shows
the logic of the view as it relates to predefined resource types.
Supplier No blank No
The following table shows the logic of the view as it relates to predefined resources.
Unclassified No blank No
By defining the uncategorized resource as tracking labor, the client can budget labor
hours when entering the uncategorized budget.
To facilitate conditional labor hour and quantity queries on resources,
TRACK_AS_LABOR_FLAG is also maintained in the resource member list table. You
can query TRACK_AS_LABOR_FLAG column via the PA_RESOURCE_LIST_V view.
6-72 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
To write a select statement on a project-level resource view, you can write a SQL
statement similar to the following to conditionally return either labor hours or
quantities by resource:
SELECT rl.resource_alias List
, decode(rl.resource_track_as_labor_flag,'Y',
ara.actuals_labor_hours_itd,
'N', ara.actuals_quantity_itd, 0) Units
, ara.actuals_labor_hours_itd Hours
, ara.actuals_quantity_itd Qty
FROM pa_resource_list_v rl
, pa_accum_rsrc_act_v ara
WHERE ara.resource_list_member_id =
rl.resource_list_member_id
AND rl.resource_list_id = 1000
AND ara.project_id = 1043
AND ara.task_id = 0
Although the resource list identification code, project identification code, and retrieved
data vary by database, the select statement above should return values similar to those
shown in the following table:
Senior.Consultant 40 40 0
Principal.Engineer 80 80 0
Computer Services 62 0 62
Automobile Rental 50 0 50
View Description
6-74 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
View Description
6-76 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
the public API package PA_STATUS_PUB.
• Update Procedures
• UPDATE_EARNED_VALUE, page 6-83
• Load-Execute-Fetch Procedures
• LOAD_TASK_PROGRESS, page 6-86
PA_TASK_PROGRESS_LIST_REC_TYPE Datatype
The following table shows the PA_TASK_PROGRESS_LIST_REC_TYPE datatype.
PM_TASK_REFERE VARCHAR2 (250) Yes, if TASK_ID is The reference code that uniquely identifies
NCE not provided the structure or task in the external system.
TASK_STATUS VARCHAR2 (150) Yes The task status code or deliverable status
code
6-78 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Name Type Required? Description
P_PM_PRODUCT_CODE
P_PM_STRUCTURE_TYPE
P_AS_OF_DATE
P_TASK_ID Value = 0
P_PROGRESS_STATUS_CODE
P_TASK_STATUS
6-80 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Parameter Name Comment
P_PM_PRODUCT_CODE
P_PM_STRUCTURE_TYPE
P_AS_OF_DATE
P_PROGRESS_STATUS_CODE
P_TASK_STATUS
P_PM_PRODUCT_CODE
P_PM_STRUCTURE_TYPE
P_AS_OF_DATE
P_PROGRESS_STATUS_CODE
P_TASK_STATUS
P_PM_PRODUCT_CODE
P_PM_STRUCTURE_TYPE
P_AS_OF_DATE
6-82 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Parameter Name Comment
P_PROGRESS_STATUS_CODE
P_TASK_STATUS
Related Topics
UPDATE_PROGRESS, page 6-84
LOAD_TASK_PROGRESS, page 6-86
UPDATE_EARNED_VALUE
UPDATE_EARNED_VALUE is a PL/SQL procedure that updates earned value
information in the PA_EARNED_VALUES tablefor lowest task-resource combinations.
You can also use this procedure to update project-task rows.
This procedure creates a new row in the table PA_EARNED_VALUES.
CURRENT_FLAG is always set to Y for the last row inserted for each project, task, and
resource combination. CURRENT_FLAG for all other rows is set to N.
To create a project-task row, pass zero for the RESOURCE_LIST_MEMBER_ID
parameter. To create a project row, pass zero for both the TASK_ID and
RESOURCE_LIST_MEMBER_ID parameters.
Note: This API assumes that the vendor of the external system
maintains the appropriate earned value data for all levels in any given
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual. The required parameters for UPDATE_EARNED_VALUE are listed below:
• P_API_VERSION_NUMBER
• P_PROJECT_ID
• P_TASK_ID
• P_RESOURCE_LIST_MEMBER_ID
• P_AS_OF_DATE
• P_BCWS_ITD
• P_ACWP_ITD
• P_BCWP_ITD
• P_BAC_ITD ITD
• P_BQWS_ITD
• P_AQWP_ITD
• P_BQWP_ITD
• P_BAQ_ITD
UPDATE_PROGRESS
UPDATE_PROGRESS is a PL/SQL procedure that updates progress information in the
PA_PERCENT_COMPLETES table as of a given date forall levels of the work
breakdown structure.
For a given project, a task identifier of zero shows that the parameters apply to a
project-level row. A task identifier greater than zero shows that the parameters apply to
a task-level row.
Adding tasks from a project's work breakdown structure does not affect their
corresponding rows in the PA_PERCENT_COMPLETES table. When executed, this API
inserts a new row in the PA_PERCENT_COMPLETES table if a row for that project-task
combination does not already exist.
6-84 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Business Rules
This procedure creates a new row in the table PA_PERCENT_COMPLETES.
CURRENT_FLAG is always set to Y for the last row inserted for each project, task, and
resource combination. CURRENT_FLAG for all other rows is set to N.
To create a project row, you must pass zero in TASK_ID.
Note: This API assumes that vendor of the external system maintains
the appropriate rollup of progress data for each level of the work
breakdown structure for any given project. Providing progress
information, however, is optional.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual. The required parameters for UPDATE_PROGRESS are listed below:
• P_API_VERSION_NUMBER
• P_PM_PRODUCT_CODE
• P_PM_STRUCTURE_TYPE
• P_AS_OF_DATE
• P_PERCENT_COMPLETE
• P_OBJECT_ID
• P_OBJECT_VERSION_ID
• P_OBJECT_TYPE
• P_PROGRESS_STATUS_CODE
LOAD_TASK_PROGRESS
LOAD_TASK_PROGRESS is a Load-Execute-Fetch PL/SQL procedure used to load
progress information in the pl/sql data structures.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual. The required parameters for LOAD_TASK_PROGRESS are listed below:
• P_API_VERSION_NUMBER
• P_PM_PRODUCT_CODE
• P_PM_STRUCTURE_TYPE
• P_AS_OF_DATE
• P_PERCENT_COMPLETE
• P_OBJECT_ID
• P_OBJECT_VERSION_ID
• P_OBJECT_TYPE
• P_PROGRESS_STATUS_CODE
• P_TASK_STATUS
EXECUTE_UPDATE_TASK_PROGRESS
EXECUTE_UPDATE_TASK_PROGRESS is a Load-Execute-Fetch PL/SQL procedure
used to update progress information in Oracle Projects.
6-86 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
This procedure creates a new row in the table PA_PERCENT_COMPLETES.
CURRENT_FLAG is always set to Y for the last row inserted for each project, task, and
resource combination. CURRENT_FLAG for all other rows is set to N.
To create a project row, you must pass zero in TASK_ID.
Note: This API assumes that vendor of the external system maintains
the appropriate rollup of progress data for each level of the work
breakdown structure for any given project. Providing progress
information, however, is optional.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual. The required parameters for EXECUTE_UPDATE_TASK_PROGRESS are
listed below:
• P_API_VERSION_NUMBER
INIT_UPDATE_TASK_PROGRESS
INIT_UPDATE_TASK_PROGRESS is a utility used to initialize internal PL/SQL tables.
It is recommended to call this API before every call to the
EXECUTE_UPDATE_TASK_PROGRESS API.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual. The required parameters for INIT_UPDATE_TASK_PROGRESS are listed
below:
• P_API_VERSION_NUMBER
The Actuals Summarization API package name is pa_accum_api. The corresponding file
names are as follows:
• Body file: PAAAPIB.pls
GET_PROJECT_ACCUM_ACTUALS
This is the primary procedure for retrieving actual cost, revenue, and commitment
amounts at a project level.
The required parameters for GET_PROJECT_ACCUM_ACTUALS are listed below:
• x_project_id
• x_from_period_name
GET_PROJ_RES_ACCUM
This procedure retrieves actual cost, revenue, and commitment amounts for the
resource named in the parameter x_resource_list_member_id for the procedure
GET_PROJECT_ACCUM_ACTUALS.
The required parameters for this procedure are listed below:
• x_project_id
6-88 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• x_from_period_name
• x_resource_list_member_id
GET_PROJ_TXN_ACCUM
This procedure retrieves summarized amounts for the various transaction types such as
cost, revenue and commitment.
The required parameters for this procedure are listed below:
• x_project_id
• x_from_period_name
• Budget type
The Budget Summarization API can return summary amounts for budgets assigned to
any level of the project and task work breakdown structure, providing you pass the
TASK_ID corresponding to the budgeted level. For example, if a project is budgeted at
the top task and you pass a lower task to the Budget Summarization API, the API will
return zero budget amounts.
The name of the summarization package is pa_accum_api and the name of the budget
procedure is get_proj_accum_budgets.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
CREATE_RESOURCE_ROLLUP
This procedure inserts header information for the specified projects and structures in
the PJI_ROLLUP_LEVEL_STATUS table and the corresponding rollup resource
summary amount details in the PJI_FP_XBS_ACCUM_F table.
The following CREATE_RESOURCE_ROLLUP parameters are required:
• P_API_VERSION_NUMBER
• P_COMMIT
• P_INIT_MSG_LIST
• P_PROJECT_ID
6-90 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• P_PLAN_VERSION_ID_TBL
• P_RBS_VERSION_ID_TBL
• P_PRG_ROLLUP_FLAG
• X_MSG_COUNT
• X_MSG_DATA
• X_RETURN_STATUS
DELETE_RESOURCE_ROLLUP
This procedure deletes header information for the specified projects and structures from
the PJI_ROLLUP_LEVEL_STATUS table and the corresponding rollup resource
summary amount details from the PJI_FP_XBS_ACCUM_F table.
The following DELETE_RESOURCE_ROLLUP parameters are required:
• P_API_VERSION_NUMBER
• P_COMMIT
• P_INIT_MSG_LIST
• P_PROJECT_ID
• X_MSG_COUNT
• X_MSG_DATA
• X_RETURN_STATUS
This chapter describes everything you need to know about designing and writing client
extensions in Oracle Projects.
This chapter covers the following topics:
• Client Extensions
• Implementing Client Extensions
Client Extensions
You can use client extensions to extend the functionality of Oracle Projects. You can
automate your company's business rules within the standard processing flow of Oracle
Projects, without having to customize the software.
The package specification and body (template procedure) files are stored in the Oracle
Projects patch/115/sql directory. You use PL/SQL to modify procedures within the
extensions. Oracle Projects calls these procedures during specific points in the standard
processing.
The procedures that you write are extensions, not customizations. Extensions are
supported features within the product and are easily upgraded between product
releases. Customizations are changes to the base product which are not supported and
are not easily upgraded.
Related Topics
Analyzing Your Business Requirements, page 7-2
Designing the Logic, page 7-2
Writing PL/SQL Procedures, page 7-4
2. Determine if these business rules are handled by the standard features of Oracle
Projects.
3. For those business rules not handled by the standard functionality, determine
which client extensions can address your specific business needs.
7-2 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
stage, you can expect more ease in writing the PL/SQL procedure and a more successful
client extension implementation. This design cycle includes the following steps:
1. Understand the client extensions you propose to use, including their purpose,
processing flow, when Oracle Projects calls the extensions, and the input values.
2. Define and document the requirements and logic of your business rules under all
possible conditions. Determine the inputs, calculations performed, and resulting
outputs.
3. Determine the data elements required to enforce your rules and how you will select
or derive each of the required elements. Define additional implementation data and
document additional business procedures based on the requirements of your
business rules.
4. Step through various business scenarios to ensure that your logic handles each
condition as you expect. You can use these scenarios as test cases when you test
your actual client extension definition and procedure.
5. Give the detailed specification to the team member who will write the PL/SQL
procedure.
Note: If you want to use different logic for different parts of your
enterprise, write one procedure that branches appropriately.
3. You determine the data elements that identify which transactions are supplies and
which projects are overhead projects.
You decide that the expenditure type of Supplies specifies the type of charge, and
that the project type of Overhead specifies the type of project.
The predefined parameters for the extension include expenditure type (Supplies)
and project ID. You can derive the project type (Overhead) from the project ID.
The logic is:
IF Expenditure Type = Supplies
THEN IF Project Type = Overhead
THEN OK
ELSE error message
You can charge supplies only to overhead projects
ELSE OK
4. You step through several scenarios using different types of charges and different
types of projects. Your logic handles all of the scenarios.
5. You are ready to hand off this specification to your technical resource.
Note: We recommend that you keep the PL/SQL User's Guide and
Reference Manual on hand as reference material while defining
procedures. In addition, you can refer to the Oracle eTechnical
Reference Manuals (eTRM) for detailed description of database tables
and views. Oracle eTRM is available on OracleMetaLink.
Packages
Packages are database objects that group logically related PL/SQL types, objects, and
subprograms. Packages usually consist of two files: a package specification file and a
package body file. The files are described below:
Package Specification File The specification file is the interface to your applications. It
declares the types, variables, constants, exceptions, cursors,
7-4 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
and subprograms available for use in the package.
In Oracle Projects client extensions, this file contains the
package name, procedures, and function declarations. If
you create procedures within the package outside the
predefined procedure, you must also modify this file.
Package Body File The package body contains the actual PL/SQL code used to
implement the business logic.
In Oracle Projects client extensions, this file contains the
procedure or procedures that you modify to implement the
extension. You can define as many procedures as you like
within the package or within the predefined procedure or
procedures.
Tip: After you write a procedure, do not forget to compile it and store it
in the database.
Procedures
Procedures are subprograms within a package. Procedures are invoked by the
application and perform a specific action. Procedures define what parameters will be
passed in as context for the program, how the inputs are processed, and what output is
returned. A procedure consists of the following elements:
Inputs Each procedure has predefined input parameters, which
must be passed in the predefined order. The parameters
identify the transaction being processed and the context in
which the program is called. You can derive additional
inputs from any Oracle table based on the predefined input
parameters.
Logic The procedure uses the inputs and performs any logical
processing and calculations. The program can be a simple
program, such that it returns a fixed number, or it can be a
complex algorithm that performs multiple functions.
Syntax
A procedure consists of two parts: the specification and the body.
The procedure specification begins with the keyword PROCEDURE and ends with the
procedure name or a parameter list.
The procedure body begins with the keyword IS and ends with the keyword END,
followed by an optional procedure name. The procedure body has a declarative part, an
executable part, and an optional error handling part.
You write procedures using the following syntax:
PROCEDURE name [ (parameter [, parameter,...]) ] IS
[local declarations]
BEGIN
executable statements
[EXCEPTION
exception handlers]
END [name];
For more information, refer to the PL/SQL User's Guide and Reference Manual.
7-6 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
provided for each extension. Read the appropriate client extension essays and template
procedures to obtain detailed information.
For example, if your Oracle Applications Oracle user name/password is apps/apps, you
could use the following commands to install your transaction control extensions:
$ sqlplus apps/apps
SQL> @PAXTTXCS.pls
SQL> @PAXTTXCB.pls
If you encounter errors when you are creating your packages and its procedures, correct
the errors and recreate your packages. You must successfully compile and store your
package and its procedures in the database before you can use the client extensions in
Oracle Projects.
This chapter describes the client extensions in the Oracle Project Foundation
application.
This chapter covers the following topics:
• Project Security Extension
• Project Verification Extension
• Project and Task Date Extension
• Project Workflow Extension
• Verify Organization Change Extension
• Transaction Import Extensions
• Descriptive Flexfield Mapping Extension
• Archive Project Validation Extension
• Archive Custom Tables Extension
• All project administrators can view and update projects to which they are assigned,
but project managers can only view those projects to which they are assigned
• Do you want the users to view the project but not update it, or do you want to block
the project from their online queries?
• Does the type of security for a given user or set of projects change depending on the
module?
• How does project security interact with the function security defined for the
responsibility?
• Consider the performance implications of the logic that you write. The extension is
called for every project during online queries.
Item Name
Package pa_security_extn
Procedure check_project_access
8-2 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
store it in the database. For more information, see: Writing PL/SQL
Procedures, page 7-4.
Value Description
Refer to the PA_Security_Extn procedure for the most up-to-date information about
values for X_calling_module.
Item Name
Package pa_client_extn_proj_status
8-4 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
When Oracle Projects determines whether to call Workflow for a project status change,
it bases the decision on the settings in the project status record and the project type. You
can use this procedure to override those settings and/or add additional requirements.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
Item Name
Package pa_client_extn_pm
Procedure customize_dates
Customize Dates
The name of the customize dates procedure is pa_client_extn_pm.customize_dates.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
You can customize this client extension to substitute a different set of project and task
start dates for the standard Oracle Projects project and task start and completion dates.
For example, you can define your own rules to determine which project and task dates
in the external system correspond to the project and task start and completion dates in
Oracle Projects.
The following code shows how to map the actual start and actual finish dates in an
external system to the project and task start and completion dates in Oracle Projects.
8-6 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
–– Initialize the out variables
p_error_code := 0;
p_error_stage := NULL;
IF p_actual_start_date IS NOT NULL
and p_actual_finish_date IS NOT NULL
THEN
p_out_start_date := p_actual_start_date;
p_out_finish_date := p_actual_finish_date;
ELSE
p_out_start_date := p_in_start_date;
p_out_completion_date := p_in_completion_date;
END IF;
Processing
The default project workflow process calls the project workflow extension to determine
the project approver.
Item Name
Package pa_client_extn_project_wf
Procedures
Following are the procedures included in the project workflow extension.
8-8 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
Processing
Oracle Projects calls the Verify Organization Change Extension during the Mass Update
Batches process, and in the Projects window when the project or task owning
organization is changed.
Item Name
Package pa_org_client_extn
Procedure verify_org_change
Related Topics
Mass Update Batches, Oracle Projects Fundamentals
Function Security in Oracle Projects, Oracle Projects Implementation Guide
• Use the Post-Import Client Extension to record the expenditure and expenditure item
IDs generated by the Transaction Import Process in the source system. You can also
use it for other post-import processing.
The Pre-Import and Post-Import client extensions are called depending upon the
Transaction Source that is used in the Transaction Import Process. When you run the
Transaction Import Process, you must specify a Transaction Source that determines
how the Transaction Import processes the transactions. The Pre-Import and Post-Import
client extensions are specified when you set up the transaction source in the Transaction
Sources window. The following attributes of the transaction source are used:
• The Pre Processing Extension is where you specify the Pre-Import client extension.
• The Post Processing Extension is where you specify the Post-Import client extension.
Note: For both the Pre and Post Processing Extensions, you enter
the full name of the client extension, including the package, in the
8-10 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
format package.procedure.
Each transaction source that you set up can use the same Pre-Import and Post-Import
client extensions, or each transaction source can have unique Pre-Import and
Post-Import client extensions. For example, if you set up a transaction source for
importing data from an external accounts payable system and a different transaction
source for importing data from an external time management system, you can create
different Pre-Import client extensions for each of the transaction sources or use the same
Pre-Import client extension for both transaction sources.
Note: Oracle Projects does not support the use of a Pre-Import client
extension or a Post-Import client extension with the Capitalized Interest
transaction source.
The Oracle Internet Time transaction source that is included with Oracle Projects comes
with both a predefined Pre-Import client extension and a Post-Import client extension.
These two client extensions are described in the following sections:
Pre-Import Client Extension for Internet Time, page 8-11
Post-Import Client Extension for Internet Time, page 8-13
You may refer to the existing client extensions for Internet Time when you create
additional Pre-Import and Post-Import client extensions.
Related Topics
Transaction Import Interface, page 13-25
Transaction Source Options, Oracle Projects Implementation Guide
After the last item for an expenditure is successfully loaded into the Transaction
Interface Table, then the Transfer Status Code in the Expenditures table is set to
Transferred.
Description
The extension is identified by the following items:
Item Name
Package pa_trx_import
Procedure pre_import
8-12 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
this manual.
Related Topics
Transaction Import Client Extensions, page 8-10
Transaction Import Interface, page 13-25
Transaction Sources, Oracle Projects Implementation Guide
Transaction Source Options, Oracle Projects Implementation Guide
Description
The extension is identified by the following items:
Item Name
Package pa_trx_import
Procedures post_import
Related Topics
Transaction Import Client Extensions, page 8-10
Transaction Import Interface, page 13-25
Transaction Sources, Oracle Projects Implementation Guide
Transaction Source Options, Oracle Projects Implementation Guide
Description
The extension is identified by the following items:
Item Name
Package pa_client_extn_dfftrans
8-14 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Item Name
Function dff_map_segments_f
Procedure dff_map_segments_PA_and_AP
Parameter Argument
P_TRX_REF_1 AP_INVOICE_DISTRIBUTIONS.INVOICE_ID
P_TRX_REF_2 AP_INVOICE_DISTRIBUTIONS.DISTRIBUTION_LINE_NUMBER
P_TRX_TYPE AP_INVOICES.INVOICE_TYPE_LOOKUP_CODE
P_SYSTEM_LINKAGE_FUNCTION "VI"
P_SUBMODULE AP_INVOICES.SOURCE
Parameter Argument
P_TRX_REF_1 AP_INVOICE_DISTRIBUTIONS.INVOICE_ID
P_TRX_REF_2 AP_INVOICE_DISTRIBUTIONS.DISTRIBUTION_LINE_NUMBER
P_SYSTEM_LINKAGE_FUNCTION "ER"
P_SUBMODULE AP_INVOICES.SOURCE
Parameter Argument
P_TRX_REF_1 PA_EXPENDITURE_ITEMS.EXPENDITURE_ITEM_ID
P_TRX_REF_2 PA_COST_DISTRIBUTION_LINES.LINE_NUM
P_SYSTEM_LINKAGE_FUNCTION "ER"
P_SUBMODULE null
8-16 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Parameter Argument
P_TRX_REF_1 PA_EXPENDITURE_ITEMS.EXPENDITURE_ITEM_ID
P_TRX_REF_2 PA_COST_DISTRIBUTION_LINES.LINE_NUM
P_TRX_TYPE AP_INVOICES.INVOICE_TYPE_LOOKUP_CODE
P_SYSTEM_LINKAGE_FUNCTION "VI"
P_SUBMODULE null
DFF_Map_Segments_F Function
The dff_map_segments_f function provides the mapping logic for descriptive flexfields
segments.
The default logic maps segment n in the originating application to segment n in the
receiving application. You can change this function to map the segments according to
your business rules.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
DFF_Map_Segments_PA_and_AP Procedure
The dff_map_segments_PA_to_AP procedure calls the function dff_map_segments_f,
and stores the mapped segments in the parameters p_attribute_1 through
p_attribute_10.
You can modify this procedure to customize the attribute category mapping. An
example of code for mapping the attribute category is provided in the extension.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
Description
This extension is identified by the following items:
Item Name
Package PA_Purge_Extn_Validate
Procedure Validate_Extn
8-18 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
you maintain custom tables for project transaction data, you can use the Archive
Custom Tables Extension to archive and purge these tables as part of the standard
purge process.
The extension is identified by the following items:
Item Name
Package PA_Purge_Extn
Procedure PA_Purge_Client_Extn
This chapter describes the client extensions in the Oracle Project Costing application.
This chapter covers the following topics:
• Transaction Control Extensions
• AutoApproval Extensions
• Labor Costing Extensions
• Labor Transaction Extensions
• Overtime Calculation Extension
• Burden Costing Extension
• Burden Resource Extension
• Allocation Extensions
• Asset Allocation Basis Extension
• Asset Assignment Extension
• Asset Lines Processing Extension
• Capital Event Processing Extension
• Capitalized Interest Extension
• CIP Grouping Extension
• CIP Account Override Extension
• Depreciation Account Override Extension
• Cross-Charge Client Extensions
• You cannot charge new transactions to projects for which the work is complete; you
can only transfer items to these projects
• You can only charge to tasks that are managed by the organization you are assigned
to
Validation
You can use transaction control extensions to provide additional validation based on
any type of data you enter in Oracle Projects. For example, you can check the project
status for a particular project during expenditure entry.
You can validate any transaction entered into Oracle Projects, including transactions
from other Oracle Applications and from external systems. For example, you can
validate project-related supplier invoices entered into Oracle Payables. You can also
validate items that you transfer from one project to another.
Transaction control extensions validate expenditures items one at a time; all validation
is done for each expenditure item. Oracle Projects checks each expenditure item during
data entry; the transaction is validated before you commit it to the database.
Processing
Oracle Projects processes transaction control extensions after the standard validation
performed for expenditure entry, and after validating any transaction controls entered
at the project or task level.
1. Standard validation
• Transaction is within start and completion dates of project/task
• Task is chargeable
9-2 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
require before you write them. We recommend that you consider some additional
design issues for transaction control extensions:
• What are the business rules?
• Are there any exceptions to the validation? How are exceptions handled?
• In what order should the transaction controls be executed if you have multiple
rules?
• What error message should users see when entering a transaction not allowed by
transaction control extensions?
• Are there any rules to set the default billable or capitalizable status of transactions?
Item Name
Package Patcx
Procedure tc_extension
Procedure
The name of the transaction control extension procedure is tc_extension.
Parameter values for this procedure are passed from the expenditure item that is being
validated. You can view descriptions of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
Quantity You can use the quantity parameter for validation using
Oracle Projects and Oracle Payables features. However,
keep in mind that Oracle Purchasing does not pass a value
for this parameter.
Incurred by Person Oracle Projects passes the person who is incurring the
transaction. This value is always specified for labor and
expense report items. It is optional for usage items, because
you can enter usage logs which are incurred by an
organization, and not an employee.
Oracle Payables passes a parameter value for supplier
invoice transactions if the supplier of the invoice is an
employee; otherwise this value is blank for supplier invoice
transactions.
Oracle Purchasing does not pass a value for this parameter
for requisitions and purchase orders transactions.
9-4 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Billable/Capitalizable Flag Oracle Projects passes in the billable value (contract
projects) or capitalizable value (capital projects) that it has
determined from the project and task transaction controls
and the task billable status for this parameter. You can
override this value based on logic that you write in your
procedure. You can pass back a value of Y or N to specify
the default billable or capitalizable status of a transaction. If
you do not pass back a value, or if you pass back an invalid
value, Oracle Projects uses the original value that it
determined before calling the transaction control extension
procedure.
Outcome Parameter Use the X_outcome parameter to pass back the outcome of
the procedure. If the transaction successfully passes all
applicable transaction control extension rules that you
defined, leave the X_outcome parameter value as a null
value. Oracle Projects then knows that this transaction
passed all transaction control validation.
If the transaction does not pass a rule that you define, set
the X_outcome value to the appropriate error message
name that will be displayed to the user.
Calling Modules
The calling module parameter indicates which program called the transaction control
extension. You can vary the logic of the extension based on the calling module. For
example, if Transaction Import is the calling module (PAXTRTRX), then allow only
certain types of transactions to be charged to specific projects.
Below is a list of the possible values for the X_CALLING_MODULE parameter. Note
that these values are case-sensitive and are passed exactly as they appear.
When transaction controls are called by Oracle Purchasing and Oracle Payables, the
validation is performed when you enter project-related information for requisitions,
purchase orders, and supplier invoices. The validation is also performed when you
enter or update the project-related information for distribution lines.
The following list shows possible values for X_CALLING_MODULE, and the
corresponding meaning for each value:
apiindib.pls Payables invoice distributions
POWEBREQ iProcurement
9-6 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
POXPOERL Releases in Oracle Purchasing. This value is passed when
Transaction Controls is called to validate project-related
information when you enter releases against purchase
orders.
Can I allow exceptions to a Yes; for example, you can allow exceptions to a rule that
rule? applies to a project type by limiting the rule to particular
projects for the project type in the procedure logic.
Can the extension validate Currently, you cannot perform validation on groups of
groups of expenditure items? expenditure items.
How many error messages Your procedure can return one error message, which is the
can the procedure return? first error message that Oracle Projects encounters in your
procedure.
Related Topics
Designing Client Extensions, page 7-2
Business Rule
You have decided that you do not want anyone to charge new transactions to projects
Requirements
The business rule will be carried out as follows:
• Do not allow new expenditure items to be charged to projects having a project
status of Processing Only
• Display an error message when a user tries to enter new expenditure items charged
to projects having a project status of Processing Only
You could easily implement an exception to this rule regarding new charges from
transfers only. An exception to this rule is to also allow supplier invoice transactions,
which are typically received after the project work is complete.
Required Extension
To implement the business rule of controlling new charges to projects for which the
work is complete, use the transaction control extension.
Determining Project Status The project status is not passed as a parameter to the
transaction control extension. Therefore, you need to derive
this value from the project ID.
9-8 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Defining an Error Message If an item is a new item being charged to a project with a
project type having the status of Processing Only, you want
to display an error message to the user. The user can then
change the project assignment of the new expenditure item
to a different project.
You define an error message with the text, "You cannot
create new items for Processing Only projects".
Business Rule
You want all administrative work to be charged to tasks that are managed by the
employee's organization. When the employee is not specified, charge the administrative
work to the expenditure organization.
Requirements
The business rule will be carried out like this:
• Tasks with a service type of Administration allow charges only for employees
assigned to the same organization as the task-owning organization
• For usages not associated with a specific employee, the expenditure item must have
been charged by the same expenditure organization as the task organization
• Display an error message when a user tries to enter an expenditure item that
violates this rule
You can easily implement an exception to this rule, in which this rule does not apply to
any projects that are managed by the Executive office. This exception exists because the
Executive office uses resources throughout the company to perform important
administrative work. The Executive office does not want to set up projects with a task
for every organization that may help with the project work.
Required Extension
To implement the business rule of organization-based transaction controls, use the
Transaction Control Extension.
Determining Task Service The task service type is not passed as a parameter to the
Type transaction control extension. Therefore, you need to derive
this value.
Defining an Error Message If an item being charged to a task violates this rule, you
want to display an error message to the user. The user can
then change the task assignment to a different value.
You define an error message with the text, "Only the
task-owning organization can charge to this task".
Business Rule
You have decided that you want to implement the business rule that no one can bill
entertainment charge to projects.
Requirements
The business rule will be carried out like this:
• Transactions with an expenditure type of Entertainment are non-billable for all
projects, regardless of the task's billable status
9-10 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• There are no exceptions to this rule within the client extension; exceptions for
negotiated billing of Entertainment expenses are marked as billable using the Adjust
Project Expenditures form.
• Do not return an error message to the user for any expenditure types of
Entertainment; simply set the billable status to non-billable for affected transactions.
Required Extension
To implement the business rule of determining the default billable status by
expenditure type, use the Transaction Control Extension.
Determining Billable Status You can simply code your procedure to look at the
expenditure_type parameter; if the expenditure type is
Entertainment, set the x_billable_flag parameter to N to
implement this business rule.
AutoApproval Extensions
The AutoApproval Extensions contain procedures to define conditions under which
expense reports and timecards are approved automatically. Each procedure includes
examples that you can copy and modify.
You can view descriptions of all of the parameters for these procedures in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
Item Name
Package pa_client_extn_pte
Procedure get_exp_autoapproval
Item Name
Package pagtcx
Procedure summary_validation_extension
9-12 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Item Name
Package pa_client_extn_rte
Procedure check_approval
Item Name
Package paroutingx
Procedure route_to_extension
Item Name
Package pa_time_client_extn
Procedure display_business_message
You can use labor costing extensions to implement unique costing methods other than
the standard method, which calculates raw cost using the number of hours multiplied
by the employee's hourly cost rate. For example, you may want to calculate the raw cost
using a capped labor rate for specific employees.
Processing
Oracle Projects processes labor costing extensions during labor cost distribution before
calculating standard raw cost amounts. If Oracle Projects encounters a labor costing
extension that derives the raw cost amount of a labor transaction, it skips the standard
raw cost calculation section for that transaction.
• How do you store rates and other additional information that your calculations
may require? How are the rates and other information maintained?
• What are the exception conditions for your labor costing extension? What is the
9-14 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
exception handling if you cannot find a rate that should exist?
Item Name
Package PA_Client_Extn_Costing
Procedure Calc_Raw_Cost
Using x_raw_cost
The raw cost amount that your procedure calculates is assigned to the x_raw_cost
parameter. Leave this value blank if you want to use the standard costing method
which uses the employee's hourly cost rate.
If you pass a value to this parameter, Oracle Projects calculates the raw cost rate of the
transaction using the x_raw_cost parameter value divided by the number of hours.
Using x_status
Use the x_status parameter to handle error conditions for your procedure. This
parameter indicates the processing status of your extension as follows:
x_status = 0 The extension executed successfully.
• Create fringe benefit transactions which are charged to the same project the source
labor was charged to
You can create additional transactions for straight time labor transactions and overtime
labor transactions. You create additional labor transactions based on the source labor
transactions that you enter on timecards.
Related Transactions
Additional transactions that are created for labor transactions are referred to as related
transactions. All related transactions are associated with a source transaction and are
attached to the expenditure item ID of the source transaction. You can identify and
process the related transactions by referring to the expenditure item ID of the source
transaction.
You create related transactions to process a raw cost amount separately than the source
transaction raw cost amount. Related transactions can be burdened, billed, and
accounted for independently of the source transaction.
Processing
Oracle Projects processes labor transaction extensions during labor cost distribution.
When you distribute labor costs, the labor transaction extension is processed after the
raw cost calculation of the source transactions. This allows you to derive the cost of the
related transaction from the cost of the source transaction.
9-16 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
You also use the labor transaction extension to calculate new cost amounts for related
transactions if the source transaction is recosted.
If you are using the Labor Transaction Extension to create overtime premium
transactions, you may not need to use the Overtime Calculation program that Oracle
Projects provides. If you determine that you need to use both the Labor Transaction
Extension and the Overtime Calculation program, you need to ensure that you have
defined conditions so that each transaction is processed by only one of these processes,
based on your company policies.
• What project and task are the related transactions charged to?
• How is the raw cost of the related transaction calculated? Is it based on the raw cost
of the source transaction or based on some other calculation?
• Is the related transaction burdened? If so, you need to set up your cost plus
implementation so that the transaction is burdened.
• How is the related transaction's cost accounted for? Is the raw cost accounting for
related transactions different from the accounting for source transactions? Is the
total burdened cost accounting different (if you use total burdened cost
accounting)? You need to define your AutoAccounting rules for labor costs
appropriately.
• How is the billable status of each related transaction determined? Do you need to
create a transaction control extension rule to properly specify the related
transaction's billable status?
• Are the related transactions billed? If so, under what conditions? How is the bill
amount calculated under the different billing methods? Do you need to use a labor
billing extension to bill these transactions?
• Is the related transaction's revenue accounted for differently than the source
transactions? If so, how? You need to define your AutoAccounting rules for labor
• What are the exception conditions for your labor transaction extension? For
example, what is the exception handling if you cannot find a rate for the related
transaction if the related transaction's raw cost is not directly based on the source
transaction's raw cost?
Item Name
Package PA_Client_Extn_Txn
Procedure Add_Transactions
Oracle Projects also provides two public procedures that you use within the
Add_Transactions procedure for the following purposes:
• Creating Related Transactions
9-18 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
• Ensures that the expenditure type is classified with an expenditure type class of
Straight Time or Overtime
• Validates that the transaction passes all transaction controls validation rules,
including logic in transaction control extensions
• Determines the billable status of the related transaction using the same method
used for all Oracle Projects transactions
• Has quantity of 0 (to maintain the number of hours for the employee's timecard,
even when related items exist for that timecard)
• Uses the source transaction's project and task unless you specify project and
task input values
• Uses the source transaction's expenditure item date and bill hold value
• Rounds the raw cost to 2 decimal places and uses the raw cost rate that you
passed into it
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
Using Userid in the You must provide an input value for the X_userid
CreateRelatedItem procedure parameter for the CreateRelatedItem procedure. Oracle
Projects passes this value to the transaction control
procedure, which is called before the related transaction is
created. You may have defined logic in your transaction
control extensions that uses the userid value. You typically
pass the user of the person who created the source
transaction, but you can pass any userid that you want to
the CreateRelatedItem procedure.
9-20 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
organization, then that value is stored as the expenditure
item's override organization regardless of the existence of
any other cost distribution overrides defined for the
project.
This organization is then used when calculating burdened
amounts for the related transaction. It is also used as the
input value for any AutoAccounting rules that use the
expenditure organization parameter.
However, the source transaction expenditure organization
is what the create related transaction procedure passes to
the transaction controls procedure for validation. This is
done to retain consistency with expenditure entry forms
which always send the incurred by (or expenditure
organization) organization value. The expenditure
organization parameter is used in Transaction Control
Extensions by clients who want to control expenditure
entry by what organization is charging to the project.
Therefore, the override organization value is used only for
burdening and AutoAccounting.
Using Outcome in the Oracle Projects uses the X_outcome parameter to pass back
CreateRelatedItem Procedure the rejection reason encountered in the application logic of
the CreateRelatedItem procedure. For example, if the
related transaction is rejected by the transaction controls
validation called in the CreateRelatedItem procedure, then
the reason is assigned to the X_outcome parameter.
Using Status in both Use the x_status parameter to handle error conditions for
Procedures your procedure. This parameter indicates the processing
status of your extension as follows:
x_status = 0 The extension executed
successfully.
Can I create multiple related Yes, you can create multiple related transactions for a given
transactions for a single item? source transaction based on the logic in your labor
transaction extension.
9-22 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
What if some parameters are All parameters that are not passed to the related
not passed to transactions procedure are read from the source
CreateRelatedItem?
transaction; except for quantity, billable status, and
expenditure type. The quantity is set to 0 for the related
transactions. The billable status is derived based on the
transaction controls and transaction control extensions that
you define. Expenditure type is a required parameter that
you provide.
What if a related transactions If a related transaction does not pass validation in the
does not pass validation? CreateRelatedItem procedure, Oracle Projects does not
create the related item, and marks the source transaction
with a cost distribution rejection reason specifying that an
error was encountered in the labor transaction extension
procedure. The source item is not marked as cost
distributed and is displayed in the exception output report
in the Distribute Labor Costs process.
Where can I establish the The related transaction's billable or capitalizable status is
billable or capitalizable status derived using transaction controls and task billable or
of related transactions?
capitalizable status like all other transactions. You can
further derive the billable or capitalizable status of related
transactions by including logic in the transaction control
extension procedure to look at related transactions based
on certain criteria, and then setting the billable or
capitalizable flag. The transaction control package, which
establishes the billable or capitalizable status, is called
within the CreateRelatedItem procedure.
How does the transaction The transaction control procedure, which establishes the
controls procedure identify billable or capitalizable status and validates transactions, is
related transactions?
called within the CreateRelatedItem procedure.
The transaction control extension identifies related
transactions by the x_module of the CreateRelatedItem
procedure. When the calling procedure
(CreateRelatedItems) calls transaction controls, the
x_module is set to CreateRelatedItem.
Can I calculate raw cost You can use the Cost Plus API to determine raw cost
amounts of related amounts of related transactions based on your burden
transactions using burden
costing? costing setup.
Related Topics
Distributing Labor Costs, Oracle Project Costing User Guide
Note: If you want to charge overtime to the project where the labor was
charged, consider creating items via the labor transaction extension.
See: Labor Transaction Extensions, page 9-16.
For more information on the context and setup of overtime calculations, see:
Implementing Overtime Charged to an Indirect Project, Oracle Projects Implementation
Guide.
Processing
Oracle Projects calls the Overtime Calculation Extension during the Distribute Labor
Costs process.
9-24 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• Define and document your overtime policy
• Have your technical staff code your overtime policy in the Overtime Calculation
extension
• Test your implementation data and Overtime Calculation extension to ensure that it
correctly implements your company's overtime policies
A few additional notes about implementing the Overtime Calculation extension are:
• Define all overtime expenditure types with an end date so that timecard clerks
cannot enter overtime through the Pre-Approved Expenditures window
• Sums the hours required to calculate overtime for identified employees and weeks.
The standard Overtime Calculation extension sums the total hours for the week and
the total hours for each day of the week, relying on the timecard entry validation
rule that all labor expenditure item dates must be within the expenditure week
ending date of the timecard.
• Calculates overtime hours based on the hours worked, the employee's labor costing
rule, and other criteria you might specify. The standard Overtime Calculation
extension calculates overtime for an employee and a week based on the employee's
labor costing rule described in the case study. See: Implementing Overtime Charged
to an Indirect Project, Oracle Projects Implementation Guide.
• Lists employees with new overtime items on the Overtime Calculation Report.
After the Overtime Calculation extension has completed, the Distribute Labor Costs
process costs the new overtime items.
Item Name
Package pa_calc_overtime
9-26 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
The report first calls the Check_Overtime_Tasks_Exist procedure. This procedure looks
for overtime projects and tasks and returns all relevant task names, up to a maximum of
five. These tasks determine the column titles in the report.
Next, the report queries the database for all records processed by the Distribute Labor
Costs process. The report then calls the Process_Overtime procedure. This procedure
determines the amount and type of overtime for each employee and period, creates new
expenditure items for these values, and passes the values back to the report.
Related Topics
Overview of Tracking Overtime, Oracle Project Costing User Guide
Item Name
Package pa_client_extn_burden
Procedure override_rate_rev_id
9-28 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Override Burden Schedule ID
The Override Burden Schedule ID procedure (override_rate_rev_id) assigns a burden
cost schedule to a transaction.
You can view descriptions of all of the parameters for this procedure in the Oracle
Integration Repository. The Oracle Integration Repository is described in the preface of
this manual.
Related Topics
Entering Project and Task Options, Oracle Projects Fundamentals
Rate Schedules, Oracle Projects Implementation Guide
Item Name
Package PA_CLIENT_EXTN_BURDEN_RESOURCE
Function CLIENT_GROUPING
Procedure CLIENT_COLUMN_VALUES
Client Grouping
The CLIENT_GOUPING function returns a VARCHAR2 value which is a concatenated
string of the parameter values. You can customize the function to create the return
string usingthe attributes by which you want to group each transaction. This string can
be used as an additional grouping criterion.
Allocation Extensions
You can use the allocation extensions to expand the capabilities of the allocations
feature.
Each allocation extension includes examples that you can copy and modify.
The allocations extensions include:
• Allocation Source Extension, page 9-30
Description
For each allocation rule_id, the client populates the global session variable
x_source_proj_tasks_tbl of the data type table alloc_source_tabtype. The allocation run
process reads this table and uses the projects and tasks as the sources for any allocation
9-30 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
run that uses the rule. The projects and tasks are added to those projects and tasks
specified in the source lines.
The extension includes the following items:
Item Name
Package pa_client_extn_alloc
Procedure source_extn
Business Rules
The following business rules apply to this extension.
• The source project and the allocation rule must be from the same operating unit.
Parameters
You can view the parameters for this procedure in the Oracle Integration Repository.
The Oracle Integration Repository is described in the preface of this manual.
Datatypes
The datatype alloc_source_tabtype contains the following parameters:
EXCLUDE_FLAG VARCHAR2(1) (Default is N) Exclusion flag. If the value is Y, the project and task
are excluded from the source project and tasks.
Validation
The Generate Allocation Transactions process:
• Validates project_id against the single organization view pa_projects
If the validation fails, the Generate Allocation Transactions process populates the
message "The client extension returned an invalid project or task."
Description
For each allocation rule_id, the client populates the global session variable
x_target_proj_task_tbl of the data type table alloc_target_tabtype. The allocation run
process reads the table and uses the specified project and chargeable tasks as the target
for the allocation run. The system can use both the projects and tasks specified in the
extension as well as those specified on the Targets window.
The extension includes the following items:
Item Name
9-32 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Item Name
Package pa_client_extn_alloc
Procedure target_extn
Procedure Parameters
You can view the parameters for this procedure in the Oracle Integration Repository.
The Oracle Integration Repository is described in the preface of this manual.
Datatype Parameters
One of the parameters for the allocation target extension is the datatype
alloc_target_tabtype. This datatype contains the following parameters:
PERCENT NUMBER The percentage of the pool amount allocated to this target. Express
the value in numbers between 0 and 100 (for example, 45% is 45, not
.45). NVL (percent,0). See Note on the Percent Parameter, page 9-33
.
EXCLUDE_FLAG VARCHAR2(1) (Default is N) If Y, exclude the project and task from the target
project and tasks
Percent Parameter
If you want to use target percentages in a rule, specify the percentages either in the
Targets window or within the extension, but not both. The Generate Allocation
Transactions process ignores any target percentages in the rule if all of the following are
true:
• The basis method for the allocation rule is Target % and Spread Evenly or Target %
and Prorate
Validation
The Generate Allocation Transactions process:
• Validates project_id against view pa_alloc_target_proj_v
If the validation fails, the Generate Allocation Transactions process populates the
message "The client extension returned an invalid project or task."
Description
The extension includes the following items:
Item Name
Package pa_client_extn_alloc
Procedure offset_task_extn
Parameters
You can view the parameters for this procedure in the Oracle Integration Repository.
The Oracle Integration Repository is described in the preface of this manual.
Validation
The Generate Allocation Transactions process:
9-34 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• Validates task_id against pa_alloc_tgt_tasks_v
• Verifies that the returned tasks belong to the offset project that was provided as the
input parameter
If the validation fails, the Generate Allocation Transactions process returns the message
"The client extension returned an invalid project or task."
Description
For each allocation rule_id, the client populates the global session variable
x_offset_proj_task_tbl of data type table alloc_offset_tabtype. The allocation run process
reads the table to get the offset project, task, and offset amount for the allocation run.
The sum of offset amounts assigned to each offset project and task equals the total offset
amount (p_offset_amount).
The extension includes the following items:
Item Name
Package pa_client_extn_alloc
Procedure offset_extn
Procedure Parameters
You can view the parameters for this procedure in the Oracle Integration Repository.
The Oracle Integration Repository is described in the preface of this manual.
Datatype Parameters
One of the parameters for the allocation target extension is the datatype
alloc_offset_tabtype. This datatype contains the following parameters:
PROJECT_ID NUMBER (Required) Identifies the offset project. The offset project and the
allocation rule must be from the same operating unit. The offset
project must allow new transactions.
OFFSET_AMOUNT NUMBER (Required) The amount allocated to this project and task
(Nvl(offset_amount,0)
Validation
The Generate Allocation Transactions process:
• Validates the project_id against the single organization view pa_projects
• Validates the sum of the offset amount from client extension against
p_offset_amount
If the validation fails, the Generate Allocation Transactions process populates one of
these messages:
• 'The client extension returned an invalid project or task."
• 'The sum of offset amounts returned from the offset client extension does not equal
the total offset amount passed to the client extension."
9-36 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Description
The extension includes the following items:
Item Name
Package pa_client_extn_alloc
Procedure basis_extn
Procedure Parameters
You can view the parameters for this procedure in the Oracle Integration Repository.
The Oracle Integration Repository is described in the preface of this manual.
Validation
The Generate Allocation Transactions process validates the sum of basis amount
returned from the client extension.
If the validation fails, the Generate Allocation Transactions process populates the
message "The total basis amount cannot be 0. No allocation can be performed."
Description
Oracle Projects calls this extension before creating each transaction. If the extension
provides descriptive flexfield values, the system uses the values when creating the
transactions.
The extension includes the following items:
Item Name
Package pa_client_extn_alloc
Procedure txn_dff_extn
Procedure Parameters
You can view the parameters for this procedure in the Oracle Integration Repository.
The Oracle Integration Repository is described in the preface of this manual.
Description
Oracle Projects calls this extension before processing any allocation rule. If the status
code is zero (that is, if the dependencies specified in the extension are met) then the
process creates an allocation run. If the status code is other than zero, the system prints
the message provided by the x_message parameter.
The extension includes the following items:
Item Name
Package pa_client_extn_alloc
Procedure check_dependency
Parameters
The extension uses the following parameters:
9-38 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Parameter Usage Type Description
Related Topics
Allocations, Oracle Project Costing User Guide
Item Name
Package pa_client_extn_asset_alloc
Procedure asset_alloc_basis
• ASSET_BASIS_AMOUNT NUMBER
• TOTAL_BASIS_AMOUNT NUMBER
The table will already be populated with values for Project Asset ID, which correspond
to the assets associated with the current unassigned asset line via Grouping Levels and
Asset Assignments. The basis amount columns will contain zeros, which are then
replace with values determined by this extension. The Total Basis Amount should be
identical for each row in the table. You create the logic for determining the basis
amounts for each asset.
Checks are performed on each project asset to verify that:
• Each project asset ID is valid for the project
• The Capital Hold flag is set to N, indicating that the asset is eligible for new asset
line generation
• The Project Asset Type is AS-BUILT for capital asset lines (line type = C)
If you modify or add to assets in the P_ASSET_BASIS table, you must ensure that above
conditions are true for each asset.
The following additional validations are also performed:
• The Total Basis Amount is not equal to zero (to avoid division by zero)
• Each project asset in the array refers to the same Total Basis Amount
9-40 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
The Total Basis Amount is the sum of all Asset Basis Amounts in the table, and it is
stored on each row. The asset allocation uses the Asset Basis Amount/Total Basis
Amount for each project asset to prorate the amount of each unassigned asset line.
Related Topics
Implementing Client Extensions, page 7-2
Allocating Asset Costs, Oracle Project Costing User Guide
• If the Override Asset Assignment check box is selected on the Project Types
window (Capitalization tab). You can modify the extension to override the asset
assigned to specified tasks.
The extension includes an example that you can copy and modify.
Description
The extension includes the following items:
Package pa_client_extn_gen_asset_lines
Procedure client_asset_assignment
Parameters
You can view the parameters for this procedure in the Oracle Integration Repository.
The Oracle Integration Repository is described in the preface of this manual.
Validation
You can validate the asset identifier (asset_id) in the client extension body to avoid
exceptions during the PRC: Generate Asset Lines process.
If you do not do the validation in the client extension body, the system validates the
asset identifier after the extension returns it. The Generate Asset Lines exception report
lists the lines that fail validation.
Related Topics
Generate Asset Lines, Oracle Projects Fundamentals
9-42 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Item Name
Package pa_client_extn_asset_creation
Procedure create_project_assets
Related Topics
Implementing Client Extensions, page 7-2
Generating Summary Asset Lines, Oracle Project Costing User Guide
Generate Asset Lines, Oracle Projects Fundamentals
Item Name
Package pa_client_extn_pre_cap_event
Procedure pre_capital_event
Related Topics
Implementing Client Extensions, page 7-2
Creating Capital Events, Oracle Project Costing User Guide
Create Periodic Capital Events, Oracle Projects Fundamentals
9-44 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
interest calculation process.
The extension includes the following items:
Item Name
Package pa_client_extn_cap_int
Procedures
The following procedures are provided in the capitlized interest client extension.
You can view the parameters for these procedures in the Oracle Integration Repository.
The Oracle Integration Repository is described in the preface of this manual.
Related Topics
Implementing Client Extensions, page 7-2
Capitalizing Interest, Oracle Project Costing User Guide
Capitalized Interest, Oracle Projects Implementation Guide
9-46 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Item Name
Package pa_client_exten_cip_grouping
Function client_grouping_method
Client_Grouping_Method Function
You can view the parameters for this function in the Oracle Integration Repository. The
Oracle Integration Repository is described in the preface of this manual.
9-48 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
EXCEPTION
WHEN OTHERS THEN
null;
END;
END PA_CLIENT_EXTEN_CIP_GROUPING;
/
commit;
exit;
Related Topics
Project Types: Capitalization Information, Oracle Projects Implementation Guide
Creating a Capital Asset in Oracle Projects, Oracle Project Costing User Guide
Item Name
Package pa_client_extn_cip_acct_ovr
Procedure cip_acct_override
Related Topics
Implementing Client Extensions, page 7-2
Creating and Preparing Asset Lines for Oracle Assets, Oracle Project Costing User Guide
Item Name
Package pa_client_extn_deprn_exp_ovr
Procedure deprn_exp_acct_override
9-50 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
The Oracle Integration Repository is described in the preface of this manual.
Related Topics
Implementing Client Extensions, page 7-2
Defining and Processing Assets, Oracle Project Costing User Guide
Interface Assets, Oracle Projects Fundamentals.
Related Topics
Cost Accrual Identification Extension, page 10-34
• Receiver organization: The organization that owns the task to which the transaction
is charged
To override the cross-charge identification, code this extension to use a higher level in
the organization hierarchy to derive the appropriate provider and receiver
organizations and then determine if a transaction is to be a cross-charged transaction.
Description
The extension is identified by the following items:
Item Name
Package PA_CC_IDENT_CLIENT_EXTN
Procedure override_prvdr_recvr
Parameters
You can view the parameters for this procedure in the Oracle Integration Repository.
The Oracle Integration Repository is described in the preface of this manual.
Validation
The system verifies the returned values to ensure that they are valid organizations
within the business group.
When you run a cost distribution process or use the Expenditure Items window to
9-52 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
adjust cross-charged transactions, the system does the following:
1. Identifies the transaction as a cross-charged transaction
2. Determines the cross-charge processing method (based on how you set up the
cross-charge options)
3. Calls the extension so you can override the cross-charge processing method
Description
The extension is identified by the following items:
Item Name
Package PA_CC_IDENT_CLIENT_EXTN
Procedure override_cc_processing_method
Prerequisites
The transaction must be a cross-charged transaction.
Parameters
You can view the parameters for this procedure in the Oracle Integration Repository.
The Oracle Integration Repository is described in the preface of this manual.
Validation
The system validates the value returned for the cross-charge code to ensure that it meets
the following rules:
Description
This extension is identified by the following items:
Item Name
Package PA_CC_TP_CLIENT_EXTN
Procedure determine_transfer_price
9-54 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Important: Do not change the name of the extension procedures or
parameters. Also, do not change the parameter types or parameter
order in your procedure. After you write a procedure, compile it and
store it in the database. For more information, see: Writing PL/SQL
Procedures, page 7-4.
Prerequisites
• Complete all the setup steps described in the Cross Charge - Intercompany Billing
setup steps section in the Oracle Projects Implementation Checklist, Oracle Projects
Implementation Guide.
• Run the cost distribution processes for new transactions or use the Expenditure
Items window to perform cross-charge adjustments on existing transactions. Both
processes identify cross-charge transactions.
• Run the processes PRC: Distribute Borrowed and Lent Amounts or PRC: Generate
Intercompany Invoices to process transactions that are identified as cross charged
and that require borrowed and lent or intercompany processing.
Parameters
You can view the parameters for this procedure in the Oracle Integration Repository.
The Oracle Integration Repository is described in the preface of this manual.
Validation
The system validates that you have provided a value for only one of the following
output audit parameters:
• x_bill_rate
• x_bill_markup_percentage
Description
This extension is identified by the following items:
Item Name
Package PA_CC_TP_CLIENT_EXTN
Procedure override_transfer_price
Prerequisites
• Complete all the setup steps described in the Cross Charge - Intercompany Billing
setup steps section in the Oracle Projects Implementation Checklist, Oracle Projects
Implementation Guide.
• Run the cost distribution processes for new transactions or use the Expenditure
Items window to perform cross-charge adjustments on existing transactions. Both
processes identify cross-charge transactions.
• Run the processes PRC: Distribute Borrowed and Lent Amounts or PRC: Generate
Intercompany Invoices to process transactions that are identified as cross charged
and that require borrowed and lent or intercompany processing.
Parameters
You can view the parameters for this procedure in the Oracle Integration Repository.
The Oracle Integration Repository is described in the preface of this manual.
Validation
The system validates that you have provided a value for only one of the following
9-56 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
output audit parameters:
• x_bill_rate
• x_bill_markup_percentage
Description
The extension is identified by the following items:
Item Name
Package PA_MULTI_CURR_CLIENT_EXTN
Procedure override_curr_conv_attributes
Prerequisites
• Complete all the setup steps described in the Cross Charge - Intercompany Billing
setup steps section in the Oracle Projects Implementation Checklist, Oracle Projects
Implementation Guide.
• Run the cost distribution processes for new transactions or use the Expenditure
Items window to perform cross-charge adjustments on existing transactions. Both
• Run the processes PRC: Distribute Borrowed and Lent Amounts or PRC: Generate
Intercompany Invoices to process transactions that are identified as cross charged
and that require borrowed and lent or intercompany processing.
Parameters
You can view the parameters for this procedure in the Oracle Integration Repository.
The Oracle Integration Repository is described in the preface of this manual.
Validation
Oracle Projects validates that the values returned by the client extension meet all
conversion requirements.
Description
The extension is identified by the following items:
Item Name
Package PA_CC_AP_INV_CLIENT_EXTN
Procedure override_exp_type_exp_org
9-58 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Procedures, page 7-4.
Prerequisites
Complete the following actions before you use this extension:
• Complete all the implementation steps for cross charge and intercompany billing.
See Oracle Projects Implementation Checklist, Oracle Projects Implementation Guide.
• Run the cost distribution process for the new transactions or use the Expenditure
Items window to perform cross charge adjustments on existing transactions. Both
processes identify cross charge transactions.
• Run the PRC: Tieback Invoices from Receivables process to tie back the receivables
invoices and create the internal payables invoices.
Parameters
You can view the parameters for this procedure in the Oracle Integration Repository.
The Oracle Integration Repository is described in the preface of this manual.
Validation
The system performs the following validations:
• The value of x_expenditure_type must be a valid expenditure type for the
expenditure type class of the supplier invoice.
Related Topics
Defining Provider and Receiver Controls, Oracle Projects Implementation Guide
This chapter describes the client extensions in the Oracle Project Billing application.
This chapter covers the following topics:
• Funding Revaluation Factor Extension
• Billing Cycle Extension
• Billing Extensions
• Cost Accrual Billing Extension
• Cost Accrual Identification Extension
• Labor Billing Extensions
• Non-Labor Billing Extensions
• Retention Billing Extension
• Automatic Invoice Approve/Release Extension
• Output Tax Extension
• Receivables Installation Override Extension
• AR Transaction Type Extension
Package Pa_Client_Extn_Funding_Reval
Procedure Funding_Revaluation_factor
You can view the parameters for this procedure in the Oracle Integration Repository.
The Oracle Integration Repository is described in the preface of this manual.
Item Name
10-2 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Item Name
Package pa_client_extn_bill_cycle
Procedure get_next_billing_date
Billing Extensions
Billing extensions allow you to implement company-specific business rules to create
automatic revenue and billing events. The Billing Extensions window requires you to
specify either an amount or percentage when you assign the extension to a project type,
project, or task.
These fields can be used as parameters in the billing extensions. The values for the
parameters are available in the view PA_BILLING_EXTN_PARAMS_V. This view
contains a single row that has all the conversion attributes used in the billing extension
procedures.
With billing extensions, you can automatically calculate summary revenue and invoice
amounts during revenue and invoice generation based on unique billing methods.
These billing amounts are accounted for using events. Some examples of billing
extensions you can implement are:
• Fee
• Surcharge
This essay describes the implementation steps of billing extensions, as well as the
processing of billing extensions and automatic events within Oracle Projects.
We also provide you with detailed information about designing and writing billing
extensions, including information about public procedures and views you can use in
your billing extensions to derive additional information. Finally, we provide you with
information to help you test and debug billing extensions.
Implementation
To implement your company-specific billing methods, you first design and write rules
to calculate billing amounts using PL/SQL procedures. You then enter the billing
extension definition in Oracle Projects to specify additional information (such as the
procedure name to call) that is used by the revenue and invoice programs to process the
extension.
Assignments
You define billing extensions in the Billing Assignments window and specify whether
an amount or percentage is required for the extension when assigning the extension to a
project type or task. Along with the amount and percentage, you can specify the
currency and conversion attributes.
The values entered in the Billing Assignments window can be used in your billing
extension by accessing the view pa_billing_extn_params_v. This view, which has a
single row with all the conversion attributes, can be used to create multi-currency
events with this extension. If you have custom code in your billing extension and want
to use the parameters, you must update the extension.
10-4 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Budget Type
You can specify which budget type to use as input to calculations that use budgeted
amounts. If no value is given for budget type, the billing extension uses the Approved
Cost Budget and/or Approved Revenue Budget. See: Retrieving Budget Amounts, page
10-24.
Processing
When you run the revenue or invoice processes, Oracle Projects looks for active billing
assignments. When an assignment is found, the processes read the billing extension
definition and call the appropriate procedure. If there are multiple active assignments
for a project or task, Oracle Projects calls the extension in ascending order based on the
processing order specified in the billing extension definition.
Oracle Projects executes top task level assignments once for each top task. Billing
extensions assigned to the project and the project type are executed once for each
project, except in the case of task level funding. If a project uses task level funding,
Oracle Projects executes billing extensions assigned to the project and the project type,
once for each authorized top task on the project.
Automatic Events
Your billing extension calculates revenue and invoice amounts and creates one or more
Automatic events to account for the revenue and invoice amounts. Oracle Projects
processes these events as it does other manually entered events. You can store audit
amounts for these events in the audit columns of the Events table.
Automatic events are events having an event type classification of Automatic. With
automatic events, you can increase or decrease revenue and invoice amounts. You can
also independently specify revenue and invoice amounts for the events. If an event has
both a nonzero revenue amount and a nonzero invoice amount, you must use the same
sign for both amounts. Some examples of revenue and invoice amounts for these events
are:
• Revenue = $100, Invoice = $0
Package MyPackageName
Procedure insert_events
10-6 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• Additional implementation data required
• Order
• Calling Processes
• Required Inputs
• Calling Place
Attribute Value
Regular Processing
Percentage
Project Specific
10-8 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Understanding Billing Extensions Classes
There are three primary classes of billing extensions that you can write. The classes
differ by how you calculate the revenue and invoice amounts:
• How are the amounts calculated? What are the inputs to the calculation?
• How are the amounts processed: (1) for reporting purposes (2) for accounting
purposes, (3) for invoicing?
• How are the attributes of the automatic event set: event type, event organization,
event description, completion date?
• Under what conditions is this calculation used? What types of projects? What types
of billing terms?
• How is the billing extension processed for adjustments? Adjustments are defined as
revenue credits or invoice credit memos, based on other transactions.
• Can this billing extension be called with other billing extensions on the same
project/task? If so, what is the dependency and order of your billing extensions?
• Are there implications of the level at which the project is funded - either the project
level or the top task level? If so, what are they?
Once you answer these questions, you should have the appropriate information to
define a billing extension in Oracle Projects and to document the functional
specifications for your technical resource to use in writing the PL/SQL procedure.
10-10 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Concepts in Billing Extension Definitions
When you enter billing extension definitions, you specify parameters that specify how
your billing extension is processed in Oracle Projects. This section explains some of
these parameters.
Calling Process
You specify if the billing extension is called by the revenue generation program, the
invoice generation program, or both programs.
When you call billing extensions during revenue generation, you can create events with
a revenue amount, or with a revenue amount and a bill amount, as long as the revenue
amount is nonzero.
When you call billing extensions during invoice generation, you can create events with
a bill amount, or with a revenue amount and a bill amount, as long as the bill amount is
nonzero.
The following table shows examples of events with various revenue and bill amounts
that you can create in the Generate Draft Revenue calling process.
The following table shows examples of events that you can create in the Generate Draft
Invoice calling process.
If you create an event with both revenue and bill amounts, the revenue amount and the
bill amount do not have to be the same. You can create positive or negative event
amounts with billing extensions.
10-12 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Regular Revenue Processing
• PRE Billing Extension
Standard delete invoice processing is then performed, followed by the following billing
extension call:
• Call POST Billing Extension
Standard delete invoice processing is then performed, followed by the following billing
extension calls:
• CANCEL Billing Extension
Standard credit memo processing is then performed, followed by the following billing
extension calls:
• ADJ Billing Extension
10-14 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• Pre-Processing
• Delete Processing
• Adjustment Processing
• Regular Processing
• Post-Regular Processing
• Post-Processing
Cancel Invoice Processing Cancel invoice processingbilling extensions are called after
the invoice cancellation for a project. This is only applicable
to invoice billing extensions. The Generate Draft Invoices
process does not allow you to create automatic events in
this calling place.
The following table shows an example of the different automatic events created by
using different calling places for a billing extension based on a percentage of the
amount invoiced.
10-16 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Period Invoice Number Invoice Invoice Amount Automatic Automatic
Credited Event Amount Event Amount
(Regular and (Regular Only)
Adjustment)
2 2 1 -500 -50
The billing extension called only during regular processing accounted for the total
amount invoiced, including the credited amount during regular processing as
illustrated by the event created for invoice number three.
Transaction Independent
Once you determine the inputs to your calculations, you can determine if your billing
extension calculation is solely dependent on other transactions being processed, or if
your calculation can be executed without any other transactions being processed.
Transactions refer to expenditure items and events.
Transaction independent billing extensions are executed for each project with an active
billing assignment, even if there are no transactions to process. This type of billing
extension relies on an input other than billable transactions on a project. If this input
changes, the calculated billing amount changes, which you want to record. For example,
the cost-to-cost revenue accrual method, which relies on the budgeted cost and revenue
amounts. If the budgeted cost or budgeted revenue changes, the revenue amount
changes. You want to record this revenue amount change even if no other transactions
are processed in revenue generation. This category includes the class of billing
extensions that calculate revenue and invoice amounts based on values independent of
the amounts included on draft revenue and invoices.
Transaction dependent billing extensions are executed only if there are other transactions
processed. An example of this type of billing extension is surcharge in which you
calculate a percentage of the amount billed. You do not want to bill surcharge if no
other transactions are billed.
Transaction dependent billing extensions are called only if billable expenditure items
and events exist that need to be processed. For example, there may be new transactions
that are set to Non-Billable, which are not going to generate any revenue or bill amount
2 2 1 -500 -50
3 4 - - 100
10-18 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Billing Extension Calculation Regular Adjustment Transaction
Independent
There are exceptions to the general rule shown in the above table. You may define a
billing extension as transaction dependent, but to be called only during regular
processing. For example, you want to charge interest on outstanding invoices, but only
want to include the interest on an invoice that has other transactions included on it. The
interest calculation itself is a transaction independent calculation, but you define it as
transaction dependent so that it is calculated only when other transactions are
processed for an invoice. You do not want to create invoices with only an interest
amount.
Project-Specific
You need to determine if your billing extension implements a company policy across
projects or if it is applicable only to specific projects for which it is negotiated.
Project-specific billing extensions are those methods which are applicable only to specific
projects for which they are negotiated. Project users assign these billing extensions to
projects and top tasks; you cannot assign these billing extensions to project types.
Non-project-specific billing extensions are those methods which implement company
policy across projects. You assign these billing extensions to project types; the billing
extension applies to all projects of that project type. Project users cannot assign these
billing extensions to projects.
Event Attributes
When designing billing extensions, you can specify the attributes of automatic events
that are created by billing extensions. You can use the following default values or
override the defaults for any of these attributes.
Event Type Defaults value is event type on billing extension. Event type classification
must be Automatic.
Event Organization Default value is managing organization of project or task to which the event
is assigned.
Completion Date Accrue through date for events created during revenue generation, bill
through date for events created during invoice generation.
Revenue Amount For billing extensions called in revenue generation, must specify revenue
amount.
Bill Amount For billing extensions called in invoice generation, must specify bill amount.
Descriptive Flexfield Segments Can pass any value as long as the value is valid with the descriptive
flexfields you have defined for events.
Audit Columns in Events For values used in billing extension calculations. NOTE: not displayed to
the user, but available in the table.
Budget Attributes
When you design billing extensions, you can specify the attributes of budgets that are
used by billing extensions. You can use the following default values or override the
default values for any of these attributes.
10-20 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Writing Billing Extension Procedures
Oracle Projects revenue and invoice generation programs call your billing extension
procedures which define the logic to calculate and create automatic events according to
your rules.
Your procedure can call other procedures or views. You can use predefined procedures
and views, or you can write your own procedures. We discuss these predefined
procedures and views in more detail in the pages that follow.
Procedure Template
The extension is identified by the following items:
Item Name
You can view the parameters for this procedure in the Oracle Integration Repository.
The Oracle Integration Repository is described in the preface of this manual.
Note: You cannot create project level events for projects using task level
funding. You must write your billing extensions so that they work if
they are called with or without the X_top_task_id parameter.
Note: You cannot use the public billing extension procedures or views
by themselves or from any other client extension.
Calculating Amounts
Oracle Projects provides two views that you can use to identify detail expenditure items
included on draft revenue and draft invoices processed in a given run. Use these views
in your calculations for transaction dependent billing extensions. The views display the
detail transactions processed for the context in which a billing extension is called, which
consists of a project, a top task (if task level assignment), a calling place, and a request
ID.
• PA_BILLING_REV_TRANSACTIONS_V (use this in procedures that are called
during revenue generation)
10-22 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
current run.
Inserting Events
Use the insert_events procedure to create automatic events in the events table. You
must use this procedure when creating events using billing extensions, as it contains
validation that ensures the data integrity of the events that you create.
If this procedure encounters an error, it displays an error message in the log file of the
process that called the procedure and does not create an event.
The procedure name is MyPackageName_pub.insert_event. You can view descriptions of
the parameters for this procedure in the Oracle Integration Repository. The Oracle
Integration Repository is described in the preface of this manual.
Business Rules:
• If the billing extension creates a new automatic event from a transaction
adjustment, the billing extension looks for the original event number
(X_event_num_reversed). If the billing extension finds no value, you will receive
the error message "You must have specified original event number for ADJ
automatic event."
Note: Oracle Projects provides a view that you can use to identify
to original automatic event information of the current project, top
task, and the credited invoices of the current request:
• PA_BILLING_ORIG_EVENTS_V
• If the transaction currency code, rate, and amounts are not passed to the
procedure, the procedure uses the project functional currency code and
amounts.
• If the transaction currency is the same as the project functional currency, the
procedure ignores the rate type, rate date, and rate.
Error Handling
Use the insert_message procedure to create debugging and error messages in the
PA_BILLING_MESSAGES table. When you encounter a problem with billing
extensions, you can review these messages in the log file of the revenue and invoice
processes that call the billing extension, or you can review the error message table.
The name of this procedure is MyPackageName.insert_message.
You can view descriptions of the parameters for this procedure in the Oracle Integration
Repository. The Oracle Integration Repository is described in the preface of this
manual.
10-24 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
processes both events, which will lead to duplicate event amounts.
To avoid the creation of duplicate events, you can include logic in your billing extension
to create an automatic event only if no unprocessed automatic events exist or if it will fit
under the hard limit and be processed accordingly. Otherwise, the billing extension
does not create the event, and you should delete the revenue without releasing it. If you
do release the revenue, you need to calculate and insert the event manually.
In some transaction independent cases, you may wish to insert an amount that fits
under the limit. In most transaction dependent cases, you should insert the entire
amount, regardless of the limit to account for amounts based on processed transactions.
Tip: If you are creating positive and negative event amounts, create the
negative amount first, so that it increases available funding.
• Add one call to the insert_event procedure to create an event of a given amount
• Process the project through revenue and invoice generation; you should run the
process that is appropriate for the billing extension
Note: Be sure that the appropriate SQL statements handle both project
level and top task level billing assignments.
If you are writing transaction dependent billing extensions, you should create the
appropriate transactions on your test project and then process the transactions through
revenue accrual or invoicing. Note the request ID of the process. All of the transactions
are marked with this request ID, so you can use the request ID in testing your SQL
statements in SQL*Plus. You can then use one of the following views to read the
appropriate transactions processed by the request ID.
• PA_BILLING_REV_TRANSACTIONS_V
• PA_BILLING_INV_TRANSACTIONS_V
The views use PL/SQL functions, which are included in the view definition, to
determine the appropriate project, task, calling place, and request ID variables for
which the billing extension is being run. These variables are set by the revenue
generation and invoice generation processes before the billing extension is executed. If
you do not set these variables, then the view returns all records for that project and task
10-26 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
in SQL*Plus. You can set these variables for your SQL*Plus session by running the
papbglob.sql script. You can test your SQL statements using views with the variables
that you want.
Step 3: Add SQL Statements One at a Time and Test in an Integrated Flow
After you test and verify each SQL statement that you plan to use in your billing
extension, you can add one SQL statement at a time to your billing extension definition.
Each time after you add a new part of the logic to the billing extension, you should then
test your billing extension in an integrated revenue or invoice flow through Oracle
Projects to verify the logic that you just added. Continue this cycle for all of your SQL
statements to be included in your billing extension procedure.
You may take another approach by adding all of your logic to the billing extension and
then performing integrated testing. This method is harder to debug when you
encounter problems.
• Split transaction
Once you have verified all of the integrated test cases, you have completed your billing
extension implementation.
• Make sure that your procedure is compiled and stored in the database
• Make sure that there is not another invalid or outdated procedure executing instead
of the procedure you intend to execute. Inactivate all other extensions at the
appropriate level to ensure that only the extension you expect to execute is
executing.
Business Rule
The first step in the design process is to determine the business rule that you want to
solve using client extensions.
Business Requirements
After you define the business rule you want to solve using client extensions, list the
business requirements behind the business problem. This will help ensure that you are
acknowledging all of the aspects of the business problem during the design stage.
• The surcharge is applicable only for projects for which it is negotiated. Project users
specify the communication charge when they record the billing terms during
project setup.
• Usually, the percentage is 2%. However, some project managers are beginning to
negotiate 2.5% or 3% surcharges.
Required Extensions
You have determined that you will create a billing extension to automatically handle
the Communication Charge within the invoicing cycle.
10-28 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Tip: To review the sample PL/SQL code that corresponds to the
implementation of this case study, view the file PAXITMPS.pls.
In addition, you must include the steps to enter a communication charge for projects in
your company's procedures manual.
Design Requirements
You must consider and answer these additional questions for your billing extension.
• Labor Amount Invoiced is the labor bill amount on an invoice, excluding overtime
billed on the invoice.
• The default event description for the billing extension is Communication Charge. The
project users can override the value by setting the optional descriptive flexfield
segment called 'Event Description', which will be used to override the default event
description.
• The completion date is set to the bill through date of the invoice.
10-30 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
The communication surcharge must be processed before the other billing
extensions.
Funding Level?
Are there implications of the level at which the project is funded - either the project
level or the top task level? If so, what?
• There are no special implications.
Tip: You can use the same PL/SQL procedure for another billing
extension that uses the same logic of adding a surcharge based on a
percentage multiplied by the labor amount invoiced.
Attribute Value
Procedure pa_demo_surcharge.execute
Order 20
Product-Specific Yes
Transaction Independent No
Testing
You specify the following test cases to use in testing your billing extension procedure.
10-32 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Scenario Run Inv Num Inv Num Inv Amt Invoice % Comm
Credited Labor Charge
Amt Amt
You now have all of the components of your functional design to give to your technical
resource for writing the PL/SQL procedures.
Related Topics
Designing Client Extensions, page 7-2
Event Types, Oracle Projects Implementation Guide
Defining Project Types, Oracle Projects Implementation Guide
Item Name
Package PA_REV_CA
You can view the parameters for the following procedures in the Oracle Integration
Repository. The Oracle Integration Repository is described in the preface of this
manual.
For more information about using the Cost Accrual Extension, see Revenue-Based Cost
Accrual, Oracle Project Billing User Guide.
Calculation Procedure
The calculation procedure (calc_ca_amt) is the main procedure for calculating and
generating the cost accrual entries.
10-34 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
revenue generation. See: Revenue-Based Cost Accrual, Oracle Project Billing User Guide
and Generate Draft Revenue, Oracle Projects Fundamentals.
The extension includes the following items:
Item Name
Package PA_CC_CA
Procedure identify_ca_projects
You can view the parameters for this procedure in the Oracle Integration Repository.
The Oracle Integration Repository is described in the preface of this manual.
The Labor Billing Extensions is called during the revenue generation process to
determine labor revenue and billing amounts.
The extension is identified by the following items:
Item Name
Package PA_Client_Extn_Billing
Procedure Calc_Bill_Amount
Business Rules
Oracle Projects processes labor billing extensions for activity based billing during
revenue generation. During processing, if Oracle Projects encounters a transaction that
has a derived bill amount from a labor billing transaction, it skips the standard bill
amount and rate calculation section of the revenue process for that transaction.
Consider the following design issues for labor billing extensions:
• What are the conditions and circumstances in which you cannot use the standard,
activity based billing methods (identified by the WORK distribution rule)
supported by Oracle Projects?
• How do you store rates and other information that your calculations may require?
How are the rates and other information maintained?
• What are the exception conditions for your labor billing extension? What is the
exception handling if you cannot find a rate that should exist?
10-36 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Amount • No value is passed in to the x_amount parameter. Do
not expect an amount in this parameter when you
create calculations in the extension.
Markup Percentage If you specify that your amount is based on markup, you
should populate x_markup_percentage with the markup
percentage amount, so that the expenditure item record
will contain accurate data.
x_status < 0 An Oracle error occurred and the process did not complete.
Oracle Projects writes an error message to the process log
file and rolls back the transactions processed for the entire
project.
Related Topics
Revenue Flow, Oracle Project Billing User Guide
The Non Labor Billing Extension is called during the revenue generation process to
determine non-labor revenue and billing amounts. The extension is identified by the
following items:
Item Name
Package pa_non_labor_bill_clt_extn
Procedure calc_bill_amount
Business Rules
Oracle Projects processes non-labor billing extensions for activity based billing during
revenue generation. During processing, if Oracle Projects encounters a transaction that
has a derived bill amount from a non-labor billing transaction, it skips the standard bill
amount and rate calculation section of the revenue process for that transaction.
Consider the following design issues for non-labor billing extensions:
• What are the conditions and circumstances under which you cannot use the
standard, activity-based billing methods (identified by the WORK distribution rule)
supported by Oracle Projects?
10-38 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• How is the bill amount calculated in these cases?
• How do you store rates and other information that your calculations require? How
are the rates and other information maintained?
• What are the exception conditions for your non-labor billing extension? What is the
exception handling if you cannot find a rate that should exist?
If you specify that your amount is based on a bill rate, Oracle Projects populates the
bill rate of the expenditure item by dividing the bill amount by the number of
hours. If you specify that your amount is a markup, Oracle Projects does not set the
bill rate.
• Using Status: Use the x_status parameter to handle error conditions for your
procedure. This parameter indicates the processing status of your extension as
follows:
• x_status = 0 The extension executed successfully.
• x_status < 0 An Oracle error occurred and the process did not complete. Oracle
Projects writes an error message to the process log file and rolls back the
transactions processed for the entire project.
Item Name
Package pa_client_extn_retention
Procedure BILL_RETENTION
You can view the parameters for this procedure in the Oracle Integration Repository.
The Oracle Integration Repository is described in the preface of this manual.
Related Topics
Retention Billing, Oracle Project Billing User Guide
10-40 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Item Name
Package pa_client_extn_inv_actions
Business Rules
Oracle Projects calls the Automatic Invoice Approve/Release Extension during invoice
generation. During processing, if the extension returns an approval flag or release flag
set to yes, then the process approves (and releases, if applicable) the invoice.
You must determine to what extent the Automatic Invoice Approve/Release Extension
will be used across your projects. We recommend that you consider these design issues:
• What are the conditions and circumstances that require your project invoices to be
automatically approved?
• What are the conditions and circumstances that require your project invoices to be
automatically approved and released?
x_invoice_class
The valid values of x_invoice_class are:
x_status
Use the x_status parameter to handle error conditions for your procedure. This
parameter indicates the processing status of your extension as follows:
Value Description
10-42 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Item Name
Package pa_client_extn_output_tax
Procedure get_tax_codes
The name for this procedure is get_tax_codes. The get tax codes procedure assigns a tax
classification code to an invoice line.
You can view the parameters for this procedure in the Oracle Integration Repository.
The Oracle Integration Repository is described in the preface of this manual.
Related Topics
Setting Up Tax for Oracle Project Invoices in Oracle E-Business Tax, Oracle Projects
Implementation Guide
Oracle E-Business Tax User Guide
Item Name
Package pa_override_ar_inst
Procedure get_installation_mode
Business Rules
To use this extension, you must complete a full installation of Oracle Receivables, then
override the installation mode to shared, using the Receivables Installation Override
extension.
The following conditions exist when you override the installation to shared mode:
• The Tax Code fields are disabled in all windows where they appear.
• The GL date for receivables invoices is calculated based on GL periods, rather than
Oracle Receivables periods.
If you override the Receivables installation, you can use function security to disable
functions that are not available with a standard shared Receivables installation, such as
Invoice: AR Invoice (drill down to Oracle Receivables to view an invoice).
10-44 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Get Installation Mode
The get_installation_mode procedure returns an installation mode to the calling
program.
You can view the parameters for this procedure in the Oracle Integration Repository.
The Oracle Integration Repository is described in the preface of this manual.
To override your full installation of Oracle Receivables to a shared mode, replace the
statement above with the following statement:
x_ar_inst_mode := 'S'
Item Name
Package pa_client_extn_inv_transfer
Procedure get_ar_trx_type
x_invoice_class
The valid values of x_invoice_class are:
Value Description
x_status
Use the x_status parameter to handle error conditions for your procedure. This
parameter indicates the processing status of your extension as follows:
Value Description
10-46 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
11
Oracle Project Resource Management Client
Extensions
This chapter describes the client extensions in the Oracle Project Resource Management
application.
This chapter covers the following topics:
• Assignment Approval Changes Extension
• Assignment Approval Notification Extension
• Candidate Notification Workflow Extension
The default project assignment approval workflow process calls the assignment
approval changes extension.
Item Name
Package pa_client_extn_asgmt_apprvl
Function is_asgmt_appr_items_changed
Related Topics
Implementing Client Extensions, page 7-2
11-2 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Item Name
Package pa_client_extn_asgmt_wf
You can view the parameters for these procedures in the Oracle Integration Repository.
The Oracle Integration Repository is described in the preface of this manual.
You can view the parameters for this procedure in the Oracle Integration Repository.
The Oracle Integration Repository is described in the preface of this manual.
Related Topics
Implementing Client Extensions, page 7-2
Item Name
Package pa_client_extn_cand_wf
The USERS_LIST_TBLTYP parameters for this package are shown in the following
table:
11-4 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Parameter Required Data Type Description
Name
Related Topics
Implementing Client Extensions, page 7-2
This chapter describes the client extensions in the Oracle Project Management
application.
This chapter covers the following topics:
• Workplan Workflow Extension
• Progress Management Extension
• Budget Calculation Extensions
• Budget Verification Extension
• Budget Workflow Extension
• Estimate to Complete Generation Method Extension
• Control Item Document Numbering Extension
• Issue and Change Workflow Extension
• Project Status Report Workflow Extension
• Custom Performance Measure Extension
• Project Performance Status Extension
• Project Status Inquiry (PSI) Extension
• Project Status Inquiry Burdening Commitments Extension
• Project Status Inquiry Commitment Changes Extension
Item Name
Package pa_workplan_workflow_client
You can view the parameters for the following procedures in the Oracle Integration
Repository. The Oracle Integration Repository is described in the preface of this
manual.
Related Topics
Designing Client Extensions, page 7-2
12-2 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Item Name
Package pa_progress_client_extn
Procedure get_task_res_override_info
You can view the parameters for this procedure in the Oracle Integration Repository.
The Oracle Integration Repository is described in the preface of this manual.
Note: You can use function security to control whether users can
override calculated amounts, based on user responsibility. The
functions pertaining to this feature have names that begin with Budget:
Line Source. See: Function Security in Oracle Projects, Oracle Projects
Implementation Guide.
Package PA_Client_Extn_Budget
• calc_burdened_cost
• calc_revenue
Business Rules
You should determine the logic and the additional data elements your client extensions
require before you write them. We recommend that you consider the following design
issues for budget calculation extensions:
• What conditions should be true for a budget or forecast before it can be baselined?
• What are the conditions or circumstances under which you will derive the raw,
burdened, or revenue amounts?
• How will you store the rates: in Oracle Projects tables or in custom tables?
• In what order should the calculations be executed if you have multiple rules?
You can use budget calculation extensions to calculate the following budget and
forecast amounts:
Raw Cost Oracle Projects calls the budget calculation extension for
raw cost when you enter a quantity in a cost budget or
forecast plan line. If you define rules in the budget
calculation extension that return a value, then Oracle
Projects displays the calculated amount in the Raw Cost
amount field.
Examples of raw cost calculation rules that you can define
12-4 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
are:
• Calculate raw cost for an employee based on the
number of hours entered
Burdened Cost Oracle Projects calls the budget calculation extension for
burdened cost when you enter a quantity or a raw cost
amount in a cost budget or forecast plan line. If you define
rules in the budget calculation extension that return a
value, then Oracle Projects displays the calculated amount
in the Burdened Cost amount field.
Examples of burdened cost calculation rules that you can
define are:
• Calculate raw cost andburdened cost for an employee
based on the number of hours entered
Procedures
Following are descriptions of the procedures for this client extension.
You can view the parameters for these procedures in the Oracle Integration Repository.
The Oracle Integration Repository is described in the preface of this manual.
Tip: Use the Cost Plus API to calculate the burdened cost amount using
the burdened multipliers you have defined for the project or task. See:
Cost Plus API, page 4-7.
Calculate Revenue
The name for this procedure is calc_revenue.
12-6 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
process did
not complete
Related Topics
Designing Client Extensions, page 7-2
Item Name
Package PA_Client_Extn_Budget
You can view the parameters for these procedures in the Oracle Integration Repository.
The Oracle Integration Repository is described in the preface of this manual.
Related Topics
Designing Client Extensions, page 7-2
Item Name
Package pa_client_extn_budget_wf
Before you implement this extension, you must define the rules that will determine
whether to call Oracle Workflow to baseline a budget or forecast, and to select the
budget or forecast approver.
You can view the parameters for the following procedures in the Oracle Integration
Repository. The Oracle Integration Repository is described in the preface of this
manual.
12-8 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Determine Whether to Call Workflow
The name of this procedure is budget_wf_is_used.
When Oracle Projects determines whether to call Oracle Workflow for a budget or
forecast status change, it bases the decision on the settings of the budget type or plan
type, and the project type. You can use this procedure to override those settings and to
add additional requirements.
Package PA_FP_FCST_GEN_CLIENT_EXT
• type l_pds_rate_dtls_tab is
TABLE 1 of l_pds_rate_dtls_rec_type;
You can view the parameters for this procedure in the Oracle Integration Repository.
The Oracle Integration Repository is described in the preface of this manual.
Item Name
12-10 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Item Name
Package pa_ci_number_client_extn
Related Topics
Implementing Client Extensions, page 7-2
Control Item Types, Oracle Projects Implementation Guide
Item Name
Package pa_control_items_wf_client
You can view the parameters for the following procedures in the Oracle Integration
Repository. The Oracle Integration Repository is described in the preface of this
manual.
Start Workflow
The name of this procedure isstart_workflow. Use this procedure to start the workflow
Related Topics
Implementing Client Extensions, page 7-2
Contol Item Types, Oracle Projects Implementation Guide
Item Name
Package pa_report_workflow_client
You can view the parameters for the following procedures in the Oracle Integration
Repository. The Oracle Integration Repository is described in the preface of this
manual.
Start Workflow
The name of this procedure is start_workflow. You can use this workflow to change or
12-12 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
add workflow parameters and to start the workflow.
Notification Party
The name of this procedure is set_report_notification_party. This procedure determines
which users receive workflow notifications when a project status report is approved,
published, or rejected.
Related Topics
Designing Client Extensions, page 7-2
Item Name
Package PJI_PJP_SUM_CUST
You can view the procedure parameters in the Oracle Integration Repository. The
Oracle Integration Repository is described in the preface of this manual.
The Custom Performance Measure client extension provides the following procedures:
Related Topics
Implementing Client Extensions, page 7-2
Project Performance Reporting, Oracle Projects Implementation Guide
Item Name
Package pa_perf_status_client_extn
Procedure get_performance_status
12-14 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• the relationship between the severity and the numeric value given in the
PREDEFINED_FLAG column of the PA_LOOKUPS view
• the relationship between the key performance area statuses and the overall
performance status of the project
You can view the procedure parameters in the Oracle Integration Repository. The
Oracle Integration Repository is described in the preface of this manual. The required
parameters for this procedure are listed below:
• P_OBJECT_TYPE
• P_OBJECT_ID
• P_KPA_SUMMARY
Related Topics
Implementing Client Extensions, page 7-2
Control Item Types, Oracle Projects Implementation Guide
Project Performance Tracking, Oracle Projects Implementation Guide
• define the column prompt for the column in the Project Status Inquiry Columns
window
Running the PSI client extension will degrade the product's performance. Therefore,
define your client extension procedures with as narrow a scope as possible.
The extension is identified by the following items:
Item Name
Package pa_client_extn_status
You can view the parameters for the following procedures in the Oracle Integration
Repository. The Oracle Integration Repository is described in the preface of this
manual.
• TaskCustomExtn
• RsrcCustomExtn
• Proj_Tot_Custom_Extn
By default, these functions are disabled. If the Get Columns procedure is enabled for the
Project window, then one of these functions automatically disables the Project window
Totals button, unless the extension is modified.
12-16 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
If you enable the PSI Totals client extension, you can override the totals fields for all
thirty numeric columns on the Project window for which you assign values to the OUT
NOCOPY-parameters. The Project window displays NULL for any OUT
NOCOPY-parameter that is not assigned a value.
For added flexibility, the Totals query actually selects and summarizes columns from a
user-defined view, PA_STATUS_PROJ_TOTALS_V. By default, this view maps directly
to the base view queried by the PSI Project window. Providing you maintain the same
column names and data types for the first 34 columns, you may change the select
statement, substitute literals for columns, and add unions to
PA_STATUS_PROJ_TOTALS_V.
The name of the Get Totals procedure is Get_Totals.
Note: While the first 34 column names and data types are required for
the PSI Project window totals functionality, you may make
modifications, such as changing the select statement or adding unions
and new columns.
Related Topics
Project Summary Amounts, Oracle Project Management User Guide
Item Name
Package pa_client_extn_burden_summary
12-18 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
commitment transactions on the same expenditure item with raw cost amounts,
regardless of the burdening option you choose for a project type.
Related Topics
(All Project Types) Costing Information, Oracle Projects Implementation Guide
Drilling Down to Actuals, Commitments, and Events Detail, Oracle Project Management
User Guide
Storing, Accounting, and Viewing Burden Costs, Oracle Project Costing User Guide
Item Name
Package pa_client_extn_check_cmt
Procedure commitments_changed
• a commitment has been fully or partially converted to cost (for example, a purchase
order has been matched by a supplier invoice.)
If the commitments have changed, then the function returns a value of Y. Otherwise, it
returns the value N. If Y is returned, then the summarization process rebuilds the
commitment summarization amounts.
If you have modified the commitments view, you must modify this procedure so that it
can determine whether the user-defined commitments have changed since the last
summarization process.
The sample procedure includes the following assumptions:
• The user commitment view is PA_COMMITMENTS_OUTSIDE_SYSTEM
• The column CMT_HEADER_ID stores the header ID from the user view
• The column CMT_LINE_NUMBER stores the line number from the user view
You must determine which column or columns in your commitments view to check for
a change in value, and identify the procedure to check for new commitments.
12-20 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Part 4
ORACLE PROJECTS OPEN INTERFACES
13
Oracle Projects Open Interfaces
This chapter describes the open interfaces in the Oracle Projects applications.
This chapter covers the following topics:
• Transaction Import
• Transaction Import Interface
Transaction Import
Oracle Projects provides a single open interface, called Transaction Import. Transaction
Import enables you to load transactions from external cost collection systems into
Oracle Projects. Transaction Import creates pre-approved expenditure items from
transaction data entered in external cost collection systems. Examples of external cost
collection systems are:
• Timecard entry systems
• Electronic data collection systems for asset usage (computer, printer, phone, etc.)
• Payroll systems that calculate complex transactions for benefits, overtime, and other
labor charges
Related Topics
Transaction Import Interface, page 13-25
Expenditure Item Validation, Oracle Project Costing User Guide
Integrating with Oracle Project Manufacturing, Oracle Projects Fundamentals
13-2 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Transaction Import Process
2. Select all pending transactions that satisfy the selection criteria of the process report
and validate each transaction.
3. If there are invalid transactions, then the process flow includes the following steps:
2. After deleting rejected transactions from the interface table, fix the appropriate
data in the external source and re-import the transactions.
3. Return to Step 1.
4. If all transactions are valid, then create expenditure records in Oracle Projects.
5. If the transaction source is purgeable, then delete transactions from the interface
table. If not, then update the status of the transactions in the interface table to
Accepted.
13-4 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
PA_TRANSACTION_INTERFACE_ALL as indicated in the
PA_TRANSACTION_INTERFACE_ALL Table Description. If a value is not required
for a column, you may leave the column empty. See:
PA_TRANSACTION_INTERFACE_ALL Table Description, page 13-27
Transaction Sources
When you submit Transaction Import, you must identify the source of the transactions
that you want to import. The source can be any transaction source defined during
implementation. You can also use transaction sources predefined by Oracle Projects.
The list of values for the transaction source parameter displays all of the transaction
sources in the PA_TRANSACTION_SOURCES table. Any transaction source that has
pending records in the Transaction Interface table are marked with an asterisk in the list
of values.
Importing Transactions
After you populate the interface table, complete the following steps to import external
transactions into Oracle Projects:
You use the Submit Request window to run Transaction Import.
To import transaction data into Oracle Projects:
1. In the Navigator window choose Expenditures > Transaction Import > Import
Transactions. Oracle Projects opens the Submit Request window and enters the
PRC: Transaction Import request name.
Alternately, you can navigate to the Submit Requests window and submit the PRC:
Transaction Import process.
2. Choose the Transaction Source you want to process. (This field is required.)
4. Choose Submit.
Output Reports
Transaction Import has two output reports:
• an exception report, which lists all rejected transactions
13-6 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Related Topics
Submitting Requests, Oracle Projects Fundamentals
Transaction Import Interface, page 13-25
Transaction Import Report, Oracle Projects Fundamentals
• Overtime
• Expense Reports
• Usages
• Inventory
• Work in Process
• Miscellaneous
• Supplier Invoices
You can import the transactions listed above from any transaction source associated
with any expenditure type class.
• If the resource for the transaction has multiple available assignments, then the
assignment with the earliest start date is selected.
• If the resrouce for the transaction has no available assignments, then the transaction
Note: You can override the association logic for resources with
multiple available assignments using the transaction controls client
extension. For information on transaction controls client extensions,
see., page 8-10
Assignments are considered available when the following conditions are met:
• The assignment resource equals the expenditure item resource.
Related Topics
Expenditure Type Classes, Oracle Projects Implementation Guide
Transaction Sources, Oracle Projects Implementation Guide
Costed Items Items for which the quantity and transaction currency raw
cost are provided. Oracle Projects does not recalculate the
transaction currency raw cost of imported costed items.
With Oracle Projects, you can perform burdening and accounting on costed and
13-8 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
uncosted items that you load via Transaction Import.
Note: You can load items with the expenditure type classes of Expense
Reports and Supplier Invoice only as Accounted.
Unaccounted Items Items for which the appropriate GL account has not been
determined. When loading unaccounted items, the
Transaction Import process calls any transaction control
extensions that you have defined. Cost calculation
processes (distribute raw and burden costs) determine the
cost amount (for uncosted items only) and the GL account
to which the cost should be posted.
Accounted Items Items for which the external systems have already
determined the ledger currency raw cost amounts and
posted the GL accounts to Oracle General Ledger or Oracle
Subledger Accounting. Processes within Oracle Projects do
not generate accounting events for these items to send the
accounting information to Oracle Subledger Accounting.
As a result, Oracle Subledger Accounting does not create
accounting for these items. When loading accounted items,
Transaction Import creates cost distribution lines with a
status of Received. Transaction Import also creates
expenditure items and expenditures that are identified as
accounted. If you import accounted items, you must
provide the debit and credit code combination ID. When
loading accounted transactions, Transaction Import will
not call any extensions, create related items, or allow you to
import related items.
Inventory Inventory
13-10 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Transaction Source Default Expenditure Type Class
• You can only adjust manufacturing transactions with a transaction source Inventory
Misc. in Oracle Projects. You cannot adjust any other manufacturing costs in Oracle
Projects, because all accounting for the costs is performed in Oracle Manufacturing.
Any adjustments to these costs must originate in Oracle Manufacturing.
2. If a user-entered attribute is not included in the transaction, the system looks for a
default attribute for the task to which the transaction is charged.
3. If default conversion attribute does not exist for task, the system uses the default
conversion attribute for the project to which the transaction is charged.
4. If there are no defaults entered at the project or task level, the default attribute is the
attribute entered in the implementation options for the expenditure operating unit.
13-12 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
These attributes are used to obtain a conversion rate, which is used to convert the
transaction currency amount to the functional currency. Because the functional currency
is equal to the project currency, the project currency amount is equal to the functional
currency amount.
This logic is illustrated in the following table:
Functional Currency Rate Type and Rate Project Currency Rate Type and Rate Date
Date
The following hierarchy is used: The functional currency attributes are used.
1. User-entered value
2. If a user-entered attribute is not included in the transaction, the system uses the
default attribute in the implementation options for the expenditure operating unit.
The attributes are used to obtain a conversion rate, which is used to convert the
transaction currency amount to the functional currency.
The project currency attributes are determined as follows:
1. If user-entered conversion attribute is included in the transaction, that attribute is
used for the conversion.
2. If user-entered attribute is not included in the transaction, the system looks for a
default attribute for the task to which the transaction is charged.
3. If default conversion attribute does not exist for task, the system uses the default
conversion attribute for the project to which the transaction is charged.
4. If there are no defaults entered at the project or task level, the default attribute is the
attribute entered in the implementation options.
• The default rate type is the implementation option for the project operating
unit.
The attributes are used to obtain a conversion rate, which is used to convert the
transaction currency amount to the project currency.
This logic is illustrated in the following table:
Functional Currency Rate Type and Rate Project Currency Rate Type and Rate Date
Date
2. Default value from the expenditure 2. Default value from the lowest task
operating unit's implementation options
3. Default value from the project
13-14 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Column or Calculation Example 1: Values Within Example 2: Values Outside
Rounding Limit (transaction the Rounding Limit
is accepted) (transaction is rejected)
Rounding Limit 10 10
(ACCT_EXCHANGE_ROUN
DING_ LIMIT)
In Example 1, the calculated functional raw cost (99 USD) differs from the supplied
functional raw cost (100 USD) by 1, which is less than the tolerance limit (10). Therefore,
the transaction is accepted.
In Example 2, the values are the same as in Example 1, except that the supplied
functional raw cost is 85 USD. This amount differs from the calculated functional raw
cost (99 USD) by 14, which is more than the tolerance limit (10). Therefore, the
transaction is rejected.
For a detailed description of all transaction source options, see: Transaction Sources,
Oracle Projects Implementation Guide.
• Batch name
• Expenditure type class (if this information is not provided for the transaction, the
value defaults to the expenditure type class assigned to the transaction source
during implementation)
13-16 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• functional currency conversion rate date
Transaction Import groups all of the transactions processed during an interface run
into expenditures and expenditure batches in the following manner.
• Batch name
• Employee number
• Additional grouping criteria, provided by the user, using the following columns:
• ORIG_EXP_TXN_REFERENCE1
• USER_ORIG_EXP_TXN_REFERENCE
• VENDOR_NUMBER
• ORIG_EXP_TXN_REFERENCE2
• ORIG_EXP_TXN_REFERENCE3
Each unique batch name becomes an expenditure batch, and each unique expenditure
type class, employee number, and expenditure ending date combination becomes an
expenditure within the expenditure batch. The ending date of the expenditure batch is
set to the maximum ending date of all the expenditures created within that batch.
An employee number is required for all transactions with an expenditure type class
Straight Time, Overtime, or Expense Reports. Transactions with any other expenditure
type classes do not require an employee number.
• Batch name
• Additional grouping criteria, provide by the user, using the following columns:
• ORIG_EXP_TXN_REFERENCE1
• USER_ORIG_EXP_TXN_REFERENCE
• VENDOR_NUMBER
• ORIG_EXP_TXN_REFERENCE2
• ORIG_EXP_TXN_REFERENCE3
13-18 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
• The following currency attributes, if applicable:
• transaction currency
Each unique batch name becomes an expenditure batch, and each unique expenditure
type class, employee number, organization, and expenditure ending date combination
becomes an expenditure within the expenditure batch. The ending date of the
expenditure batch is set to the maximum ending date of all the expenditures created
within that batch.
Related Topics
Transaction Import Example: Labor and Expense by Employee Number, page 13-19
Transaction Import Example: Usage, page 13-21
If you submit Transaction Import for the transaction source Site1 and do not specify a
specific batch to process (pick all transactions with transaction source Site1), then
Transaction Import will process all six of the above transactions.
Assuming that all of the transactions in this example are valid, then Oracle Projects
creates two expenditure batches, L1 and L2.
Batch L1 is shown in the following table:
Because the transaction source has expenditure type classes Straight Time and Expense
Reports, Transaction Import groups the transactions by employee, expenditure ending
date, and expenditure type class when creating expenditures.
The resulting expenditures for batch L1 are shown in the following table:
13-20 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Transaction Number Expenditure Type Employee Number Expenditure Ending
Class Date
The resulting expenditures for batch L2 are shown in the following table:
Note: Although transactions 2 and 3 were for the same employee and
the same ending date, Oracle Projects created two expenditures.
Transactions with different expenditure type classes are imported into
different expenditure batches. Different batch names will also result in
the creation of different expenditure batches, even if they contain
transactions for the same employee and ending date.
Because the ending date of the expenditure batch created is equal to the maximum
ending date of the expenditures created within that batch, the batch ending dates for
our example are as follows:
L1 09-OCT-95
L2 09-OCT-95
1 1000 West
2 1000 East
3 West
4 Midwest
Because all of these transactions have the same batch name, Oracle Projects creates only
one expenditure batch, U1. For usage items, Transaction Import groups transactions by
employee, organization, and expenditure ending date when creating expenditures. The
resulting expenditures after import are shown in the following table:
Notice that transactions (1) and (2) appear in the same expenditure because they were
for the same employee/expenditure ending date, even though the organization name
specified for both is different. If a transaction specifies an employee number,
Transaction Import ignores any value for Organization and derives the organization
value based on the employee's assignment (if the Import Employee Organization option
is not used).
13-22 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Also note that even if employee 1000's organization assignment were West, the
resulting expenditures would still be the same. Transaction Import never groups usage
transactions for an employee into the same expenditure as usage transactions for an
organization.
Note: All transactions that have already been accounted for in external
systems, including manufacturing transactions, are loaded as costed
transactions. These transactions are created with cost distribution lines
and a status of Received.
You can view imported expenditure batches and associated expenditures and
expenditure items using the Expenditure Inquiry and Expenditure Batches windows in
Oracle Projects.
Tip: You may want to create a new user to run Transaction Import with
a unique name, such as TRX IMPORT USER, so you can easily identify
and report imported transactions.
Note: Raw cost values for transactions that were already costed when
loaded into Oracle Projects will not be changed if you mark the item for
cost recalculation.
13-24 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
transaction source is purgeable.
Related Topics
Transaction Import Validation, page 13-25
The Transaction Import Interface Table, page 13-27
Populating the Interface Table, page 13-4
Importing Transactions, page 13-6
Resolving Import Exceptions, page 13-53
Note: The transaction import validation logic is different when you run
the process PRC: Interface Supplier Costs to import transactions from
Oracle Purchasing and Oracle Payables. The processes uses predefined
supplier cost transaction sources to import expenditure items and it
rejects only the expenditure items that fail validation. The process
Transaction Import detects only one error per transaction each time you run the import
process. If a single transaction has multiple errors, you will need to run Transaction
Import more than once to discover all the errors.
You can correct rejected transactions using the Review Transactions window. After you
make your corrections, you can validate the revised information by resubmitting the
corrected transactions from the same window. See: Resolving Import Exceptions, page
13-53.
If Transaction Import detects errors during the validation process, you do not need to
correct all rejected items to save your transaction information. You need to correct all
items, however, before you can successfully import your transactions.
• PA_EXPENDITURES_ALL
• PA_EXPENDITURE_ITEMS_ALL
• PA_COST_DISTRIBUTION_LINES_ALL
• PA_EXPENDITURE_COMMENTS
13-26 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
The Transaction Import Interface Table
The Transaction Import interface table (PA_TRANSACTION_INTERFACE_ALL) is the
table you populate to import transactions from external sources into Oracle Projects. For
a full description of the Transaction Import interface table, including foreign keys and
database triggers, refer to Oracle eTRM, which is available on OracleMetaLink.
NULL Columns A NULL column is a column in the interface table that does
not require a value. There are two types of NULL columns:
• Some NULL columns are required only for some types
of transactions. For example, for usage items, the
NON_LABOR_RESOURCE column must be
populated. We mark these columns as Conditionally
Required. See: Conditionally Required, page 13-27.
TRANSACTION_SOURCE
A transaction source identifies the external source of the cost transaction.
Validation: Either a TRANSACTION_SOURCE or USER_TRANSACTION_SOURCE is
required on all transactions. If a value is provided, then it must exist in
PA_TRANSACTION_SOURCES.TRANSACTION_SOURCE.
Destination: PA_EXPENDITURE_GROUPS_ALL.TRANSACTION_SOURCE and
PA_EXPENDITURE_ITEMS_ALL.TRANSACTION_SOURCE
BATCH_NAME
A batch name groups one or more expenditures into a single group.
Validation: This column is required on all transactions. All transactions in a batch must
have the same transaction source.
Destination: Used to derive
PA_EXPENDITURE_GROUPS_ALL.EXPENDITURE_GROUP. Oracle Projects creates
an expenditure group by concatenating BATCH_NAME,
SYSTEM_LINKAGE_FUNCTION, and INTERFACE_ID.
EXPENDITURE_ENDING_DATE
An expenditure ending date is the last day of the expenditure week.
Validation: This column is required on all transactions. The expenditure ending date
must be valid based on the expenditure cycle start day defined in Implementation
Options. All transactions within an expenditure must have an expenditure item date
that is on or before the expenditure ending date. All timecard transactions must have an
expenditure item date within the expenditure week date range.
13-28 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Destination: PA_EXPENDITURES_ALL.EXPENDITURE_ENDING_DATE
The maximum expenditure ending date of all expenditure items processed in a batch
becomes the expenditure batch ending date.
EMPLOYEE_NUMBER
An employee number is the identifier of the employee that incurred the cost.
Validation: Either EMPLOYEE_NUMBER or PERSON_ID is required on labor and
expense report transactions. These values are optional for transactions with other
expenditure type classes. If you provide an EMPLOYEE_NUMBER, then it must exist in
PER_ALL_PEOPLE_F.EMPLOYEE_NUMBER. If a business group is specified in the
PERSON_BUSINESS_GROUP_NAME field, then the employee must be defined in that
business group.
Destination: Used to derive PA_EXPENDITURES_ALL.INCURRED_BY_PERSON_ID
ORGANIZATION_NAME
An organization name is the name of the organization that incurred the expenditure.
Validation: Either the ORGANIZATION_NAME or ORGANIZATION_ID is required
on usage transactions and is optional on other transactions. If you do not provide an
ORGANIZATION_NAME, and you do provide an EMPLOYEE_NUMBER, then
Transaction Import derives this value from the employee organization. If you provide a
value, then it must exist in HR_ALL_ORGANIZATION_UNITS.NAME.
Destination: Used to derive PA_EXPENDITURES_ALL.
INCURRED_BY_ORGANIZATION_ID. If you provide both an employee and an
organization, then Transaction Import uses the employee information to derive the
organization when the Import Employee Organization option is not used. The last
employee assignment in the expenditure period is used to derive the employee
organization.
EXPENDITURE_ITEM_DATE
An expenditure item date is the date cost is incurred.
Validation: This column is required on all transactions. The expenditure item date
must be on or before the expenditure ending date. The expenditure item date on
timecard transactions must fall within the expenditure week as defined by the
expenditure ending date. For additional information about expenditure item date
validations, see: Expenditure Item Validations, Oracle Project Costing User Guide.
Destination: PA_EXPENDITURE_ITEMS_ALL.EXPENDITURE_ITEM_DATE
PROJECT_NUMBER
A project number is a unique identification number of the project that incurred the cost.
Validation: This column is required on all transactions and must exist in
TASK_NUMBER
A task number is a unique identification number of the task within a project that
incurred the cost.
Validation: This column is required on all transactions. The value must exist in
PA_TASKS.TASK_NUMBER for the corresponding project number on the transaction
and it must be a lowest level task that allows charges.
Destination: Used to derive PA_EXPENDITURE_ITEMS_ALL.TASK_ID and
PA_COST_DISTRIBUTION_LINES_ALL.TASK_ID
EXPENDITURE_TYPE
An expenditure type is an implementation-defined classification of the incurred cost.
Validation: This column is required on all transactions and must exist in
PA_EXPENDITURE_TYPES.EXPENDITURE_TYPE. The expenditure type and
expenditure type class combination must exist as an active combination in the
PA_EXPEND_TYP_SYS_LINKS table.
Destination: PA_EXPENDITURE_ITEMS_ALL.EXPENDITURE_TYPE
NON_LABOR_RESOURCE
A non-labor resource is an implementation-defined asset or pool of assets that incurred
the cost.
Validation: This column is required for usage transactions. The value must exist in
PA_NON_LABOR_RESOURCES.NON_LABOR_RESOURCE and must be a resource
classified by the specified expenditure type.
Destination: PA_EXPENDITURE_ITEMS_ALL.NON_LABOR_RESOURCE
NON_LABOR_RESOURCE_ORG_NAME
A non-labor resource org name is the name of the organization that owns the non-labor
resource that incurred the cost.
Validation: Either the NON_LABOR_RESOURCE_ORG_NAME or
NON_LABOR_RESOURCE_ORG_ID is required for usage transactions. If you provide
the NON_LABOR_RESOURCE_ORG_NAME, then it is used to derive
HR_ALL_ORGANIZATION_UNITS. ORGANIZATION_ID. The value must exist in
PA_NON_LABOR_RESOURCE_ORGS.ORGANIZATION_ID for the specified
13-30 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
non-labor resource.
Destination: Used to derive PA_EXPENDITURE_ITEMS_ALL. ORGANIZATION_ID.
QUANTITY
The quantity is the number of units for the transaction based on the unit of measure
defined for the expenditure type.
Validation: This column is required on all transactions. QUANTITY,
DENOM_RAW_COST, AND ACCT_RAW_COST must be zero for transactions with an
expenditure type class of Burden Transaction.
Destination: PA_EXPENDITURE_ITEMS_ALL.QUANTITY
RAW_COST
Raw cost is the cost of the transaction in the project functional currency.
Validation: When you create transactions using the Review Transactions window, this
column is automatically derived. However, Transaction Import does not require or use
the value.
Destination: PA_EXPENDITURE_ITEMS_ALL.RAW_COST and
PA_COST_DISTRIBUTION_LINES_ALL.AMOUNT
EXPENDITURE_COMMENT
An expenditure comment describes the transaction in detail.
Validation: None
Destination: PA_EXPENDITURE_COMMENTS.EXPENDITURE_COMMENT
TRANSACTION_STATUS_CODE
A transaction status code is a code that indicates the processing status of the transaction.
Validation: This column is required on all transactions and must be set to P for
transactions to be imported.
Destination: None
TRANSACTION_REJECTION_CODE
A transaction rejection code is a code that indicates a transaction was rejected by the
Transaction Import program.
Validation: This column is system assigned.
Destination: None
ORIG_TRANSACTION_REFERENCE
An original transaction reference is a reference to the original transaction in the external
system.
Validation: This column is required on all transactions. Unless the transaction source
allows duplicate references, this reference, in combination with the transaction source,
uniquely identifies the original transaction. An expenditure item must not already exist
with the same identifier.
Destination: PA_EXPENDITURE_ITEMS_ALL.ORIG_TRANSACTION_REFERENCE
ATTRIBUTE_CATEGORY
An attribute category is the descriptive flexfield category for the descriptive flexfield
information defined on the transaction.
Validation: Validated using the standard Oracle Applications Technology application
programming interface (API) for validating attribute categories.
Destination: EXPENDITURE_ITEMS_ALL.ATTRIBUTE_CATEGORY
• The Transaction Import process validates descriptive flexfield attributes only if the
Attribute Category field is populated.
• When you use the transaction import process to import a date as one of the
segments in the Expenditure Items descriptive flexfield, the date must be in the
13-32 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
format RRRR/MM/DD HH24:MI:SS. If you attempt to import a date using any other
format, then the transaction import process fails validation with the error
PA_DFF_VALIDATION_FAILED.
RAW_COST_RATE
A raw cost rate is the cost rate (raw cost divided by quantity) of the transaction in project
functional currency.
Validation: This column is optional and is used only when the transaction source
associated with the transaction is defined with the Import Raw Cost Amounts option
enabled.
Destination: PA_EXPENDITURE_ITEMS_ALL.RAW_COST_RATE
Oracle Projects uses this information for reporting purposes only.
INTERFACE_ID
An interface identifier is a unique system-assigned value that identifies transactions
processed by a given concurrent request.
Validation: This column is system assigned and is for internal use only.
Destination: None
UNMATCHED_NEGATIVE_TXN_FLAG
An unmatched negative transaction flag is an attribute that indicates that the transaction
has a negative amount and should not be matched to an expenditure item that already
exists in the system.
Validation: Possible values are Y, N, or null. If this column is set to Y, then Transaction
Import bypasses the matching validation logic that is usually executed for adjustments
(negative transactions).
Destination: If this column is set to N or null, then Transaction Import finds the
matching expenditure item and populates
PA_EXPENDITURE_ITEMS_ALL.ADJUSTED_EXPENDITURE_ITEM_ID with the
EXPENDITURE_ITEM_ID from the matching expenditure item.
EXPENDITURE_ITEM_ID
An expenditure item identifier is a unique system-assigned value that identifies
expenditure items created by Oracle Projects.
Validation: This column is system assigned and for internal use only.
Destination: PA_EXPENDITURES_ALL.EXPENDITURE_ITEM_ID
DR_CODE_COMBINATION_ID
A debit code combination identifier is a unique system-assigned value that identifies a
General Ledger account used to record the debit side of an accounting entry. If the
transaction source associated with the transaction has the Allow Adjustments option
enabled, then Oracle Projects uses this value to create reversing accounting entries.
Validation: If the transaction is associated with a transaction source that has the Raw
Cost GL Accounted option enabled, then a value is required and it must exist in
GL_CODE_COMBINATIONS.CODE_COMBINATION_ID.
Destination: PA_COST_DISTRIBUTION_LINES_ALL.DR_CODE_COMBINATION_ID
CR_CODE_COMBINATION_ID
A credit code combination identifier is a unique system-assigned value that identifies a
General Ledger account used to record the credit side of an accounting entry. If the
transaction source associated with the transaction has the Allow Adjustments option
enabled, and is not a supplier cost transaction source, then Oracle Projects uses this
value to create reversing accounting entries. For supplier cost transaction sources, this
value is used only for informational purposes in Oracle Projects.
Validation: If the transaction is associated with a transaction source that has the Raw
Cost GL Accounted option enabled, then a value is required and must exist in
GL_CODE_COMBINATIONS.CODE_COMBINATION_ID.
Destination: PA_COST_DISTRIBUTION_LINES_ALL.CR_CODE_COMBINATION_ID
CDL_SYSTEM_REFERENCE1
A cost distribution line system reference is a reference to a record in an external system.
Validation: For supplier invoice transactions created in Oracle Payables, the column
holds PO_VENDORS.VENDOR_ID. For payment and discount transactions created in
Oracle Payables, the column holds
13-34 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
AP_PAYMENT_HIST_DISTS.PAYMENT_HIST_DIST_ID. For transactions associated
with other transaction sources that have the Raw Cost GL Accounted option enabled, a
value is optional. For transactions associated with transaction sources that do not have
the Raw Cost GL Accounted option enabled, if you provide a value, then it is ignored.
Destination: PA_COST_DISTRIBUTION_LINES_ALL.SYSTEM_REFERENCE1, except
when the transaction represents an Oracle Payables payment or discount, in which case
the destination is PA_COST_DISTRIBUITON_LINES_ALL.SYSTEM_REFERENCE5.
CDL_SYSTEM_REFERENCE2
A cost distribution line system reference is a reference to a record in an external system. For
transactions that represent supplier invoices in Oracle Payables, the reference is used to
associate the transaction with an invoice number in Oracle Payables. For transactions
that represent receipt accruals in Oracle Purchasing, the reference is used to associate
the transaction with a purchase order.
Validation: For transactions created by Oracle Payables, the column holds
AP_INVOICES_ALL.INVOICE_ID. For transactions created by Oracle Purchasing, the
column holds PO_HEADERS_ALL.PO_HEADER_ID. For transactions associated with
other transaction sources that have the Raw Cost GL Accounted option enabled, a value
is optional. For transactions associated with transaction sources that do not have the
Raw Cost GL Accounted option enabled if you provide a value, then it is ignored.
Destination: PA_COST_DISTRIBUTION_LINES_ALL.SYSTEM_REFERENCE and, for
transactions created by Oracle Payables or Oracle Purchasing, it is also copied to
PA_EXPENDITURE_ITEMS_ALL.DOCUMENT_HEADER_ID.
CDL_SYSTEM_REFERENCE3
A cost distribution line system reference is a reference to a record in an external system. For
transactions that originate in Oracle Payables, the reference is used to associate the
transaction with an invoice line number in Oracle Payables. For transactions that
originate in Oracle Purchasing, the reference is used to associate the transaction with a
purchase order distribution.
Validation: For transactions created by Oracle Payables, the column holds
AP_INVOICE_LINES_ALL.INVOICE_LINE_NUMBER. For transactions created by
Oracle Purchasing, the column holds PO_HEADERS_ALL.PO_DISTRIBUTION_ID. For
transactions associated with other transaction sources that have the Raw Cost GL
Accounted option enabled, a value is optional. For transactions associated with
transaction sources that do not have the Raw Cost GL Accounted option enabled if you
provide a value, then it is ignored.
Destination: PA_COST_DISTRIBUTION_LINES_ALL.SYSTEM_REFERENCE3, and
PA_EXPENDITURE_ITEMS_ALL.DOCUMENT_LINE_NUMBER
GL_DATE
A general ledger date is date the transaction is accounted in General Ledger.
BURDENED_COST
A burdened cost is a cost amount that represents the sum of the raw cost plus a burden
cost in the project functional currency code.
Validation: When you create transactions using the Review Transactions window, this
column is automatically derived. However, Transaction Import does not use or require
this value.
Destination: PA_EXPENDITURE_ITEMS_ALL.BURDENED_COST
BURDENED_COST_RATE
A burdened cost rate is the burden cost rate (burdened cost divided by quantity) of the
transaction in project functional currency.
Validation: This column is optional when transactions have an expenditure type class
of Burden Transaction, or when transactions are associated with a transaction source
that has the Import Burdened Amounts option enabled. Burden transactions are
required to have QUANTITY, DENOM_RAW_COST, and ACCT_RAW_COST
attributes equal to zero. For all other transactions, the value is ignored.
Destination: PA_EXPENDITURE_ITEMS_ALL.BURDEN_COST_RATE
Oracle Projects uses this information for reporting purposes only.
SYSTEM_LINKAGE
A system linkage is a system-defined value that indicates the expenditure type class of
the transaction.
Validation: This column is optional. If you do not provide a value, then the default
system linkage defined for the transaction source is used. If you provide a value, then
the value must exist in PA_EXPENDITURE_TYPES.SYSTEM_LINKAGE_FUNCTION
and PA_EXPEND_TYP_SYS_LINKS. SYSTEM_LINKAGE_FUNCTION for the
corresponding EXPENDITURE_TYPE on the transaction.
Destination: PA_EXPENDITURE_ITEMS_ALL.SYSTEM_LINKAGE_FUNCTION
TXN_INTERFACE_ID
A transaction interface identifier is a unique system-defined value that identifies each
transaction loaded into the interface table.
Validation: This column is system assigned and for internal use only.
Destination: None
13-36 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
USER_TRANSACTION_SOURCE
A user transaction source is a user-defined name for a transaction source.
Validation: This column is required when a TRANSACTION_SOURCE value is not
provided. If a value is provided, then it must exist in
PA_TRANSACTION_SOURCES.USER_TRANSACTION_SOURCE.
Destination: This value is used to derive
PA_EXPENDITURE_GROUPS_ALL.TRANSACTION_SOURCE and
PA_EXPENDITURE_ITEMS_ALL.TRANSACTION_SOURCE.
CREATED_BY
The created by attribute represents the system-assigned identifier of the user that created
transaction.
Validation: This column is required and must be a number.
Destination: When transactions are created using the Review Transactions window, the
FND_USERS.USER_ID defined for the user creating the transactions is stored in this
column. However, this value is not used when Transaction Import creates expenditure
items for the transaction. Transaction Import uses the FND_USERS.USER_ID defined
for the user that runs the Transaction Import concurrent program to populate the
CREATED_BY attribute in the PA_EXPENDITURE_GROUPS_ALL,
PA_EXPENDITURES_ALL, and PA_EXPENDITURE_ITEMS_ALL tables.
CREATION_DATE
A creation date is the date the transaction is created in the system.
Validation: This column is required and must be a valid date.
Destination: When you create transactions using the Review Transactions window, the
system date is stored in this column. However, this value is not used when Transaction
Import creates expenditure items for the transaction. When you run the Transaction
Import concurrent program, the program uses the system date to populate the
CREATION_DATE attribute in the PA_EXPENDITURE_GROUPS_ALL,
PA_EXPENDITURES_ALL, and PA_EXPENDITURE_ITEMS_ALL tables.
LAST_UPDATED_BY
The last updated by attribute represents the system-defined identifier of the user that last
updated the transaction.
Validation: This column is required and must be a number.
Destination: When transactions are updated using the Review Transactions window,
the FND_USERS.USER_ID defined for the user updating the transactions is stored in
this column. However, this value is not used when Transaction Import creates
expenditure items for the transaction. Transaction Import uses the
LAST_UPDATE_DATE
A last update date is the date the transaction is last updated in the system.
Validation: This column is required and must be a valid date.
Destination: When you update transactions using the Review Transactions window,
the system date is stored in this column. However, this value is not used when
Transaction Import creates expenditure items for the transaction. When you run
Transaction Import concurrent program, the program uses the system date to populate
the LAST_UPDATE_DATE attribute in the PA_EXPENDITURE_GROUPS_ALL,
PA_EXPENDITURES_ALL, and PA_EXPENDITURE_ITEMS_ALL tables.
RECEIPT_CURRENCY_AMOUNT
A receipt currency amount is the amount of an expense report transaction in the original
currency.
Validation: This column is required when the SYSTEM_LINKAGE_FUNCTION is
Expense Reports and the RECEIPT_CURRENCY_CODE is different from the
DENOM_CURRENCY_CODE.
Destination: PA_EXPENDITURE_ITEMS_ALL.RECEIPT_CURRENCY_AMOUNT
RECEIPT_CURRENCY_CODE
A receipt currency code is the currency code for the expense report receipt currency.
Validation: This column is optional and only used when the
SYSTEM_LINKAGE_FUNCTION is Expense Reports. If you provide a value, then it
must exist in FND_CURRENCIES_VL.CURRENCY_CODE. In addition, the
FND_CURRENCIES_VL.ENABLED_FLAG must be set to Y and active as of the
expenditure item date on the transaction.
Destination: PA_EXPENDITURE_ITEMS_ALL.RECEIPT_CURRENCY_CODE
RECEIPT_EXCHANGE_RATE
A receipt exchange rate is the exchange rate used to convert the receipt currency to the
transaction (reimbursement) currency for expense reports.
Validation: This column is optional and only used when the
SYSTEM_LINKAGE_FUNCTION is Expense Reports.
Destination: PA_EXPENDITURE_ITEMS_ALL.RECEIPT_EXCHANGE_RATE
13-38 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
DENOM_CURRENCY_CODE
A denominated currency code is the code of the currency used for the transaction.
Validation: This column is required on all transactions and must be a valid
FND_CURRENCIES_VL.CURRENCY_CODE. In addition, the
FND_CURRENCIES_VL.ENABLED_FLAG must be set to Y as of the expenditure item
date.
Destination: PA_EXPENDITURE_ITEMS_ALL.DENOM_CURRENCY_CODE and
PA_COST_DISTRIBUTION_LINES_ALL.DENOM_CURRENCY_CODE
DENOM_RAW_COST
A denominated raw cost is the raw cost amount in the transaction currency.
Validation: This column is required when the transaction source is defined with the
Import Raw Cost Amounts option enabled. QUANTITY, DENOM_RAW_COST, AND
ACCT_RAW_COST attributes must be zero for transactions with an expenditure type
class of Burden Transaction.
Destination: PA_EXPENDITURE_ITEMS_ALL.DENOM_RAW_COST and
PA_COST_DISTRIBUTION_LINES_ALL.DENOM_RAW_COST
DENOM_BURDENED_COST
A denominated burdened cost is the burdened cost amount in the transaction currency.
Validation: This column is required for transactions with an expenditure type class of
Burden Transaction, and for transactions that are associated with a transaction source
that has the Import Burdened Amounts option enabled. Burden transactions are
required to have QUANTITY, DENOM_RAW_COST, ACCT_RAW_COST attributes
equal to zero. For all other transactions, the value is ignored.
Destination: PA_EXPENDITURE_ITEMS_ALL.DENOM_BURDENED_COST and
PA_COST_DISTRIBUTION_LINES_ALL. DENOM_BURDENED_COST
ACCT_RATE_DATE
An accounted rate date is the date used for converting the transaction to the functional
currency of the operating unit.
Validation: This column is required when the transaction source associated with the
transaction has the Raw Cost GL Accounted option enabled. This column is optional
when the ACCT_RATE_TYPE on the transaction is User.
Destination: PA_EXPENDITURE_ITEMS_ALL.ACCT_RATE_DATE and
PA_COST_DISTRIBUTION_LINES_ALL.ACCT_RATE_DATE
ACCT_RATE_TYPE
An accounted rate type is the conversion type used to convert the transaction to the
ACCT_EXCHANGE_RATE
An accounted exchange rate is the rate used to convert the transaction to the functional
currency of the operating unit.
Validation: This column is required when the transaction source associated with the
transaction has the Raw Cost GL Accounted option enabled and the
ACCT_RATE_TYPE on the transaction is User.
Destination: PA_EXPENDITURE_ITEMS_ALL.ACCT_EXCHANGE_RATE and
PA_COST_DISTRIBUTION_LINES_ALL. ACCT_EXCHANGE_RATE
ACCT_RAW_COST
An accounted raw cost is the raw cost converted to the functional currency of the
operating unit.
Validation: This column is required when the transaction source associated with the
transaction has the Raw Cost GL Accounted option enabled. The functional raw cost is
calculated using the provided ACCT_RATE_DATE and ACCT_RATE_TYPE. The
calculated value must be within the ACCT_EXCHANGE_ROUNDING_LIMIT of the
provided ACCT_RAW_COST. For all other transactions, the value is ignored.
Destination: PA_EXPENDITURE_ITEMS_ALL.ACCT_RAW_COST and
PA_COST_DISTRIBUTION_LINES_ALL.ACCT_RAW_COST
ACCT_BURDENED_COST
An accounted burdened cost is the burdened cost converted to the functional currency of
the operating unit.
Validation: This column is required when:
• The transaction source associated with the transaction has the Raw Cost GL
Accounted option enabled.
13-40 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
ACCT_EXCHANGE_ROUNDING_LIMIT
An accounted exchange rounding limit is the rounding limit of the functional currency of
the operating unit.
Validation: This column is optional. If the derivation of the functional currency raw
cost is within the rounding limit, then the transaction is accepted, otherwise it is
rejected. If the value of ACCT_EXCHANGE_ROUNDING_LIMIT is null, then the
rounding limit value used is zero.
Destination: PA_EXPENDITURE_ITEMS_ALL.ACCT_ROUNDING_LIMIT
PROJECT_CURRENCY_CODE
A project currency code is the code of the currency defined for the project.
Validation: This column is optional. If you do not provide a value, then Transaction
Import derives the value.
Destination: PA_EXPENDITURE_ITEMS_ALL.PROJECT_CURRENCY_CODE and
PA_COST_DISTRIBUTION_LINES_ALL.PROJECT_CURRENCY_CODE
PROJECT_RATE_DATE
A project rate date is the date used to convert the transaction to the project currency.
Validation: This column is optional.
Destination: PA_EXPENDITURE_ITEMS_ALL.PROJECT_RATE_DATE and
PA_COST_DISTRIBUTION_LINES_ALL.PROJECT_RATE_DATE
PROJECT_RATE_TYPE
A project rate type is the rate type used for converting the transaction to the project
currency.
Validation: This column is optional. If you provide a value, then it must exist in
PA_CONVERSION_TYPES_V.CONVERSION_TYPE.
Destination: PA_EXPENDITURE_ITEMS_ALL.PROJECT_RATE_TYPE and
PA_COST_DISTRIBUTION_LINES_ALL.PROJECT_RATE_TYPE
PROJECT_EXCHANGE_RATE
A project exchange rate is the rate used to convert the transaction to project currency.
Validation: This column is required when the PROJECT_RATE_TYPE is set to User.
Destination: PA_EXPENDITURE_ITEMS_ALL.PROJECT_EXCHANGE_RATE and
PA_COST_DISTRIBUTION_LINES_ALL.PROJECT_EXCHANGE_RATE
2. INCURRED_BY_PERSON_ID
3. ORGANIZATION_ID
4. ORIG_EXP_TXN_REFERENCE1
5. ORIG_USER_EXP_TXN_REFERENCE
6. VENDOR_ID
7. ORIG_EXP_TXN_REFERENCE2
8. ORIG_EXP_TXN_REFERENCE3
9. ACCRUAL_FLAG
10. PERSON_TYPE
ORIG_EXP_TXN_REFERENCE2
An original expenditure transaction reference is an identifier of a transaction in an external
system.
Validation: This column is not validated and is optional.
Destination: PA_EXPENDITURES_ALL.ORIG_EXP_TXN_REFERENCE2
This column is used to determine how to group transactions into an expenditure group.
For additional information about how expenditure groups are defined, see:
ORIG_EXP_TXN_REFERENCE1, page 13-42.
ORIG_EXP_TXN_REFERENCE3
An original expenditure transaction reference is an identifier of a transaction in an external
13-42 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
system.
Validation: This column is not validated and is optional.
Destination: PA_EXPENDITURES_ALL.ORIG_EXP_TXN_REFERENCE3
This column is used to determine how to group transactions into an expenditure group.
For additional information about how expenditure groups are defined, see:
ORIG_EXP_TXN_REFERENCE1, page 13-42.
ORIG_USER_EXP_TXN_REFERENCE
An original user expenditure transaction reference is an identifier of a transaction in an
external system.
Validation: For transactions created in Oracle Payables, this column contains the value
of AP_INVOICES_ALL.INVOICE_NUM. For all other transactions, this column is not
validated and is optional.
Destination: PA_EXPENDITURES_ALL. ORIG_USER_EXP_TXN_REFERENCE
This column is used to determine how to group transactions into an expenditure group.
For additional information about how expenditure groups are defined, see:
ORIG_EXP_TXN_REFERENCE1, page 13-42.
VENDOR_NUMBER
A vendor number is a unique identification number of the supplier that provided the
goods or services for the transaction.
Validation: Either VENDOR_NUMBER or VENDOR_ID is required on transactions
that have expenditure type class of Supplier Invoice. If you provide a
VENDOR_NUMBER, then it must exist in PO_VENDORS.SEGMENT1.
Destination: This column is used to derive PA_EXPENDITURES_ALL.VENDOR_ID.
OVERRIDE_TO_ORGANIZATION_NAME
An override to organization name is the name of the organization that incurred the cost.
Validation: This column is optional and you can provide either an
OVERRIDE_TO_ORGANIZATION_NAME or OVERRIDE_TO_ORGANIZATION_ID.
If you provide an OVERRIDE_TO_ORGANIZATION_NAME, then it must exist in
HR_ALL_ORGANIZATION_UNITS.NAME.
Destination: This column is used to derive
PA_EXPENDITURE_ITEMS_ALL.OVERRIDE_TO_ORGANIZATION_ID.
REVERSED_ORIG_TXN_REFERENCE
A reversed original transaction reference indicates that the transaction reverses a
transaction that already exists in the system.
Validation: This column is optional. If you provide a value, then it must exist in
BILLABLE_FLAG
A billable flag is an attribute that indicates whether the transaction is billable when the
project is a contract project, or whether the transaction is capitalizable when the project
is a capital project.
Validation: Possible values are Y, N, and null.
Destination: PA_EXPENDITURE_ITEMS_ALL.BILLABLE_FLAG
If you do not provide a value, then the value is derived based on task and transaction
control settings.
PERSON_BUSINESS_GROUP_NAME
A person business group name is the name of an organization that has a business group
classification and is defined for the person that incurred the cost.
Validation: This column is required when an employee is defined in more than one
business group. If you provide a value is provided, then it must exist in
HR_ALL_ORGANIZATION_UNITS.NAME and in
HR_ORGANIZATION_INFORMATION.ORGANIZATION_ID and have an
ORG_INFORMATION_CONTEXT of Business Group Information. Alternatively, you
can provide the value of PERSON_BUSINESS_GROUP_ID instead of
PERSON_BUSINESS_GROUP_NAME.
Destination: If you provide a value, then it is used to derive a
PERSON_BUSINESS_GROUP_ID which, in turn, is used to derive a
PA_EXPENDITURES_ALL.INCURRED_BY_PERSON_ID.
PROJFUNC_CURRENCY_CODE
A project functional currency code is the code of the functional currency defined for the
project.
Validation: This column is optional. If you do not provide a value, then Transaction
Import derives the value.
Destination: PA_EXPENDITURE_ITEMS_ALL.PROJFUNC_CURRENCY_CODE
PROJFUNC_COST_RATE_TYPE
A project functional cost rate type is the rate type used for converting the transaction to
project functional currency.
Validation: This column is optional. If you provide a value, then it must exist in
PA_CONVERSION_TYPES_V.CONVERSION_TYPE.
13-44 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Destination: PA_EXPENDITURE_ITEMS_ALL.PROJFUNC_COST_RATE_TYPE and
PA_COST_DISTRIBUTION_LINES_ALL.PROJFUNC_COST_RATE_TYPE
PROJFUNC_COST_RATE_DATE
A project functional cost rate date is the date used to convert the transaction to the project
functional currency.
Validation: This column is optional.
Destination: PA_EXPENDITURE_ITEMS_ALL.PROJFUNC_COST_RATE_DATE and
PA_COST_DISTRIBUTION_LINES_ALL.PROJFUNC_COST_RATE_DATE
PROJFUNC_COST_EXCHANGE_RATE
A project functional cost exchange rate is the rate used to convert the transaction to project
functional currency.
Validation: This column is required when the PROJFUNC_COST_RATE_TYPE is set to
User.
Destination: PA_EXPENDITURE_ITEMS_ALL.PROJFUNC_COST EXCHANGE_RATE
and PA_COST_DISTRIBUTION_LINES_ALL.PROJFUNC_COST_EXCHANGE_RATE
PROJECT_RAW_COST
Project raw cost is the cost of the transaction in the project currency.
Validation: When you create transactions using the Review Transactions window, this
column is automatically derived. However, Transaction Import does not use or require
a value for this column.
Destination: PA_EXPENDITURE_ITEMS_ALL.PROJECT_RAW_COST and
PA_COST_DISTRIBUTION_LINES_ALL.PROJECT_RAW_COST
PROJECT_BURDENED_COST
Project burdened cost is a cost amount that represents the sum of the raw cost plus
burden cost in the project currency code.
Validation: When you create transactions using the Review Transactions window, this
column is automatically derived. However, Transaction Import does not use or require
a value for this column.
Destination: PA_EXPENDITURE_ITEMS_ALL.BURDENED_COST
ASSIGNMENT_NAME
An assignment name is the name of an assignment. An assignment is a work position on
a project that is associated with a specific person resource.
Validation: This column is optional and is used only when the transaction is a timecard
or expense report. You can provide either the ASSIGNMENT_ID or
WORK_TYPE_NAME
A work type name is the name of a work type. A work type is an
implementation-defined classification of work.
Validation: This column is optional and you can provide either a
WORK_TYPE_NAME or WORK_TYPE_ID. If you provide a WORK_TYPE_NAME,
then it is used to derive a WORK_TYPE_ID and it must exist in
PA_WORK_TYPES.WORK_TYPE_ID.
Destination: This column is used to derive
PA_EXPENDITURE_ITEMS_ALL.WORK_TYPE_ID and
PA_COST_DISTRIBUTION_LINES_ALL.WORK_TYPE_ID.
CDL_SYSTEM_REFERENCE4
A cost distribution line system reference is a reference to a record in an external system.
Validation: When the transaction is a payment or discount created by Oracle Payables,
the column holds AP_INVOICE_PAYMENTS.INVOICE_PAYMENT_ID. When the
transaction is created by Oracle Purchasing, the column holds
RCV_TRANSACTIONS.TRANSACTION_ID. For transactions associated with other
transaction sources that have the Raw Cost GL Accounted option enabled, a value is
optional. For transactions associated with transaction sources that do not have the Raw
Cost GL Accounted option enabled, if you provide a value, then it is ignored.
Destination: COST_DISTRIBUTION_LINES_ALL.SYSTEM_REFERENCE4
When the transaction is a payment or discount created by Oracle Payables, it is also
copied to the PA_EXPENDITURE_ITEMS_ALL.DOCUMENT_PAYMENT_ID column.
When the transaction is created by Oracle Purchasing, it is also copied to
PA_EXPENDITURE_ITEMS_ALL. DOCUMENT_DISTRIBUTION_ID.
ACCRUAL_FLAG
An accrual flag is an attribute that indicates if a transaction is a period end accrual.
Validation: This column is optional. Possible values are Y, N, and null.
Destination: PA_EXPENDITURE_GROUPS_ALL.PERIOD_ACCRUAL_FLAG
PROJECT_ID
A project identifier is a unique system-assigned value that identifies the project number.
13-46 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Validation: This column is system assigned and for internal use only.
Destination: PA_EXPENDITURE_ITEMS_ALL.PROJECT_ID and
PA_COST_DISTRIBUTION_LINES_ALL.PROJECT_ID
TASK_ID
A task identifier is a unique system-assigned value that identifies the task number.
Validation: This column is system assigned and for internal use only.
Destination: PA_EXPENDITURE_ITEMS_ALL.TASK_ID and
PA_COST_DISTRIBUTION_LINES_ALL.TASK_ID
PERSON_ID
A person identifier is a unique system-assigned value that identifies the person that
incurred the cost.
Validation: Either EMPLOYEE_NUMBER or PERSON_ID is required on labor and
expense report transactions, but is optional for transactions with other expenditure type
classes. If you provide the PERSON_ID, then it must exist in
PER_ALL_PEOPLE_F.PERSON_ID. If a business group is specified in the
PERSON_BUSINESS_GROUP_NAME field, then the employee must be defined in that
business group.
Destination: PA_EXPENDITURES_ALL.INCURRED_BY_PERSON_ID
ORGANIZATION_ID
An organization identifier is a unique system-assigned value that identifies the
organization that incurred the expenditure.
Validation: Either the ORGANIZATION_NAME or ORGANIZATION_ID is required
on usage transactions and is optional on other transactions. If you provide an
EMPLOYEE_NUMBER, then this column can be null, in which case Transaction Import
derives this value from the employee organization. If you provide an
ORGANIZATION_ID, then it must exist in
HR_ALL_ORGANIZATION_UNITS.ORGANIZATION_ID.
Destination: PA_EXPENDITURES_ALL. INCURRED_BY_ORGANIZATION_ID
The last employee assignment in the expenditure period is used to derive the
organization.
NON_LABOR_RESOURCE_ORG_ID
A non-labor resource organization identifier is a unique system-assigned value that
identifies the organization that owns a non-labor resource that incurred the cost.
Validation: Either the NON_LABOR_RESOURCE_ORG_NAME or
NON_LABOR_RESOURCE_ORG_ID is required for usage transactions. If you provide
VENDOR_ID
A vendor identifier is a unique system-assigned value that identifies the supplier that
provided the goods or services associated with the transaction.
Validation: This column is required on transactions that have expenditure type class of
Supplier Invoice if you do not provide a VENDOR_NUMBER. If you provide a value,
then it must exist in PO_VENDORS.VENDOR_ID.
Destination: PA_EXPENDITURES_ALL.VENDOR_ID
OVERRIDE_TO_ORGANIZATION_ID
An override to organization identifier is a unique system-assigned value that identifies the
organization that incurred the cost.
Validation: For transactions created in Oracle Payables, this column holds
AP_INVOICE_DISTRIBUTIONS_ALL.EXPENDITURE_ORGANIZATION_ID. For
other transactions this column is optional and you can provide either an
OVERRIDE_TO_ORGANIZATION_NAME or OVERRIDE_TO_ORGANIZATION_ID.
If you provide an OVERRIDE_TO_ORGANIZATION_ID, then it must exist in
HR_ALL_ORGANIZATION_UNITS.ORGANIZATION_ID.
Destination: PA_EXPENDITURE_ITEMS_ALL.OVERRIDE_TO_ORGANIZATION_ID
ASSIGNMENT_ID
An assignment identifier is a unique system-assigned value that identifies an assignment.
An assignment is a work position on a project that is associated with a specific person
resource.
Validation: This column is optional and is used only when the transaction is a timecard
or expense report. You can provide either the ASSIGNMENT_ID or
ASSIGNMENT_NAME. If you provide an ASSIGNMENT_ID, then it must exist in
PA_PROJECT_ASSIGNMENTS.ASSIGNMENT_ID.
Destination: PA_EXPENDITURE_ITEMS_ALL.ASSIGNMENT_ID
WORK_TYPE_ID
A work type identifier is a unique system-assigned value that identifies the work type. A
work type is an implementation-defined classification of work.
Validation: This column is optional and you can provide either a
WORK_TYPE_NAME or WORK_TYPE_ID. If you provide a WORK_TYPE_ID, then it
must exist in PA_WORK_TYPES.WORK_TYPE_ID.
13-48 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Destination: PA_EXPENDITURE_ITEMS_ALL.WORK_TYPE_ID
PERSON_BUSINESS_GROUP_ID
A person business group identifier is a unique system-assigned value that identifies an
organization that has a business group classification and is defined for the person that
incurred the cost.
Validation: This column is required when an employee is defined in more than one
business group. If you provide a value, then it must exist in
HR_ALL_ORGANIZATION_UNITS.ORGANIZATION_ID and in
HR_ORGANIZATION_INFORMATION.ORGANIZATION_ID and have an
ORG_INFORMATION_CONTEXT of Business Group Information. Alternatively, you
can provide the value of PERSON_BUSINESS_GROUP_NAME instead of
PERSON_BUSINESS_GROUP_ID.
Destination: If you provide a value, then this column is used to derive
PA_EXPENDITURES_ALL.INCURRED_BY_PERSON_ID.
INVENTORY_ITEM_ID
An inventory item identifier is a unique system-defined value that identifies inventory
items.
Validation: This column is system assigned on transactions created by Oracle Project
Manufacturing and is for internal use only.
Destination: PA_EXPENDITURE_ITEMS_ALL.INVENTORY_ITEM_ID
WIP_RESOURCE_ID
A work-in-process resource identifier is a unique system-defined value that identifies labor
or non-labor resources on work-in-process transactions.
Validation: This column is system assigned on transactions created by Oracle Project
Manufacturing and is for internal use only.
Destination: PA_EXPENDITURE_ITEMS_ALL.WIP_RESOURCE_ID
UNIT_OF_MEASURE
A unit of measure is a classification created in Oracle Project Manufacturing.
Validation: This column is system assigned and used only on transactions created in
Oracle Project Manufacturing.
Destination: PA_EXPENDITURE_ITEMS_ALL.UNIT_OF_MEASURE
PO_NUMBER
A purchase order number identifies purchase order documents created in Oracle
Purchasing.
PO_HEADER_ID
A purchase order identifier is a system-assigned unique value that identifies purchase
order documents created in Oracle Purchasing.
Validation: This column is optional and you can provide either the PO_NUMBER or
PO_HEADER_ID. When you provide a value, it is only used when the transaction is for
a contingent worker. If you provide values for both columns, then the PO_HEADER_ID
is used during validation. If you provide a PO_HEADER_ID is provided, then it must
exist in PO_HEADERS_ALL.HEADER_ID.
Destination: None
PO_LINE_NUM
A purchase order line number identifies specific lines on a purchase order document
created by Oracle Purchasing.
Validation: This column is optional and you can provide either the PO_LINE_NUM or
the PO_LINE_ID. When you provide a value, it is only used when the transaction is for
a contingent worker. If you provide values for both columns, then the PO_LINE_ID is
used during validation. If you provide the PO_LINE_NUM, then it must exist in
PO_LINES_ALL.LINE_NUM for the purchase order specified by PO_NUMBER or
PO_HEADER_ID. At least one distribution associated with the purchase order line
must be related to the project and task specified for the transaction.
Destination: Used to derive to derive PA_EXPENDITURE_ITEMS_ALL.PO_LINE_ID.
PO_LINE_ID
A purchase order line identifier is a system-defined unique value that identifies individual
lines on purchase order documents created in Oracle Purchasing.
Validation: This column is optional and you can provide either the PO_LINE_NUM or
the PO_LINE_ID. When you provide a value, it is only used when the transaction is for
a contingent worker. If you provide values for both columns, then the PO_LINE_ID is
used during validation. If you provide the PO_LINE_ID, then it must exist in
PO_LINES_ALL.PO_LINE_ID for the purchase order specified by PO_NUMBER or
PO_HEADER_ID. At least one distribution associated with the purchase order line
must be related to the project and task specified for the transaction.
Destination: PA_EXPENDITURE_ITEMS_ALL.PO_LINE_ID
13-50 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
PERSON_TYPE
A person type is the type of person that incurred the cost for the transaction.
Validation: This column is optional for timecard and expense reports. Possible values
are:
• CWK - Contingent worker
• EMP - Employee
• null
If you do not provide a value, then the system sets the value to EMP.
Destination: None
PO_PRICE_TYPE
A purchase order price type is an attribute that identifies the contingent worker rate for
the transaction.
Validation: This column is optional. If you provide a value, then it is only used when
the transaction is for a contingent worker and it must exist in
PO_LINES_ALL.PRICE_TYPE_LOOKUP_CODE for the purchase order line defined on
the transaction.
Destination: PA_EXPENDITURE_ITEMS_ALL.PO_PRICE_TYPE
ADJUSTED_EXPENDITURE_ITEM_ID
An adjusted expenditure item identifier is a unique system-assigned value that indicates
that the transaction reverses another transaction and refers to the original transaction.
Validation: This column is system assigned and for internal use only.
Destination: PA_EXPENDITURE_ITEMS_ALL.ADJUSTED_EXPENDITURE_ITEM_ID
FC_DOCUMENT_TYPE
A funds check document type is a system-assigned attribute that indicates whether the
transaction is required to undergo funds checking.
Validation: This column is system assigned and is for internal use only on supplier cost
transactions created in Oracle Payables or Oracle Purchasing. The valid values are as
follows:
• CMT - Commitments
• ACT - Actuals
Destination: None
DOCUMENT_TYPE
A document type is a system-assigned attribute that identifies the type of document
created in Oracle Payables or Oracle Purchasing.
Validation: This column is system assigned and for internal use only. If the transaction
was created by Oracle Payables, then the column holds
AP_INVOICES_ALL.INVOICE_TYPE_LOOKUP_CODE. If the transaction was created
by Oracle Purchasing, then the column holds
RCV_TRANSACTIONS.DESTINATION_TYPE_CODE. If a value is provided on any
other type of transaction, then it is ignored.
Destination: PA_EXPENDITURE_ITEMS_ALL.DOCUMENT_TYPE
DOCUMENT_DISTRIBUTION_TYPE
A document distribution type is a system-assigned attribute that indicates the type of
distribution on transactions created by Oracle Payables or Oracle Purchasing.
Validation: This column is system assigned and for internal use only. If the transaction
was created by Oracle Payables, then the column holds
AP_INVOICE_DISTRIBUTIONS_ALL.LINE_TYPE_LOOKUP_CODE. If the transaction
was created by Oracle Purchasing, then the column holds
RCV_TRANSACTIONS.TRANSACTION_TYPE.
Destination: PA_EXPENDITURE_ITEMS_ALL.DOCUMENT_DISTRIBUTION_TYPE
SI_ASSETS_ADDITION_FLAG
The supplier invoice assets addition flag is a system-assigned attribute that indicates the
status of the transaction in relation to Oracle Assets.
Validation: The column is system assigned and for internal use only. It only applies to
supplier cost transactions created in Oracle Payables. The valid values for this column
are as follows:
• Y - The transaction has been interfaced to Oracle Assets.
Destination: PA_COST_DISTRIBUTION_LINES_ALL.SI_ASSETS_ADDITION_FLAG
CDL_SYSTEM_REFERENCE5
A cost distribution line system reference is a reference to a record in an external system.
13-52 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Validation: For transactions created by Oracle Payables, the column holds
AP_INVOICE_DISTRIBUTIONS_ALL. INVOICE_DISTRIBUTION_ID. For transactions
associated with other transaction sources that have the Raw Cost GL Accounted option
enabled, a value is optional. For transactions associated with transaction sources that do
not have the Raw Cost GL Accounted option enabled, if you provide a value, then it is
ignored.
Destination: COST_DISTRIBUTION_LINES_ALL.SYSTEM_REFERENCE5
When the transaction is created by Oracle Payables, it is also copied to
PA_EXPENDITURE_ITEMS_ALL.DOCUMENT_DISTRIBUTION_ID.
SC_XFER_CODE
A supplier cost transfer code is a system-assigned attribute that indicates the General
Ledger transfer status code of the transaction in Oracle Payables or Oracle Purchasing.
Validation: This column is system assigned and for internal use only. It only applies to
transactions created by Oracle Payables or Oracle Purchasing.
Destination: PA_COST_DISTRIBUTION_LINES_ALL.TRANSFER_STATUS_CODE
ADJUSTED_TXN_INTERFACE_ID
An adjusted transaction interface identifier is a system-assigned attribute that contains a
reference to the transaction interface identifier of an adjusted transaction.
Validation: This column is system assigned and for internal use only. The column only
applies to supplier cost transactions created by Oracle Payables or Oracle Purchasing.
The column is not used for labor or usage transactions.
Destination: None
NET_ZERO_ADJUSTMENT_FLAG
A net zero adjustment flag is a system-assigned attribute that indicates the transaction
does not have an impact on the cost amount (in other words, a net-zero value).
Validation: This column is system assigned and is for internal use only. The column is
only used for transactions created by Oracle Payables or Oracle Purchasing.
Destination: PA_EXPENDITURE_ITEMS_ALL.NET_ZERO_ADJUSTMENT_FLAG
INVALID_END_DATE The value for the expenditure ending date is not a valid
week ending date.
ITEM_NOT_IN_WEEK The expenditure item date for a timecard item does not fall
within the timecard expenditure week.
PA_EXP_TYPE_INACTIVE The expenditure item date falls outside the effective dates
of the expenditure type. Change the expenditure item date,
expenditure type, or expenditure type dates.
You can get a complete listing of all the rejection reasons from PA_LOOKUPS under the
lookup type TRANSACTION REJECTION REASON.
Note: The transaction import validation logic is different when you run
the process PRC: Interface Supplier Costs to import transactions from
Oracle Purchasing and Oracle Payables. The processes uses predefined
supplier cost transaction sources to import expenditure items and it
rejects only the expenditure items that fail validation. The process
imports the valid expenditure items in the expenditure. You can use the
13-54 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Review Transactions window to change the date for a rejected
expenditure item. Oracle Projects picks up the revised date for the
rejected transaction the next time that you run the process PRC:
Interface Supplier Costs.
1 P [blank] [blank]
2 P [blank] [blank]
3 P [blank] [blank]
The following table shows the same three transactions after Transaction Import. Only
Transaction 1 is shown in the exception report.
2 P [blank] 1009
3 P [blank] 1009
There are three methods you can use to view rejected transactions:
• Use the Review Transactions window
You can use the Review Transactions window to search for rejected transactions by
transaction source or batch name. See: To view rejected transactions, page 13-56.
• Use SQL*Plus
You can use SQL*Plus to identify the records that have been rejected by selecting
those rows with a TRANSACTION_STATUS_CODE of R and selecting the rejection
reason for each rejected record from the TRANSACTION_REJECTION_CODE
column.
2. Optionally enter the transaction source or the name of the expenditure batch
containing the failed transaction(s).
If you do not enter any search criteria, Oracle Projects will retrieve all rejected
transactions, sorted by transaction source and batch name.
3. Choose Find.
13-56 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
same expenditure to P (Pending).
The original and updated values for corrected transactions are stored in the audit table
PA_TXN_INTERFACE_AUDIT_ALL.
To correct and resubmit rejected transactions:
1. After you use the Review Transactions window to query your rejected transactions,
make the changes indicated by the transaction rejection reasons. Oracle Projects
validates each transaction and displays any errors before proceeding to the next
transaction. Acknowledge each error message by choosing OK if you want to save
the transaction with the errors, or choose Cancel and correct the error.
3. Choose Import to re-import all the records with a status of Pending for this
transaction source and batch. Oracle Projects will validate the transactions online.
You can also use the Review Transactions window to create one or more new
transactions without loading them from the feeder system. This window was designed
to expedite minor additions to expenditure batches, primarily for testing purposes.
To create new transactions:
1. In the Review Transactions window, choose Edit > New Record.
2. Enter transaction details for the new transaction. The information you must enter
depends on the transaction source details, just as when you populate the
Transaction Import interface table..
The validation process rejected Transaction 1 because the project you are charging is
invalid. Using SQL*Plus, you update the project number of the transaction to a valid
project number.
Now that you have corrected the rejected expenditure item, and the status of all
expenditure items within the rejected expenditure is updated, you can run Transaction
Import to successfully import the updated transactions.
• The transaction interface ID (if the transaction source allows duplicate system
references)
13-58 Oracle Projects APIs, Client Extensions, and Open Interfaces Reference
Index
Index-1
retrieving error messages, 5-18 resource, 3-109
starting the server-side process, 5-17 resource breakdown structures, 3-140
asset, 4-1 responsibility, 2-8
budget, 6-7, 6-56 security, 5-1
budget apis set up a product in Oracle Projects, 2-7
getting the budget data, 6-57 source project, 3-55
budget APIs source template, 3-55
connecting to an Oracle database, 6-57 standard parameters, 2-21
finishing the Load-Execute-Fetch starting the server-side process, 3-59
process, 6-63 status, 6-70
getting budget line data, 6-59 Status APIs
starting the server-side process, 6-63 procedures, 6-76
common, 2-25 structure APIs, 3-69
connecting to an Oracle database, 3-54 Structure APIs
custom summarization APIs procedures, 3-68
budget summarization API, 6-89 t APIs
custom summarization reporting APIs, 6-87 interfacing budget information to the
actuals summarization API, 6-87 server, 6-62
event, 5-27 task assignments, 3-157
Event APIs task information
API procedure definitions, 5-32 interfacing to the server, 3-58
interfacing information to the server, 3-56 tasks
introduction, 2-1 return values, 3-59
Load-Execute-Fetch procedures user-defined attributes, 3-85
finishing, 3-60 views, 2-25
messages, 2-11 where information originates, 2-3
Oracle Applications user, 2-6 APPLY_LP_PROG_ON_CWV, 3-72
overview, 1-1, 2-2 asset
overview of APIs, client extensions, and open convert
interfaces, 1-1 CONVERT_PM_ASSETREF_TO_ID, 4-7
planning rates, 6-69 create, 4-2
planning resource lists, 3-122 delete, 4-4
project, 3-2 fetch
project APIs FETCH_PROJECT_ASSET_ID, 4-7
See check procedures function definitions, 4-2
project definition APIs load, 4-5
common parameters, 3-7 procedure definitions, 4-2
Project Definition APIs asset assignment
procedures, 3-6 add, 4-4
project definition APIs , 3-7 delete, 4-4
project deliverables, 6-1 load, 4-5
project performance reporting APIs, 6-90 asset cost allocation basis extension, 9-39
quick entry fields, 3-55 asset lines
referencing Oracle Projects entities, 2-24 extension to assign assets to, 9-41
refresh planning amounts, 6-69 asset lines processing extension, 9-42
Refresh Planning Amounts API assets
Refresh Rates procedure, 6-69 APIs, 4-1
Index-2
extension, 9-41 calculating amounts, 6-21
functions, 4-2 creating, 6-24
procedures, 4-2 dates
procedures and views, 4-1 start and end, 6-25
ASSIGN_RBS_TO_PROJECT, 3-153 deleting, 6-30, 6-37
assignment approval deleting lines, 6-33
extensions, 11-1, 11-2 entry methods, 6-34, 6-58
assignment approval notification extension, 11-2 examples, 6-56, 6-63, 6-66
assignment approval workflow overview, 6-56
extension, 11-1, 11-2 period names, 6-25
ASSOCIATE_DLV_TO_TASK, 6-6 procedures, 6-8
ASSOCIATE_DLV_TO_TASK_ASSIGN, 6-6 procedures and views, 6-7, 6-8
attribute groups submitting, 6-20
multi-row, 3-88 task level of BEM, 6-25
single-row, 3-88 types
automatic events, 10-24 predefined, 6-57
updating, 6-39
B budgets and forecasts
extensions
BASELINE_BUDGET, 6-20
budget calculation, 12-3
BASELINE_STRUCTURE, 3-72
budget verification, 12-7
baseline budget
budget workflow, 12-8
api
estimate to complete generation method,
agreements, 5-6
12-9
billing
burdening
extensions
cost plus API, 4-7
concepts, 10-11
extension for costing, 9-28
debugging, 10-25
burdening commitments client extension, 12-18
deriving cycle dates, 10-2
PSI
implementing, 10-6
function, 12-18
overview, 10-3
same line burdening, 12-18
views and procedures, 10-21
burden resource extension, 9-29
surcharges, 10-28
client column values procedure, 9-30
billing extensions
client grouping function, 9-29
defining, 10-7
burden transactions
budget APIs
importing, 13-10
record and table datatypes, 6-9
business rules
budget lines
PA_AGREEMENT_PUB.ADD_FUNDING, 5-7
adding, 6-16
PA_AGREEMENT_PUB.CHECK_ADD_FUN
deleting, 6-33
DING_OK, 5-13
updating, 6-47, 6-53
PA_AGREEMENT_PUB.CHECK_DELETE_A
budget procedures
GREEMENT_OK, 5-12
definitions, 6-15
PA_AGREEMENT_PUB.CHECK_DELETE_F
budgets
UNDING_OK, 5-14
adding lines, 6-16
PA_AGREEMENT_PUB.CHECK_UPDATE_F
APIs, 6-7
UNDING_OK, 5-14
baseline, 6-20
pa_agreement_pub.create_agreement, 5-3
Index-3
pa_agreement_pub.delete_agreement, 5-4 CHECK_UNIQUE_PROJECT_REFERENCE, 3-22
PA_AGREEMENT_PUB.DELETE_FUNDING, CHECK_UNIQUE_TASK_NUMBER, 3-84
5-8 CHECK_UNIQUE_TASK_REFERENCE, 3-85
pa_agreement_pub.execute_create_agreement, CHECK_UPDATE_FUNDING_OK, 5-14
5-10 check procedures, 3-2
PA_AGREEMENT_PUB.EXECUTE_UPDATE Check procedures, 3-6, 3-68, 3-85
_AGREEMENT, 5-11 CIP account override extension, 9-49
PA_AGREEMENT_PUB.UPDATE_AGREEM CIP Grouping Client Extension, 9-46
ENT, 5-5 CLASS_CATEGORY_TBL_TYPE datatype, 3-34
pa_agreement_pub.update_funding, 5-8 CLEAR_AGREEMENT, 5-12
CLEAR_BUDGET, 6-52
C CLEAR_CALCULATE_AMOUNTS, 6-52
CLEAR_CREATE_RESOURCE_LIST, 3-118
CALCULATE_AMOUNTS, 6-21
CLEAR_EVENT, 5-34
capital event processing extension, 9-43
CLEAR_PROJECT, 3-17
capitalized interest extension, 9-44
CLEAR_UPDATE_MEMBERS, 3-118
capital projects
client extension
client extensions
non-labor billing, 10-38
asset cost allocation basis, 9-39
client extensions, 9-28
asset lines processing, 9-42
allocations, 9-30
capital event processing, 9-43
analyzing business requirements, 7-2
capitalized interest, 9-44, 9-45
archive custom tables, 8-18
CIP account override, 9-49
description, 8-18
depreciation expense account override,
procedure, 8-18
9-50
archive project validation, 8-18
case studies
description, 8-18
billable status default, 9-10
validate projects procedure, 8-18
billing surcharges, 10-28
AR transaction type, 10-45
transaction controls, 9-7, 9-9, 9-10
asset allocation basis, 9-39
CHANGE_CURRENT_WORKING_VERSION, 3-
business rules, 9-40
73
procedure, 9-41
CHANGE_STRUCTURE_STATUS, 3-73
asset assignment, 9-41
change management
asset cost allocation basis, 9-39
client extensions
asset lines processing, 9-42
control item document numbering, 12-10
asset lines processing procedure, 9-43
issue and change workflow, 12-11
assignment approval changes, 11-1
CHECK_ADD_FUNDING_OK, 5-13
assignment approval notification, 11-2
CHECK_ADD_SUBTASK_OK, 3-83
parameters, 11-2
CHECK_CHANGE_PARENT_OK, 3-83
procedures, 11-2
CHECK_CHANGE_PROJECT_ORG_OK, 3-21
autoapproval, 9-11
CHECK_DELETE_AGREEMENT_OK, 5-12
AutoApproval
CHECK_DELETE_EVENT_OK, 5-34
parameters, 9-11
CHECK_DELETE_FUNDING_OK, 5-14
automatic invoice approve/release, 10-41
CHECK_DELETE_PROJECT_OK, 3-22
designing, 10-41
CHECK_DELETE_TASK_OK, 3-83
writing, 10-40
CHECK_TASK_MFD, 3-84
billing cycle, 10-2
CHECK_TASK_NUMBER_CHANGE_OK, 3-84
billing extensions
Index-4
designing, 10-8 labor billing, 10-36
overview, 10-3 designing, 10-36
views and procedures, 10-21 writing, 10-35
writing procedures, 10-24 labor costing, 9-14
budget calculation, 12-3 designing, 9-14
designing, 12-3 processing, 9-14
procedures, 12-5 writing, 9-14
types of calculations, 12-4 labor transaction, 9-16
budget verification, 12-7 designing, 9-16
budget workflow, 12-8 frequently asked questions, 9-22
designing, 12-8 processing, 9-16
procedures, 12-8 related transactions, 9-16
burden costing, 9-28 writing, 9-16
burden resource, 9-29 non-labor billing, 10-38
candidate notification workflow, 11-4 designing, 10-38
capital event processing, 9-43 writing, 10-39
procedure, 9-44 output tax, 10-42
capitalized interest, 9-44, 9-45 overtime calculation, 9-24
CIP account override, 9-49 designing, 9-24
procedure, 9-49 report, 9-26
CIP grouping, 9-46 writing, 9-26
example, 9-47 overview, 1-2
commitment changes overview and list
package, 12-19 sectHead, 7-1
control item document numbering, 12-10 performance status, 12-14
procedures, 12-10 procedure, 12-14
cost accrual billing, 10-33 performance status
cost accrual identification, 10-34 package, 12-14
cross charge, 9-51 progress management, 12-2
custom performance measure, 12-13 project and task date, 8-5
procedures, 12-13 project management, 12-2
custom performance measure project security, 8-1
package, 12-13 project status inquiry, 12-15
depreciation account override, 9-50 Project Status Inquiry
procedure, 9-50 burdening commitments, 12-18
depreciation expense account override, 9-50 commitment changes, 12-19
descriptive flexfield mapping, 8-14 project status inquiry burdening
description, 8-14 commitments, 12-18
designing project status inquiry commitment changes,
logic, 7-2 12-19
estimate to complete generation method, 12-9 project status report workflow, 12-12
procedures, 12-9 procedures, 12-12
funding revaluation factor, 10-1 project verification, 8-3
implementing designing, 8-3
SectHead, 7-2 processing, 8-3
issue and change workflow, 12-11 writing, 8-3
procedures, 12-11 project workflow, 8-8
Index-5
processing, 8-8 cross charge
writing, 8-8 extension for
PSI, 12-15 internal payables invoice attributes
procedures, 12-15 override, 9-58
receivables installation override, 10-43 extensions for
retention billing cost accrual ID, 10-34
writing, 10-40 determining transfer price, 9-54
syntax, 7-6 overriding processing method, 9-52
task date overriding providers and receivers, 9-51
customize dates procedure, 8-5 overriding transfer price, 9-55
transaction control, 9-1 overriding transfer price currency, 9-57
designing, 9-2 currencies
error messages, 9-3 extensions
frequently asked questions, 9-7 transfer price currency, 9-57
parameters, 9-4 importing transactions in foreign, 13-12
processing, 9-2 rounding, 13-14
validation, 9-2 CUSTOMER_TBL_TYPE, 3-45
writing, 9-3
transaction import, 8-10 D
verify organization change, 8-9
datatypes
workplan workflow, 12-1
BUDGET_LINE_IN_REC_TYPE, 6-10
commitment changes client extension, 12-19
BUDGET_LINE_OUT_REC_TYPE, 6-13
procedure, 12-19
CALC_BUDGET_LINE_OUT_REC_TYPE, 6-
commitments, 6-74
13
extension for burdening, 12-18
composite, 2-22, 5-24, 6-66
extension for tracking changes, 12-19
for planning resource lists, 3-124
common APIs, 2-25
record and table, 3-22, 3-142, 3-158, 6-77
composite datatypes, 2-22, 5-24, 6-66
standard, 2-31
record and table datatypes, 3-22, 3-124, 3-142,
dates for
6-77
budgets, 6-25
composite data types
projects, 3-8, 3-13, 8-5
record and table datatypes, 3-158
tasks, 3-8, 3-16, 8-5
cost plus API, 4-7
defaults
example, 4-9
initialization, 2-27
costs
DELETE_AGREEMENT, 5-4
accruing
DELETE_ASSET_ASSIGNMENT, 4-4
extension for identification, 10-34
DELETE_BASELINE_BUDGET, 6-30
CREATE_AGREEMENT, 5-3, 5-32
DELETE_BUDGET_LINE, 6-33
CREATE_BASELINE_BUDGET, 5-6
DELETE_DELIVERABLE_ACTIONS, 6-6
CREATE_DELIVERABLE, 6-4
DELETE_DELIVERABLES, 6-6
CREATE_DELIVERABLE_ACTION, 6-5
DELETE_DLV_TO_TASK_ASSCN, 6-7
CREATE_DRAFT_BUDGET, 6-24
DELETE_DLV_TO_TASK_ASSIGN, 6-7
CREATE_DRAFT_FINPLAN, 6-27
DELETE_DRAFT_BUDGET, 6-37
CREATE_PROJECT, 3-8
DELETE_EVENT, 5-32
CREATE_RBS, 3-147
DELETE_FUNDING, 5-8
CREATE_RBS_WORKING_VERSION, 3-148
DELETE_PLAN_RL_FORMAT, 3-135
CREATE_RESOURCE_LIST, 3-113, 3-131
Index-6
business rules, 3-135 examples
parameters, 3-135 composite datatypes, 5-24, 6-66
DELETE_PLANNING_RESOURCE, 3-134 integrating data, 3-54, 5-15, 6-56
business rules, 3-134 Load-Execute-Fetch procedures, 3-60, 5-19, 6-
parameters, 3-134 63
DELETE_PROJECT, 3-9 restricting actions, 2-30
DELETE_PROJECT_ASSET, 4-4 tracking dates, 8-5
DELETE_RESOURCE_LIST, 3-115, 3-133 EXEC_CREATE_RBS, 3-152
DELETE_RESOURCE_LIST_MEMBER, 3-116 EXEC_CREATE_RESOURCE_LIST, 3-118, 3-135
DELETE_STRUCTURE_VERSION, 3-74 EXEC_UPDATE_RBS, 3-152
DELETE_TASK, 3-74 EXEC_UPDATE_RESOURCE_LIST, 3-118, 3-136
DELIVERABLE_IN_REC_TYPE, 3-47 EXECUTE_CALCULATE_AMOUNTS, 6-52
DELIVERABLE_OUT_REC_TYPE, 3-48 EXECUTE_CREATE_AGREEMENT, 5-10
dependency EXECUTE_CREATE_DRAFT_BUDGET, 6-53
apis, 3-155 EXECUTE_CREATE_DRAFT_FINPLAN, 6-54
views, 3-155, 3-155 EXECUTE_CREATE_EVENT, 4-6, 5-33
dependency procedures, 3-155 EXECUTE_CREATE_PROJECT, 3-17
create_dependency, 3-155 EXECUTE_UPDATE_AGREEMENT, 5-11
delete_dependency, 3-157 EXECUTE_UPDATE_BUDGET, 6-54
update_procedures, 3-156 EXECUTE_UPDATE_EVENT, 5-34
depreciation expense account override extension, EXECUTE_UPDATE_PROJECT, 3-18
9-50 EXECUTE_UPDATE_TASK_PROGRESS, 6-86
descriptive flexfields expenditures, 3-110, 3-110
allocation, 9-37 approving, 9-11
mapping extension, 8-14 expense reports
approving, 9-11
E importing, 13-17
exporting database, 2-7
error messages
extensions
creation, 2-10
project and task date, 8-5
retrieving, 2-25, 3-59, 6-63
workplan workflow, 12-1
event
external systems
check delete, 5-34
overview, 2-2
clear, 5-34
create, 4-6, 5-32, 5-33
delete, 5-32 F
fetch, 5-34 FETCH_BUDGET_LINE, 6-55
initiate, 5-33 FETCH_CALCULATE_AMOUNTS, 6-55
load, 5-33 FETCH_EVENT, 5-34
update, 4-3, 5-32, 5-34 FETCH_FUNDING, 5-12
event apis FETCH_MEMBERS, 3-118, 3-137
package variables, 5-28 FETCH_PLAN_FORMAT, 3-136
events FETCH_RBS_ELEMENT, 3-152
APIs, 5-27 FETCH_RBS_HEADER, 3-151
automatic, 10-24 FETCH_RBS_VERSION, 3-151
procedures, 5-27 FETCH_RESOURCE_LIST, 3-119, 3-136
event types, 3-110 FETCH_STRUCTURE_VERSION, 3-80
Index-7
FETCH_TASK, 3-80 INIT_PROJECT, 3-19
FETCH_TASK_VER, 3-81 INIT_RBS_PROCESSING, 3-150
FETCH_TASKS, 3-80 INIT_UPDATE_MEMBERS, 3-119, 3-137
files INIT_UPDATE_TASK_PROGRESS, 6-87
output integration
paamgcrole.lst, 2-5 examples, 3-54, 5-15, 6-56
paamgcuser.lst, 2-6 with other systems, 2-2
FREEZE_RBS_VERSION, 3-153 with project management systems, 2-5
funding interface tables, 13-27
add, 5-7 internal payables invoice attribute override
check adding, 5-13 extension
check deleting, 5-14 sectHead, 9-58
check update, 5-14 invoices
create, 5-7 approving, 10-40
delete, 5-8 extension, 10-40
fetch, 5-12 releasing, 10-40
load, 5-10 issue management
update, 5-8 client extensions
control item document numbering, 12-10
G issue and change workflow, 12-11
GET_ACCUM_PERIOD_INFO, 2-28
GET_DEFAULTS, 2-27 L
GET_DELETED_TASKS_FROM_OP, 3-76 labor
GET_MESSAGES, 2-25 extensions
GET_PROJECT_ID, 6-39 billing, 10-35
GET_TASK_VERSION, 3-75 costing, 9-14
Get Burden Amount, 4-8 transaction, 9-16
global variables, 2-9 labor costs
grants, 2-7 extensions, 9-14
graphics LOAD_ACTION, 6-3
See illustrations LOAD_ACTIONS, 6-4
LOAD_AGREEMENT, 5-9
H LOAD_ASSET_ASSIGNMENT, 4-5
LOAD_BUDGET_LINE, 6-55
hard limits, 10-24
LOAD_CLASS_CATEGORY, 3-19
LOAD_DELIVERABLE, 6-3
I
LOAD_DELIVERABLES, 6-3
importing LOAD_EVENT, 5-33
manufacturing costs, 13-10 LOAD_EXTENSIBLE_ATTRIBUTE, 3-86
transactions, 13-1 example, 3-91
importing database, 2-7 LOAD_EXTENSIBLE_ATTRIBUTES, 3-87
INIT_AGREEMENT, 5-9 example, 3-99
INIT_BUDGET, 6-55 LOAD_FUNDING, 5-10
INIT_CALCULATE_AMOUNTS, 6-55 LOAD_KEY_MEMBER, 3-20
INIT_CREATE_RESOURCE_LIST, 3-119, 3-137 LOAD_MEMBERS, 3-119
INIT_EVENT, 5-33 LOAD_ORG_ROLE, 3-20
Index-8
LOAD_PLANNING_RESOURCE, 3-139 transaction import, 13-2
LOAD_PROJECT, 3-20 Oracle Projects APIs
LOAD_PROJECT_ASSET, 4-5 overview, 2-2
LOAD_RBS_ELEMENTS, 3-150 Oracle Receivables
LOAD_RBS_HEADER, 3-150 extensions to
LOAD_RBS_VERSION, 3-150 determine transaction type, 10-45
LOAD_RESOURCE_FORMAT, 3-139 override installation, 10-43
LOAD_RESOURCE_INFO, 6-56 integrating with, 10-45
LOAD_RESOURCE_LIST, 3-120, 3-137 Oracle Workflow
LOAD_STRUCTURE, 3-81 extensions for
LOAD_TASK, 3-81, 3-83 budget workflow, 12-8
LOAD_TASK_PROGRESS, 6-86 Project Resource Management, 11-1, 11-2
parameters, 6-79 project status report workflow, 12-12
Load-Execute-Fetch procedures project verification, 8-3
budgets, 6-9 project workflow, 8-8
examples, 3-60, 5-19, 6-63 workplan workflow, 12-1
overview, 2-31 organizations
projects, 3-6 extension to verify changes, 8-9
resources, 3-111 output files
status, 6-76 paamgcrole.lst, 2-5
structure, 3-68 paamgcuser.lst, 2-6
overtime
M calculating
extension for, 9-24
manufacturing costs
overviews
importing, 13-10
client extensions
messages, 2-10
sectHead, 7-1
displaying, 2-11
Transaction Import, 13-1
handling, 2-10
list, 2-11
P
N PA_ACCUM_CMT_TXNS_V, 6-74
PA_ACCUM_RSRC_ACT_V, 6-74
named notation, 2-25
PA_ACCUM_RSRC_CMT_V, 6-74
names
PA_ACCUM_RSRC_COST_BGT_V, 6-75
user, 2-8
PA_ACCUM_RSRC_REV_BGT_V, 6-75
naming projects, 3-11
PA_ACCUM_WBS_ACT_V, 6-75
non-labor
PA_ACCUM_WBS_CMT_V, 6-75
extensions
PA_ACCUM_WBS_COST_BGT_V, 6-75
billing, 10-38
PA_ACCUM_WBS_REV_BGT_V, 6-75
numbering
PA_ACT_BY_GL_PERIOD_V, 6-75
projects, 3-7
PA_ACT_BY_PA_PERIOD_V, 6-75
tasks, 3-76
PA_AGREEMENT_PUB.UPDATE_AGREEMEN
T, 5-5
O
PA_AGREEMENT_TYPE_LOV_V, 5-2
open interfaces PA_AMG_RESOURCE_INFO_V, 3-110
overview, 1-2 PA_ASSET_BOOKS_LOV_V, 4-1
Index-9
PA_BASE_BUDGET_BY_GL_PERIOD_V, 6-8 PA_PROJECT_STATUS_LOV_V, 3-4, 3-67
PA_BASE_BUDGET_BY_PA_PERIOD_V, 6-8 PA_PROJECTS_AMG_V, 3-4
PA_BASE_FINPLAN_BY_GL_PERIOD_V, 6-8 PA_QRY_RESOURCE_LISTS_V, 3-110
PA_BASE_FINPLAN_BY_PA_PERIOD_V, 6-8 PA_QUERY_RES_LIST_MEMBERS_V, 3-110
PA_BUDGET_CHANGE_REASON_V, 6-8 PA_RESOURCE_LIST_GROUPS_V, 3-110
PA_BUDGET_ENTRY_METHODS_V, 6-8 PA_RESOURCE_LIST_V, 3-110
PA_BUDGET_STATUS_CODES_V, 6-8 PA_RESOURCE_TYPES_ACTIVE_V, 3-110
PA_BUDGET_TYPES_V, 6-8 PA_RET_TARGET_ASSET_LOV_V, 4-1
PA_BURDEN_COMPONENT_CMT_V, 6-75 PA_REVENUE_CATEGORIES_RES_V, 3-111
PA_BURDEN_COMPONENT_COST_V, 6-76 PA_REVENUE_SCHEDULES_LOV_V, 3-4
PA_CLASS_CATEGORIES_LOV_V, 3-3 PA_SELECT_TEMPLATE_V, 3-4
pa_client_extn_pm, 8-6 PA_SERVICE_TYPE_LOV_V, 3-67
PA_CMT_BY_GL_PERIOD_V, 6-76 PA_STRUCT_TASKS_AMG_V, 3-155
PA_CMT_BY_PA_PERIOD_V, 6-76 PA_STRUCT_TASKS_V, 3-67
PA_COST_PLUS.GET_BURDEN_AMOUNT, 4-8 PA_STRUCT_VERSIONS_LOV_AMG_V, 3-68
PA_CUSTOMERS_LOV_V, 3-2, 5-2 PA_TASK_ASSIGNMENTS_AMG_V, 6-76
PA_DISCOUNT_CODES_LOV_V, 3-3 PA_TASK_INV_METHODS_LOV_V, 3-68
PA_DISTRIBUTION_RULES_LOV_V, 3-3 PA_TASK_MANAGERS_LOV_V, 3-67
PA_EMPLOYEE_SCHEDULES_LOV_V, 3-3 PA_TASK_PROGRESS_AMG_V, 3-67, 6-76
PA_EMPLOYEES_RES_V, 3-110 PA_TASK_PROGRESS_LIST_REC_TYPE
PA_EVENT_TYPES_RES_V, 3-110 Datatype, 6-77
PA_EXPEND_CATEGORIES_RES_V, 3-110 PA_TASKS_AMG_V, 3-67, 3-155
PA_EXPENDITURE_TYPES_RES_V, 3-110 PA_TASKS_LOWEST_V, 3-67
PA_FINPLAN_TYPES_V, 6-8 PA_TERMS_LOV_A, 5-2
PA_GL_PERIODS_V, 6-76 PA_TOP_TASK_CUSTOMERS_LOV_V, 3-68
PA_INTERFACE_UTILS_PUB, 2-9 PA_TRANSACTION_XFACE_CTRL_ALL, 13-28
PA_INVOICE_SCHEDULES_LOV_V, 3-3 PA_TXN_ACCUM_V, 6-76
PA_JOB_SCHEDULES_LOV_V, 3-3 PA_USER_RESP_V, 2-8
PA_JOBS_RES_V, 3-110 PA_VENDORS_RES_V, 3-111
PA_KEY_MEMBERS_LOV_V, 3-3 paamgcrole.sql, 2-5
PA_LOWEST_LEVEL_RESOURCES, 3-110 paamgcuser.sql, 2-6
PA_ORG_NL_SCHDL_LOV_V, 3-4 paamggran.sql, 2-7
PA_ORGANIZATIONS_LOV_V, 3-4 packages and procedures, 7-4
PA_ORGANIZATIONS_RES_V, 3-110 parameters
PA_ORIG_BUDGET_BY_GL_PERIOD_V, 6-8 standard datatypes, 2-31, 3-69
PA_ORIG_BUDGET_BY_PA_PERIOD_V, 6-8 period accumulation, 2-28
PA_ORIG_FINPLAN_BY_GL_PERIOD_V, 6-8 PL/SQL, 7-4
PA_ORIG_FINPLAN_BY_PA_PERIOD_V, 6-8 planning resource list formats
PA_OVERRIDE_FIELD_VALUES_V, 3-4 deleting, 3-135
PA_OVERRIDE_FIELDS_V, 3-4 planning resource lists
PA_OWNED_BY_LOV_V, 5-2 API definitions, 3-131
PA_PA_PERIODS_V, 6-76 APIs, 3-122
PA_PARENT_ASSET_LOV_V, 4-1 views, 3-122
PA_PM_REFERENCE_V, 6-76 planning resources
PA_PROJ_ORG_STRUCTURES_V, 3-110 deleting, 3-134
PA_PROJECT_ASSET_TYPE_LOV_V, 4-1 Post-Import Client Extension, 8-13
PA_PROJECT_ASSETS_AMG_V, 4-2 Pre-Import Client Extension, 8-11
Index-10
procedure definitions commitment changes, 12-19
budget, 6-8 project status reports
check project, 3-6 extensions, 12-12
check structure and task, 3-68 using the project status report workflow
dependency, 3-155 extension, 12-12
Load-Execute-Fetch, 3-6, 3-68, 3-111, 6-9, 6-76 project workflow
overview, 2-31 extension to call, 8-3
project, 3-6 extension to change status, 8-8
resource breakdown structures, 3-141 PSI, 2-4, 6-70
resource list, 3-111, 3-111 client extension, 12-15, 12-18
status, 6-76, 6-83
structure and task, 3-68 R
task assignments, 3-158
record and table datatypes, 3-22, 6-77
product codes, 6-24, 6-27
budget, 6-9
prohibiting actions, 2-30
for planning resource list APIs, 3-124
PROJECT_IN_REC_TYPE datatype, 3-22
for resource breakdown structure APIs, 3-142
PROJECT_OUT_REC_TYPE datatype, 3-33
for task assignment APIs, 3-158
PROJECT_ROLE_TBL_TYPE datatype, 3-34
refresh planning amounts
project deliverable APIs, 6-1
API, 6-69
project deliverables APIs
refresh rates
procedures, 6-2
refresh planning rates and amounts API, 6-69
views, 6-2
reports and listings
projects
Pre-Approved Expenditures Entry Audit
APIs, 3-2
Report, 13-23
attributes
resource breakdown structure
changing, 3-11
fetching elements for, 3-152
commitments, 6-74
fetching versions for, 3-151
creating, 3-8
freezing resource breakdown structure
dates
versions, 3-153
start and finish, 3-8, 3-13, 8-6
initializing processing, 3-150
defining, 3-6
loading versions for, 3-150
deleting, 3-9
resource breakdown structures
examples, 3-60
API definitions, 3-147
numbering, 3-7
APIs, 3-140
overview, 3-54
assigning to projects, 3-153
procedures and views, 3-6
copying a working version, 3-148
updating, 3-10
creating, 3-147
project security extension, 8-1
fetching headers for, 3-151
logic, 8-1
loading elements for, 3-150
parameters, 8-1
loading headers for, 3-150
writing, 8-1
updating, 3-149
project status
views, 3-140, 3-141
extensions, 8-3, 8-8
resource list members
Project Status Inquiry, 12-15, 12-18
adding, 3-112
adding columns, 12-15
deleting, 3-116, 3-116
client extension, 12-15
retrieving, 3-110
burdening commitments, 12-18
Index-11
sorting, 3-116 status APIs, 6-70
updating, 3-117 structure
resource lists defining, 3-68
creating, 3-113, 3-131 procedures and views, 3-68
deleting, 3-115, 3-115, 3-133 Structure APIs
names, 3-120, 3-137 structures, 3-66
retrieving, 3-110, 3-110, 3-110 tasks, 3-66
updating, 3-112, 3-114, 3-117, 3-132 submitting
resource procedures budgets, 6-20
definitions, 3-112 summary amounts
resources commitment, 6-75
APIs, 3-109 cost budget, 6-75
commitments, 6-74 resource commitment, 6-74
defining, 3-110, 3-110, 3-110, 3-110, 3-111 resource cost budget, 6-75
retrieving, 3-110 resource revenue, 6-74
tracked as labor, 6-71 resource revenue budget, 6-75
values predefined by Oracle Projects, 6-71 revenue, 6-75
vendors, 3-111 revenue budget, 6-75
views, 3-109, 3-111 systems
restricting actions, 2-30 external, 2-2
retention
billing extension, 10-40 T
retrieving error messages, 2-25, 3-59, 6-63
TABLE_IN_TBL_TYPE datatype, 3-35
revenue categories, 3-111
table and record datatypes, 3-22, 6-77
Review Transactions window, 13-53, 13-55
for planning resource list APIs, 3-124
for resource breakdown structure APIs, 3-142
S for task assignment APIs, 3-158
scripts TASK_OUT_TBL_TYPE datatype, 3-42
paamgcrole.sql, 2-5 task assignment
paamgcuser.sql, 2-6 update_task_assignment_periods, 3-165
paamggran.sql, 2-7 task assignment procedures, 3-162
security execute_create_task_asgmts, 3-163
project execute_update_task_asgmts, 3-164
client extension, 8-1 load_task_assignment_periods, 3-163
security requirements, 2-8 load_task_assignments, 3-163
SET_GLOBAL_INFO, 2-9 task assignments
SET_PROJECT_ID, 6-39 APIs, 3-157
SORT_RESOURCE_LIST_MEMBERS, 3-116 create_task_assignment_periods, 3-164
standard API parameters, 2-21 create_task_assignments, 3-164
standard datatypes, 2-31, 3-60, 5-19 delete_task_assignments, 3-166
status fetch_task_assignments, 3-166
defining, 6-76 init_task_assignments, 3-167
procedures, 6-76 update_task_assignments, 3-165
views, 6-74 views, 3-157, 3-158
status apis task asssignments
parameters, 6-79 convert_pm_taref_to_id, 3-167
Index-12
tasks reporting, 13-6
adding, 3-69 reviewing transactions, 13-55
attributes rounding limit, 13-14
changing, 3-15 tables
commitments, 6-74 interface control, 13-28
dates transactions
start and finish, 3-8, 3-16, 8-5, 8-6 adjusting, 13-24
deleting, 3-10, 3-74 importing, 13-6
fields, 3-16 purging, 13-24
interface to Oracle Projects, 3-15 viewing, 13-23
loading task information, 3-81 unmatched negative transactions for, 13-7, 13-
moving within the WBS, 3-16 8
numbering, 3-15 validation
subtasks H:1, 13-25
creating, 3-69 Transaction Import Client Extensions, 8-10
updating, 3-76 transactions
taxes adjusting, 9-22
classification codes unmatched negative, 13-7, 13-8
defaults, 10-42 transaction types
templates extension, 10-45
for client extensions, 7-6
transaction controls U
case studies, 9-7, 9-9, 9-10
UPDATE_BUDGET, 6-39
extensions, 9-1
UPDATE_BUDGET_LINE, 6-47
transaction import
UPDATE_DELIVERABLE, 6-4
defining sources, 13-6
UPDATE_DELIVERABLE_ACTION, 6-5
examples, 13-19, 13-21
UPDATE_EARNED_VALUE, 6-83
exceptions, 13-53
UPDATE_EVENT, 4-3, 5-32
expenditure type classes for, 13-7
UPDATE_FUNDING, 5-8
grouping transactions, 13-16
UPDATE_PROGRESS, 6-84
interface tables, 13-25
parameters, 6-79
column descriptions, 13-28
UPDATE_PROJECT, 3-10
expenditure, 13-26
UPDATE_RBS, 3-149
populating, 13-4, 13-27
UPDATE_RESOURCE_LIST, 3-114, 3-132
loading
UPDATE_RESOURCE_LIST_MEMBER, 3-117
accounted/unaccounted items, 13-9
UPDATE_TASK, 3-76
burden transactions, 13-10
User-Defined Attribute API
costed/uncosted items, 13-8
example, 3-87
foreign currency transactions, 13-12
user-defined attributes
manufacturing costs, 13-10
APIs, 3-85
options, 13-15
loading, 3-86, 3-87
overview, 13-1, 13-4
procedures, 3-85
process diagram, 13-2
usernames, 2-8
process flow diagram, 13-2
rejections
V
codes for, 13-54
correcting, 13-56 variables
Index-13
global, 2-9
vendors, 3-111
verifying data, 3-2, 3-85
view definitions
asset, 4-1
budget, 6-7
dependency, 3-155, 3-155
planning resource lists, 3-122
project, 3-2
resource breakdown structures, 3-140, 3-141
resources, 3-109, 3-111
status, 6-71, 6-74
structure, 3-67
task assignments, 3-158
views
task assignments , 3-157
W
WBS, 3-2, 3-16
window illustrations
Review Transactions, 13-53
workplan and progress management
extensions for progress management, 12-2
workplan workflow extension, 12-1
Index-14