JDE Reference
P41202
InteractiveItem Availability — inquire on on-hand, committed, and available quantities by item, branch, location, and lot
Lineage hook
Rows written by P41202 carry …PID = 'P41202' in their audit columns — a ready-made marker for isolating the records this program produced. See the audit-columns guide →
Boilerplate SQL
Databricks SQLStarting point for querying the tables behind this program. Set your Unity Catalog location and filter values below — they’re substituted into the SQL and the copy button.
Query parameters
-- ============================================================
-- Program: P41202 Item Availability — inquire on on-hand, committed, and available quantities by item, branch, location, and lot
-- Purpose: Item Availability — inquire on on-hand, committed, and available quantities by item, branch, location, and lot — auto-generated boilerplate from program-table-map
-- Grain : F41021 × F4102, F4101, F41001 — 1:N joins yield one row per detail line
-- Tables : F41021, F4102, F4101, F41001
-- Notes : Auto-generated skeleton. Julian dates are converted to DATE and implied-decimal amounts are scaled (verify decimals in F9210). Audit columns (…USER/…PID/…UPMJ) are omitted — see the quirks guide. Set catalog/schema to your Unity Catalog location; fill remaining placeholders (<...>) for your tenant.
-- ============================================================
SELECT
loc.LIITM AS "Short item number - the internal numeric item key",
TRIM(loc.LIMCU) AS "Business unit / branch plant (right-justified, space-padded to 12)",
loc.LILOCN AS "Storage location within the branch plant",
loc.LILOTN AS "Lot or serial number",
f.CISY AS "System/product code the constants row belongs to (typically 41)."
FROM <catalog>.<schema_data>.f41021 loc
LEFT JOIN <catalog>.<schema_data>.f4102 ib
ON ib.IBITM = loc.LIITM
AND ib.IBMCU = loc.LIMCU
LEFT JOIN <catalog>.<schema_data>.f4101 im
ON im.IMITM = loc.LIITM
LEFT JOIN <catalog>.<schema_data>.f41001 f
ON f.CIMCU = loc.LIMCU
WHERE
loc.LIITM = <ITM>
AND loc.LIMCU = '<MCU>'
ORDER BY loc.LIITM;4 parameters not filled: <catalog>, <schema_data>, <ITM>, <MCU>
Tables Used by This Program
How these tables connect. Nodes are clickable.
Primary tables
Secondary tables
- F41001Branch/plant inventory constants: the per-branch switchboard for item number symbols, location formatting, costing methods, commitment rules, and G/L interface options.Read accesscontrol
- F4101Item master — one row per item with descriptions, units of measure, and category codes shared across branchesRead accessmaster
- F4102Item branch — branch/plant-level item attributes, planning parameters, and sourcing responsibilityRead accessmaster