Search Results owner_flag
Overview
CSP_RS_SUBINVENTORIES_V is a PL/SQL view owned by the APPS schema within Oracle E-Business Suite, belonging to the CSP (Spares Management) product family. The view is documented in ETRM for releases 12.1.1 and 12.2.2 with a status of VALID and is described as a "Resource subinventory assignments view." Its purpose is to present a consolidated, denormalized picture of the relationship between CSP resources (such as engineers, teams, or organizations) and the subinventories to which they have been assigned, along with the associated inventory organization, condition, default-use behavior, and return-to information.
The view joins the assignment definition table CSP_INV_LOC_ASSIGNMENTS to the secondary inventory definition table CSP_SEC_INVENTORIES, and enriches the result with organization codes, lookup meanings for condition types and default codes, and return organization/subinventory context. Because it resolves resource names through the CSP_PICK_UTILS package and lookup meanings through FND_LOOKUPS, it is well suited for reporting, concurrent programs, and integration interfaces that require human-readable subinventory assignment data without reimplementing the underlying join logic. The presence of the OWNER_FLAG derived column, in particular, makes the view useful for identifying whether the assigned resource is also the owner of the secondary inventory record — the specific element that drew the user to search for "owner_flag."
Underlying Base Objects
The documented referenced base objects are CSP_INV_LOC_ASSIGNMENTS (SYNONYM), CSP_PICK_UTILS (PACKAGE), CSP_SEC_INVENTORIES (SYNONYM), FND_GLOBAL (PACKAGE), FND_LOOKUPS (VIEW), JTF_RS_GROUPS_TL (SYNONYM), and MTL_PARAMETERS (SYNONYM). All are accessed through APPS synonyms, so the view operates within the APPS namespace regardless of the physical schema owning the base tables.
- CSP_INV_LOC_ASSIGNMENTS — the driving table, aliased I, holding the resource-to-subinventory assignment records, including RESOURCE_TYPE, RESOURCE_ID, ORGANIZATION_ID, SUBINVENTORY_CODE, DEFAULT_CODE, LOCATOR_ID, and effective dates. It is outer-joined to CSP_SEC_INVENTORIES on ORGANIZATION_ID and SUBINVENTORY_CODE.
- CSP_SEC_INVENTORIES (S) — supplies secondary inventory attributes such as SECONDARY_INVENTORY_ID, LOCATION_ID, CONDITION_TYPE, and the owner/return attributes (OWNER_RESOURCE_TYPE, OWNER_RESOURCE_ID, RETURN_ORGANIZATION_ID, RETURN_SUBINVENTORY_NAME). A second alias, RS, is used to resolve the condition type of the return subinventory.
- ORG_ORGANIZATION_DEFINITIONS — aliased O for the assignment organization code and RO for the return organization code, both outer-joined where applicable.
- FND_LOOKUPS — aliased DC (CSP_SUBINV_DEFAULT_USE_TYPE), CT (CSP_CONDITION_TYPE), and RCT (CSP_CONDITION_TYPE) to translate coded values into meanings.
- CSP_PICK_UTILS — package invoked as GET_OBJECT_NAME to resolve a resource type and identifier into a display name.
- FND_GLOBAL, JTF_RS_GROUPS_TL, MTL_PARAMETERS — supporting objects referenced by the view module chain.
Key Columns
- CSP_INV_LOC_ASSIGNMENT_ID — primary identifier for the assignment row; the key column for joins back to CSP_INV_LOC_ASSIGNMENTS.
- RESOURCE_TYPE / RESOURCE_ID — the assigned resource's type and identifier; the package call exposes a resolved object name alongside them.
- ORGANIZATION_ID / ORGANIZATION_CODE — the inventory organization where the assignment applies.
- SUBI_NVENTORY_CODE / SECONDARY_INVENTORY_ID / LOCATION_ID / LOCATOR_ID — subinventory and locator context; SECONDARY_INVENTORY_ID and LOCATION_ID originate from CSP_SEC_INVENTORIES and are null when no matching secondary inventory exists.
- DEFAULT_CODE / DEFAULT_CODE_MEANING — whether the assignment is a default use, decoded so that a null code yields 'N' with a Y/N flag plus the decoded meaning.
- CONDITION_TYPE / CONDITION_TYPE_MEANING — condition of the assigned subinventory.
- OWNER_FLAG — computed with DECODE: it returns 'Y' when both the assignment's RESOURCE_ID equals the secondary inventory's OWNER_RESOURCE_ID and the RESOURCE_TYPE equals OWNER_RESOURCE_TYPE; otherwise 'N'. This column directly identifies assignments where the resource is the inventory owner.
- OWNER_RESOURCE_TYPE / OWNER_RESOURCE_ID / return owner name — the owning resource of the secondary inventory, resolved via CSP_PICK_UTILS.
- RETURN_ORGANIZATION_ID / RETURN_ORGANIZATION_CODE / RETURN_SUBINVENTORY_NAME — the return-to organization and subinventory for the assignment.
- EFFECTIVE_DATE_START / EFFECTIVE_DATE_END — validity window for the assignment.
- CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE, LAST_UPDATE_LOGIN — standard WHO audit columns inherited from the assignment table.
Common Use Cases and Queries
Typical scenarios include reporting resource subinventory assignments by organization, identifying default subinventory assignments, and — most relevant to the owner_flag search — locating assignments in which the assigned resource is also the owner of the secondary inventory.
Listing active assignments for an organization:
SELECT CSP_INV_LOC_ASSIGNMENT_ID, RESOURCE_TYPE, RESOURCE_ID, SUBINVENTORY_CODE, DEFAULT_CODE_MEANING, EFFECTIVE_DATE_START, EFFECTIVE_DATE_END FROM APPS.CSP_RS_SUBINVENTORIES_V WHERE ORGANIZATION_CODE = :org AND (EFFECTIVE_DATE_END IS NULL OR EFFECTIVE_DATE_END >= SYSDATE);
Finding owner-flagged assignments:
SELECT CSP_INV_LOC_ASSIGNMENT_ID, RESOURCE_ID, ORGANIZATION_CODE, SUBINVENTORY_CODE, OWNER_RESOURCE_TYPE, OWNER_RESOURCE_ID FROM APPS.CSP_RS_SUBINVENTORIES_V WHERE OWNER_FLAG = 'Y';
Default assignments with return context:
SELECT SUBINVENTORY_CODE, DEFAULT_CODE, RETURN_ORGANIZATION_CODE, RETURN_SUBINVENTORY_NAME FROM APPS.CSP_RS_SUBINVENTORIES_V WHERE DEFAULT_CODE = 'Y' ORDER BY ORGANIZATION_CODE, SUBINVENTORY_CODE;
Because the view encapsulates numerous outer joins and lookup decodes, queries against it are preferable to ad-hoc reconstruction of the same logic, and its condition and default meanings are ready for direct display in reports and forms integrations.
-
View: CSP_RS_SUBINVENTORIES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:CSP.CSP_RS_SUBINVENTORIES_V, object_name:CSP_RS_SUBINVENTORIES_V, status:VALID, product: CSP - Spares Management , description: Resource subinventory assignments view , implementation_dba_data: APPS.CSP_RS_SUBINVENTORIES_V ,
-
View: CSP_RS_SUBINVENTORIES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:CSP.CSP_RS_SUBINVENTORIES_V, object_name:CSP_RS_SUBINVENTORIES_V, status:VALID, product: CSP - Spares Management , description: Resource subinventory assignments view , implementation_dba_data: APPS.CSP_RS_SUBINVENTORIES_V ,