Search Results g_worktype_billability
Overview
PA_UTILS4 is a utility package body owned by APPS in the Oracle E-Business Suite Projects (PA) module. It provides a shared library of helper routines that support assignment derivation, work type resolution, billing and costing eligibility checks, and transaction existence verification for project-related processing. The package is classified under the "OTHER" API category, indicating it is an internal utility rather than a formally published public interface. Its header version ($Header: PAXGUT4B.pls 120.10.12010000.3) confirms it as a delivered Oracle file maintained through standard patchship cycles, with the most recent recorded change dated 2010.
The business purpose of PA_UTILS4 is to centralize logic that would otherwise be duplicated across project transaction, billing, and costing flows. Routines such as GET_WORK_ASSIGNMENT and GET_WORK_TYPE_ID resolve the relationship between a person, project, task, and transaction date, returning an assignment identifier and derived work type. Other routines answer binary eligibility questions — whether a work type is billable, whether an expenditure work type is enabled, or whether contract commitment transactions exist. Because the package is referenced by 76 other packages, it functions as a low-level dependency in the Projects application stack, and changes to it carry broad impact across the module.
A note on the source excerpt: the visible code for print_msg and CheckCCTxnsExists shows that message logging is suppressed (the debug calls are commented out and the body performs null), while CheckCCTxnsExists uses a hierarchical CONNECT BY query against IGC_CC_ACCT_LINES and PA_PROJECTS_ALL to determine whether contract commitment transactions exist for a project or, more narrowly, for a task and its descendants. The exception handlers return 'N' on NO_DATA_FOUND and re-raise other errors.
Key Procedures and Functions
The documented interface comprises 28 procedures and functions. Grouped by purpose:
- Assignment and work type derivation: GET_WORK_ASSIGNMENT, GET_WORK_TYPE_ID, GET_WORK_TYPE_NAME, GET_ASSIGNMENT_NAME, and GET_ASSIGNMENT_ID resolve the assignment and work type applicable to a person, project, task, and transaction date. Where more than one assignment exists, or none exists, the assignment identifier is returned as zero and the name as null.
- Billing and revenue eligibility: GET_TP_AMT_TYPE_CODE, IS_WORKTYPE_BILLABLE_ENABLED, GET_TRXN_WORK_BILLABILTY, GETORIG_EIBILLABILITY_SST, and GETORIG_EIBILL_HOLD determine whether a transaction is billable via the standard billing path and report the originating billability status and hold flag.
- Costing and configuration checks: IS_EXP_WORK_TYPE_ENABLED, ISUSEDINCOSTING, CHECKTOENABLEBDGTCTRL, and CHECK_TXN_EXISTS test whether expenditure work types are enabled, whether an entity is used in costing, whether budget control should be enabled, and whether transactions exist.
- Organizational and ledger lookups: GET_ORG_ID, GETORGBUSINESSGRPID, GET_PRIMARY_SOB, and GET_IMP_VALUES return organization identifiers, the business group, the primary set of books, and implementation parameter values.
- Generic utilities: GETNUMERICSTRING formats numeric values as strings, and CHECK_CC_TXNEXISTS is the documented counterpart to the CheckCCTxnsExists routine shown in the source.
Tables Accessed
PA_UTILS4 reads from a set of Projects, financial, and human resources tables through APPS synonyms:
- Project foundation: PA_PROJECTS_ALL, PA_PROJECT_ASSIGNMENTS, PA_ORG_LABOR_SCH_RULE, PA_IMPLEMENTATIONS, and PA_IMPLEMENTATIONS_ALL supply project, assignment, labor schedule, and implementation context.
- Transactions and commitments: IGC_CC_ACCT_LINES holds contract commitment accounting lines checked by CheckCCTxnsExists; PA_EXPENDITURE_ITEMS_ALL, PA_EXPENDITURE_TYPES, and PA_COMPENSATION_DETAILS_ALL support costing and work type evaluation.
- Financial and procurement: AP_CHECKS, AP_INVOICE_PAYMENTS, GL_LEDGERS, and MTL_SYSTEM_ITEMS_KFV provide payment, ledger, and item information.
- Organizations and resources: HR_ALL_ORGANIZATION_UNITS and BOM_RESOURCES validate organizational and resource references.
Usage Notes
Because PA_UTILS4 is referenced by 76 other packages, it is normally invoked indirectly rather than called by end users. Typical call paths include Project Transactions, Expenditure Billing, and Costing concurrent programs, and the OAF or Forms-based pages that validate assignment, work type, and billability data as transactions are entered or processed. Attribute validation logic may call GET_WORK_ASSIGNMENT or GET_WORK_TYPE_ID to default the correct assignment for a timecard or expenditure line.
Custom development should treat these routines as internal utilities: they carry an "OTHER" classification rather than a supported public API designation, and the documented signatures should be verified against the target release before use. In Oracle EBS 12.1.1 and 12.2.2, the package resides in the APPS schema, so custom code should reference it as APPS.PA_UTILS4 with appropriate execution privileges. The debug logging via print_msg is disabled in the delivered source, so diagnostic output must be obtained through other means.
-
PACKAGE BODY: APPS.PA_UTILS4
12.2.2
-
PACKAGE BODY: APPS.PA_UTILS4
12.1.1
-
PACKAGE: APPS.PA_UTILS4
12.1.1
-
PACKAGE: APPS.PA_UTILS4
12.2.2
-
APPS.PA_UTILS4 dependencies on FND_PROFILE
12.1.1
-
APPS.PA_UTILS4 dependencies on FND_PROFILE
12.2.2
-
APPS.PA_UTILS4 dependencies on DUAL
12.2.2
-
APPS.PA_UTILS4 dependencies on DUAL
12.1.1
-
APPS.PA_UTILS4 dependencies on PA_UTILS4
12.2.2
-
APPS.PA_UTILS4 dependencies on PA_UTILS4
12.1.1
-
APPS.PA_UTILS4 dependencies on PA_UTILS
12.2.2
-
APPS.PA_UTILS4 dependencies on PA_UTILS
12.1.1