Search Results allocation_mode




Overview

APPS.WMS_RULES_V is a Warehouse Management (WMS) dictionary view that presents the rule definitions used by the Warehouse Management rules engine in Oracle E-Business Suite 12.1.1 and 12.2.2. Rules drive the selection of picking, put-away, and replenishment strategies by evaluating weighted business conditions against candidate tasks or inventory. The view exists to expose a denormalized, user-readable form of the rule repository: meaning strings from MFG_LOOKUPS replace raw codes, and parameter/object identifiers are resolved to descriptive names for reporting and integration consumption. It is a UNION-based view, which means multiple rule families are surfaced through a single row structure with a stable column list, allowing reports, interfaces, and custom logic to query one object rather than several source tables. All rows are filtered so that only WMS-enabled rules are returned, and a synthetic flag indicates whether a rule applies across every organization.

Underlying Base Objects

The documented base objects referenced by WMS_RULES_V are BOM_STANDARD_OPERATIONS (synonym), CST_COST_GROUPS (synonym), MFG_LOOKUPS (view), WMS_LABEL_FORMATS (synonym), WMS_OBJECTS_VL (view), WMS_OP_PLANS_VL (view), WMS_PARAMETERS_VL (view), WMS_PARAMETER_PVT (package), and WMS_RULES_VL (view). WMS_RULES_VL is the primary rule definition table view and supplies row identity, organization, type code, name, weight, enabled and user-defined flags, and descriptive flexfield attributes. WMS_PARAMETERS_VL supplies the quantity/rule parameter context, joined on PARAMETER_ID, and the WMS_PARAMETER_PVT package function GETFLEXNAME resolves the parameter to a displayed flexfield name or column reference. WMS_OBJECTS_VL supplies the object name and description associated with the parameter. MFG_LOOKUPS is joined twice: once with LOOKUP_TYPE 'WMS_ACTION_TYPE' to translate TYPE_CODE into a meaning, and once with LOOKUP_TYPE 'WMS_RULE_ALLOCATION_MODE' to translate the allocation mode. WMS_OP_PLANS_VL, BOM_STANDARD_OPERATIONS, CST_COST_GROUPS, and WMS_LABEL_FORMATS contribute to the additional UNION branches that extend the rule view into operational plan and label scenarios.

Key Columns

The literal expression TO_CHAR(NULL) PLAN_TYPE_NAME observed in the rule branch confirms that PLAN_TYPE_NAME is populated by a separate UNION branch, typically the WMS_OP_PLANS_VL branch. Because the name is synthetically produced, PLAN_TYPE_NAME has no dedicated base column in the rule tables and is derived for plan-related rules only.

Common Use Cases and Queries

Typical uses include auditing active rule sets per organization, reporting rule weights used in allocation and picking strategies, and validating that plan-specific rules expose a plan type. A representative query filtering on plan type name is:

  • List active plan-level rules: SELECT rule_id, name, organization_id, common_to_all_orgs_flag, plan_type_name FROM apps.wms_rules_v WHERE plan_type_name IS NOT NULL AND enabled_flag = 'Y' ORDER BY organization_id, rule_weight;
  • Report allocation modes: SELECT organization_id, name, allocation_mode, rule_weight FROM apps.wms_rules_v WHERE type_code IS NOT NULL ORDER BY organization_id;
  • Identify global rules: SELECT rule_id, name, type_code, meaning FROM apps.wms_rules_v WHERE common_to_all_orgs_flag = 'Y';
  • Search by plan type name: SELECT rule_id, name, plan_type_name FROM apps.wms_rules_v WHERE UPPER(plan_type_name) LIKE UPPER('%PICK%');

Queries should filter on ENABLED_FLAG and organization scope to avoid returning rules that are inactive or outside the intended operating unit. Because the view is UNION-based with literal NULL placeholders, columns such as PLAN_TYPE_NAME and ACTIVITY_TYPE_NAME should be treated as nullable and tested with IS NOT NULL rather than compared to empty strings. Joining RULE_ID back to the rule definition tables allows retrieval of additional detail not projected by the view.