ORD_SCH_IU10_VW(SQL View) |
Index Back |
---|---|
Interunit demand |
SELECT s.destin_bu , s.demand_source , s.order_no , s.inv_item_id , s.qty_ship_base - SUM(t.qty_base) FROM PS_IN_DEMAND s , ps_transaction_inv t WHERE s.IN_FULFILL_STATE BETWEEN '60' AND '70' AND s.interunit_flg = 'Y' AND s.interunit_id = t.interunit_id AND s.destin_bu = t.business_unit AND s.inv_item_id = t.inv_item_id AND t.transaction_group = '022' AND NOT EXISTS ( SELECT 'x' FROM ps_transaction_inv u WHERE s.interunit_id = u.interunit_id AND s.destin_bu = u.destin_bu AND s.inv_item_id = u.inv_item_id AND u.transaction_group = '042') GROUP BY s.destin_bu, s.demand_source, s.order_no, s.inv_item_id, s.qty_ship_base |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL |
Business Unit
Prompt Table: SP_BUIN_NONVW |
2 | DEMAND_SOURCE | Character(2) | VARCHAR2(2) NOT NULL |
Demand Source
IN=Material Request OM=Sales Order PL=Planning Requisition PO=Purchase Order PR=Purchasing Requisition RT=Material Return SF=Production Request WM=Work Order |
3 | ORDER_NO | Character(10) | VARCHAR2(10) NOT NULL | Identifies a customer order number that appears as a reference on a receivables pending item. Date Initials Issue Description 022701 mv SP2 (F-CJORGENS-3) CSR Desktop |
4 | INV_ITEM_ID | Character(18) | VARCHAR2(18) NOT NULL |
Item ID
Prompt Table: MST_ITM_PRPT_VW |
5 | QTY_REQUESTED | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Qty Requested |