RPLN_IUT_ADJ_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) , SUM(T.QTY_BASE) FROM PS_IN_DEMAND S , PS_TRANSACTION_INV T WHERE S.IN_FULFILL_STATE BETWEEN '60' AND '70' AND S.IN_PROCESS_DATE IS NOT NULL 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 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
6 QTY_ADJUSTED Number(16,4) DECIMAL(15,4) NOT NULL Adjust Quantity