ORD_UNSCHED_VW

(SQL View)
Index Back

Order Unscheduled Total

Date Init. Issue # Description 042903 JJM 47412000 Removed AND s.ord_sch_status = 'O' 022807 KIS 1620045004 Included Closed Schedules 031208 JJM removed KIS changes

SELECT OH.BUSINESS_UNIT , OH.ORDER_NO , OL.ORDER_INT_LINE_NO , OL.SCHED_SHIP_DTTM , OH.BILL_TO_CUST_ID , %Round(%DecMult((OL.QTY_ORDERED - SUM(OS.QTY_SCHEDULED)), OL.PRICE), 4) , OH.CURRENCY_CD , %Round(%DecMult((OL.QTY_ORDERED - SUM(OS.QTY_SCHEDULED)), OL.PRICE_BASE), 4) , OH.CURRENCY_CD_BASE FROM PS_ORD_LINE OL , PS_ORD_SCHEDULE OS , PS_ORD_HEADER OH , PS_ORD_GROUP OGRP WHERE %Join(COMMON_KEYS, ORD_HEADER OH, ORD_LINE OL) AND %Join(COMMON_KEYS, ORD_LINE OL, ORD_SCHEDULE OS) AND OH.ORDER_TYPE_CD = 'SO' AND OH.PAYMENT_METHOD <> 'CC' AND OL.ORD_LINE_STATUS IN ('O', 'P') AND OS.ORD_SCH_STATUS IN ('C', 'O', 'P') AND OGRP.SETID = ( SELECT SCR.SETID FROM PS_SET_CNTRL_REC SCR WHERE SCR.SETCNTRLVALUE = OH.BUSINESS_UNIT AND SCR.RECNAME = 'ORD_GROUP') AND OGRP.ORDER_GRP = OH.ORDER_GRP AND OGRP.EFF_STATUS = 'A' AND OGRP.CREDIT_CHECK = 'Y' AND %EffdtCheck(ORD_GROUP OGR2, OGRP, %CurrentDateIn) GROUP BY OH.BUSINESS_UNIT, OH.ORDER_NO, OL.ORDER_INT_LINE_NO, OL.SCHED_SHIP_DTTM, OH.BILL_TO_CUST_ID, OL.QTY_ORDERED, OL.PRICE, OL.PRICE_BASE, OH.CURRENCY_CD, OH.CURRENCY_CD_BASE

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit

Prompt Table: BUS_UNIT_TBL_OM

2 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
3 ORDER_INT_LINE_NO Number(5,0) INTEGER NOT NULL Order Line
4 SCHED_SHIP_DTTM DateTime(26) TIMESTAMP Schedule Ship Datetime
5 BILL_TO_CUST_ID Character(15) VARCHAR2(15) NOT NULL Customer
6 EXTENDED_NET_PRICE Signed Number(29,4) DECIMAL(27,4) NOT NULL Ext Net Amount
7 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
8 EXT_NET_PRC_BASE Signed Number(29,4) DECIMAL(27,4) NOT NULL Extended Net Price (base)
9 CURRENCY_CD_BASE Character(3) VARCHAR2(3) NOT NULL Business Unit Base Currency