Search Results validate_labor_time




Overview

CSFW_DEBRIEF_PUB is a public PL/SQL API package in the Oracle E-Business Suite Applications (APPS) schema that supports the Service De-briefing process within Oracle Field Service and Enterprise Asset Management. De-briefing is the mechanism by which field service technicians, after completing a task or service assignment, report the labor time, material consumption, expenses, travel, and charges incurred during the visit. The package provides programmatic control over the creation and modification of the de-brief header and its associated lines, allowing callers to record billable and non-billable service activity against a task assignment. Because it is classified as a PUB package, it is designed for external invocation by forms, concurrent programs, and custom extensions rather than being an internal helper. The header retains the source version marker $Header: csfwdbfs.pls 120.6.12000000.3 2007/07/05 09:09:12 htank ship $, and the object is documented for both 12.1.1 and 12.2.2 releases.

Key Procedures and Functions

The package exposes twelve documented procedures. The core sequence begins with CREATE_DEBRIEF_HEADER, which establishes the de-brief record tied to a task assignment and returns the new header identifier along with error outputs. Once a header exists, lines are added or amended through several procedures:

  • CREATE_LABOR_LINE — inserts a labor line capturing labor start and end dates, service date, transaction billing type, inventory item, business process, charge entry, incident, transaction type, quantity, unit of measure, and justification code; returns the new de-brief line identifier.
  • UPDATE_DEBRIEF_LABOR_LINE — the procedure associated with the search term; it modifies an existing labor line identified by de-brief line identifier, accepting the same core attributes as the create variant (dated ranges, billing type, item, business process, charge entry, incident, transaction type, quantity, UOM, and justification code) and returning error outputs.
  • CREATE_EXPENSE_LINE — creates an expense line with expense amount and currency code along with billing type, item, business process, charge entry, incident, transaction type, justification, quantity, and UOM.
  • UPDATE_DEBRIEF_EXPENSE_LINE — amends an existing expense line, including its expense amount.
  • SAVE_DEBRIEF_MATERIAL_LINE — persists material consumption lines captured during the de-brief.
  • UPDATE_DEBRIEF_HEADER — modifies header-level attributes.
  • VALIDATE_LABOR_TIME — validates labor time entries against applicable rules before they are committed.
  • UPDATE_CHARGES, UPDATE_IB, and UPDATE_SPARES — support updates to charges, install-base references, and spare-part lines respectively.
  • CREATE_TRAVEL_DEBRIEF — generates the travel-related de-brief record for a service visit.

Tables Accessed

The package reads and writes the core de-briefing tables via APPS synonyms. CSF_DEBRIEF_HEADERS stores the de-brief header, supported by the sequences CSF_DEBRIEF_HEADERS_S1 and CSF_DEBRIEF_HEADERS_S2. CSF_DEBRIEF_LINES and CSF_DEBRIEF_LINES_S hold the line detail and its sequence, covering labor, expense, material, spares, and travel rows. Install-base context is drawn from CSI_ITEM_INSTANCES, CSI_INSTANCE_STATUSES, and CSI_INSTALL_PARAMETERS. Incident information is sourced from CS_INCIDENTS_ALL and CS_INCIDENTS_ALL_B, resource data from JTF_RS_RESOURCE_EXTNS, party site usage from HZ_PARTY_SITE_USES, and transaction type definitions from OE_TRANSACTION_TYPES_ALL. DUAL is referenced for scalar lookups.

Usage Notes

CSFW_DEBRIEF_PUB is typically invoked from the Service De-briefing forms, field service concurrent processes, or custom PL/SQL that captures technician-reported activity. Because it is a PUB API, it can be safely called from client extensions; however, callers should always inspect the returned p_error_id and p_error outputs, since the procedures do not raise exceptions for validation failures. The package is not referenced by any other documented package, so dependencies flow outward to the tables and inward only from external callers. Sequence values for headers and lines must be obtained through the documented sequence synonyms rather than assigned manually.