Results for “location_association_id”
10 results
AI-generated from documented ETRM metadata — verify critical details on the linked pages.
Overview
WSH_CALENDAR_ASSIGNMENTS is a Shipping Execution (WSH) table that stores "Calendar Assignments." It associates a shipping-related calendar with a specific business entity—such as a vendor, a customer, or a location association—so that transit, pickup, or receiving schedules can be applied contextually during the shipping and receiving lifecycle in Oracle EBS 12.1.1 and 12.2.2. The table lives in the WSH schema and is owned exclusively by Shipping Execution; it is not an archived or obsolete object (status VALID).
From a dimensional modeling perspective, the mined Data Vault classification is link. This suggests WSH_CALENDAR_ASSIGNMENTS behaves primarily as an associative table whose purpose is to resolve relationships between independent actors—calendars, vendors, customers, and location associations—rather than to store descriptive attributes of a single business entity. The table is therefore best understood as a junction that binds a calendar to the party or location that uses it.
Key Information Stored
The documented physical schema defines 42 columns. The most functionally significant are:
- CALENDAR_ASSIGNMENT_ID — the surrogate primary key (WSH_CALENDAR_ASSIGNMENTS_PK), also enforced by unique index WSH_CALENDAR_ASSIGNMENTS_U1; it is the sole business-key candidate documented and is the join key to dependent transactions.
- CALENDAR_CODE — the reference to the source calendar definition in BOM_CALENDARS. This is the effective calendar being assigned.
- CALENDAR_TYPE — classifies the calendar role (for example, transit versus receiving behavior), driving which scheduling logic the assignment feeds.
- ASSOCIATION_TYPE — indicates the dimension of assignment: vendor, customer, or location association, which determines which of the entity columns is populated.
- ENABLED_FLAG — controls whether the assignment is active for calendar resolution.
- VENDOR_ID and CUSTOMER_ID — foreign keys to PO_VENDORS and RA_CUSTOMERS; the party to which the calendar applies.
- CUSTOMER_SITE_USE_ID and VENDOR_SITE_ID — site-level refinement of a party assignment.
- LOCATION_ASSOCIATION_ID — FK to PO_LOCATION_ASSOCIATIONS; the location association variant of the assignment.
- LOCATION_ID and HR_LOCATION_ID — the operational and HR address references.
- ORGANIZATION_ID, FREIGHT_ORG_ID, and FREIGHT_CODE — the inventory/freight organizational context of the assignment.
- CARRIER_ID and CARRIER_SITE_ID — carry the carrier and carrier site to which the calendar applies.
- The standard WHO columns (CREATION_DATE, CREATED_BY, LAST_UPDATE_DATE, LAST_UPDATED_BY, LAST_UPDATE_LOGIN, PROGRAM_APPLICATION_ID, PROGRAM_ID, REQUEST_ID, PROGRAM_UPDATE_DATE) and fifteen ATTRIBUTE columns provide auditability and extensibility.
Common Use Cases and Queries
The principal use case is resolving which calendar governs a pickup, transit, or receiving schedule for a given vendor, customer, or location. Typical SQL joins CALENDAR_CODE to BOM_CALENDARS to obtain working-day patterns, then filters by ASSOCIATION_TYPE and ENABLED_FLAG:
- Vendor calendar lookup:
SELECT ca.calendar_code, bc.calendar_name FROM wsh_calendar_assignments ca, bom_calendars bc WHERE ca.calendar_code = bc.calendar_code AND ca.vendor_id = :vendor_id AND ca.enabled_flag = 'Y'; - Customer assignment: joining CUSTOMER_ID to RA_CUSTOMERS for shipping scheduling rules.
- Location coverage: joining LOCATION_ASSOCIATION_ID to PO_LOCATION_ASSOCIATIONS to test whether a warehouse location has a valid calendar.
- Carrier-aware scheduling: filtering on CARRIER_ID and CARRIER_SITE_ID when calendar behavior varies by carrier.
Reporting uses include an audit of enabled versus disabled assignments, identification of duplicate conflicting assignments per entity, and validation that every required vendor or customer site has a calendar defined. Because the columns are Who-audited, change history for calendar configuration can be reviewed.
Related Objects
The FK metadata establishes direct relationships that drive most queries and integrity checks:
- BOM_CALENDARS — joined on CALENDAR_CODE; supplies the actual working-day calendar.
- PO_LOCATION_ASSOCIATIONS — joined on LOCATION_ASSOCIATION_ID; the location association dimension.
- PO_VENDORS — joined on VENDOR_ID; the vendor dimension.
- RA_CUSTOMERS — joined on CUSTOMER_ID; the customer dimension.
Beyond these, Shipping Execution calendar-resolution logic references the WSH calendar infrastructure that consumes assignments when computing ship dates, and carrier/site tables referenced by CARRIER_ID and CARRIER_SITE_ID supplement the core FK set. The combination of one PK and four foreign keys confirms the link role documented above.
-
Calendar Assignments
-
Calendar Assignments
-
eTRM - WSH Tables and Views 12.2.2
Stores hierarchy for zones. Each region component of a zone has a record in this table.
-
eTRM - WSH Tables and Views 12.1.1
Stores hierarchy for zones. Each region component of a zone has a record in this table.