ORD_QTY_PICK_VW(SQL View) |
Index Back |
---|---|
Qty Picked View for OMDate Initials Issue Description 052704 twh F-KNANN-V59N4 Replace demand table references with IN_DEMAND |
SELECT SH.BUSINESS_UNIT , SH.SOURCE_BUS_UNIT , SH.ORDER_NO , SH.ORDER_INT_LINE_NO , SH.SCHED_LINE_NBR , SH.DEMAND_LINE_NO , SH.DEMAND_SOURCE , CONV.UNIT_OF_MEASURE , QTY_PICK_BASE , %Round(%DECMULT(QTY_PICK_BASE, %DECDIV(1, CONV.CONVERSION_RATE)), 4) , SH.INV_ITEM_ID FROM PS_IN_DEMAND SH , PS_SET_CNTRL_REC SC , PS_INV_ITEM_UOM CONV WHERE SH.DEMAND_SOURCE = 'OM' AND SC.SETCNTRLVALUE = SH.BUSINESS_UNIT AND SC.RECNAME = 'MASTER_ITEM_TBL' AND CONV.SETID = SC.SETID AND CONV.INV_ITEM_ID = SH.INV_ITEM_ID AND CONV.UNIT_OF_MEASURE = SH.UNIT_OF_MEASURE AND SH.IN_FULFILL_STATE IN ('50', '60', '70') |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | SOURCE_BUS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Source Bus Unit |
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 | ORDER_INT_LINE_NO | Number(5,0) | INTEGER NOT NULL | Order Line |
5 | SCHED_LINE_NBR | Number(6,0) | INTEGER NOT NULL | Schedule Line Number |
6 | DEMAND_LINE_NO | Number(4,0) | SMALLINT NOT NULL | Demand Line No |
7 | 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 |
8 | UNIT_OF_MEASURE | Character(3) | VARCHAR2(3) NOT NULL |
Used on an approval rule set.
MHR=Muti Hourly PER=Percentage SQF=Square Footage |
9 | QTY_PICK_BASE | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Qty Pick Base |
10 | QTY_PICKED_CONV | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Qty Picked in Phys Loc UOM |
11 | INV_ITEM_ID | Character(18) | VARCHAR2(18) NOT NULL | Item ID |