Search Results all_returned_segments_null_sv
Overview
PO_WF_BUILD_ACCOUNT_INIT is an Oracle Applications (APPS) PL/SQL package within the Oracle E-Business Suite Purchasing module. Its name indicates its role as an initialization helper for the workflow-driven construction of accounting distributions on purchasing documents. In Oracle Purchasing, charge accounts and distribution sets are frequently derived at runtime through Oracle Workflow rather than stored statically, particularly where project-related, third-party, or complex multi-distribution sourcing scenarios are involved. This package provides the entry point, control flags, and validation logic used by the Purchasing workflow account-building process.
The package is classified as an OTHER API under ETRM 12.2.2 and is currently VALID in the APPS schema at 12.1.1 and 12.2.2. It is a relatively low-level internal utility rather than a public interface. It is heavily referenced across the Purchasing and Inventory stack, with eight dependent packages, which confirms that it functions as shared infrastructure for account determination on purchasing documents.
Key Procedures and Functions
The documented program units are four, though the package is described as exposing five total subprograms. The named units are:
- START_WORKFLOW — the principal entry point. It initiates the workflow activity responsible for building or resolving the accounting distribution associated with a purchasing document line or shipment. It is the call most commonly made by integration points.
- ALL_RETURNED_SEGMENTS_NULL_SV — a validation (SV suffix indicates a server-side validation) routine that tests whether all key flexfield segments returned from account-building are null. This guards against incomplete or empty account combinations being propagated to distributions.
- DEBUG_ON — enables diagnostic logging for the account-building workflow, writing trace information to the debug table.
- DEBUG_OFF — disables that diagnostic logging, returning the process to normal operation.
No parameter lists are documents in the source metadata, so signatures are not reproduced here. The debug pair follows the standard Oracle EBS convention of a session-level toggle used during implementation and troubleshooting.
Tables Accessed
The package reads and, where applicable, writes to the following APPS-synonym tables:
- PO_DISTRIBUTIONS_ALL — the primary target; distributions are the records whose accounting flexfield values are being constructed and validated.
- GL_CODE_COMBINATIONS — the chart of accounts combinations used to validate and resolve account segments.
- PA_PROJECTS_ALL, PA_PROJECT_TYPES_ALL, PA_TASKS, PA_EXPENDITURE_CATEGORIES, PA_EXPENDITURE_TYPES, PA_CLASS_CODES — the Oracle Projects tables consulted when the charge account is project-related, enabling derivation of project, task, expenditure type, and class information.
- BOM_RESOURCES and WIP_ENTITIES — referenced for outside-processing and shop-floor contexts where purchasing charges must align with manufacturing resources and entities.
- PO_WF_DEBUG — the debug repository written to when DEBUG_ON is active.
- PLITBLM and STANDARD — the standard Oracle character/table-handling and PL/SQL runtime packages.
Usage Notes
PO_WF_BUILD_ACCOUNT_INIT is invoked indirectly. Its documented dependents include PO_ACCOUNT_HELPER, PO_INTERFACE_S, PO_COPYDOC_S5, PO_NEGOTIATIONS_SV2, PO_PDOI_DIST_PROCESS_PVT, PO_WF_PO_CHARGE_ACC, and INV_PO_THIRD_PARTY_STOCK_MDTR. This confirms that account building occurs during requisition-to-PO autocreate, PO copy, negotiation, Purchasing Document Open Interface (PDOI) processing, third-party stock receipt, and charge account selection. It is not exposed as a standalone concurrent program or form function; custom code should call it only where a standard process performs the same work. Debugging should be enabled with DEBUG_ON and disabled with DEBUG_OFF to avoid unnecessary PO_WF_DEBUG growth.
-
PACKAGE: APPS.PO_WF_BUILD_ACCOUNT_INIT
12.1.1
-
PACKAGE: APPS.PO_WF_BUILD_ACCOUNT_INIT
12.2.2
-
PACKAGE BODY: APPS.PO_WF_BUILD_ACCOUNT_INIT
12.1.1
-
PACKAGE BODY: APPS.PO_WF_BUILD_ACCOUNT_INIT
12.2.2
-
APPS.PO_WF_BUILD_ACCOUNT_INIT dependencies on WF_ITEM
12.2.2
-
APPS.PO_WF_BUILD_ACCOUNT_INIT dependencies on WF_ITEM
12.1.1