Search Results label_wip_cont
Overview
INV_LABEL_PVT9 is a private PL/SQL package body owned by APPS in Oracle E-Business Suite, classified by ETRM as an OTHER API. It forms part of the composite label-printing infrastructure used by Oracle Inventory to generate barcode and human-readable labels for material transactions, work in process entities, and related supply chain events. The package is one of a numbered series (INV_LABEL_PVT*, of which this is the ninth) that Oracle decomposed its label generation logic into in order to keep individual compilation units within PL/SQL size limits.
The package builds label payloads as XML-like fragments by concatenating literal tag strings. The constants label_b, label_e, variable_b, variable_e, and tag_e define the markup vocabulary (<label>, <variable name="...">, closing tags), and each fragment is terminated with the platform line-feed obtained from fnd_global.local_chr(10). A debug facility, TRACE, routes messages through inv_label.TRACE and prefixes the first message of a session with the package header revision string. The user-searched token variable_e is one of these fragment constants, used to close every <variable> element emitted by the package.
Key Procedures and Functions
ETRM documents a single public procedure for this package body: GET_VARIABLE_DATA. Its signature is not reproduced here; only its purpose is described.
GET_VARIABLE_DATA— Assemblies the variable content for a label instance. It accepts a label type descriptor, a transaction identifier, a material transaction temporary row, and a transaction identifier discriminator, and returns the assembled variable content as a table of label fragments together with the standard concurrent-manager message count, message data, and return status out parameters. The internall_api_namelocal is initialized to'get_variable_data'for error and trace messaging.TRACE— A private helper, not part of the documented API surface, that emits user-attributed debug output to the sharedinv_labeltrace facility. It prints the file header line once per session, guarded byg_header_printed, and thereafter prefixes messages withfnd_global.user_name.
Source comments indicate that the variable-retrieval logic originated in the 11i10-era "Custom Labels" project and was extended to carry a dynamically constructed SQL statement alongside its result set, allowing administrators to define custom label variables whose values are computed at print time.
Tables Accessed
All table access is performed through APPS synonyms. The package reads the transactional context for the label being produced from MTL_MATERIAL_TRANSACTIONS_TEMP, and enriches it with attributes drawn from a broad set of inventory, costing, manufacturing, and project tables:
- Inventory and lot control:
MTL_ITEM_LOCATIONS,MTL_LOT_NUMBERS,MTL_TRANSACTION_LOTS_TEMP,MTL_PARAMETERS. - Move-order and WIP context:
MTL_TXN_REQUEST_LINES,WIP_DISCRETE_JOBS,WIP_ENTITIES,BOM_DEPARTMENTS. - Costing:
CST_COST_GROUPS. - Project and task references:
PA_PROJECTS,PA_PROJECTS_ALL,PA_TASKS. - Compliance and user context:
PO_HAZARD_CLASSES(hazardous material labeling),FND_USER.
These references are consistent with a label that must display item, lot, locator, cost group, project, department, and hazard information, with user attribution for auditability. Read access dominates; no inserts or updates are documented.
Usage Notes
INV_LABEL_PVT9 is not intended for direct invocation. It is referenced by one other package, the coordinating label engine (typically INV_LABEL or its subsidiaries), which iterates over the PVT packages and concatenates their returned fragment tables into a single label document. It is invoked implicitly whenever a label with a variable type handled by this unit is printed — for example during material transaction entry, move-order processing, or WIP completion, wherever a label printing concurrent program or the transaction forms trigger label generation.
Because the package depends on fnd_global for user name and local character settings, it must execute within an initialized Oracle Applications session; calling it from outside FND session initialization will fail or produce incorrect line termination. Customizations should extend the label engine through the supported variable-definition mechanisms rather than by modifying this package body, since Oracle ships it as a standard, versioned file (header revision 120.11, dated 2010/12/25) that is overwritten during patching. The g_date_format_mask global, sourced from inv_label.g_date_format_mask, is applied to mask all date fields on custom labels, a behavior introduced under Bug 2795525.