IN_SDWC_OMBK_VW

(SQL View)
Index Back

Sales Order Booking view


SELECT A.BUSINESS_UNIT , A.ORDER_NO , B.ORDER_INT_LINE_NO , C.SCHED_LINE_NBR , A.SOLD_TO_CUST_ID , D.NAME1 , B.SHIP_FROM_BU , A.ORDER_DATE , A.ORDER_GRP , B.PRODUCT_ID , C.QTY_SCHEDULED , B.UNIT_OF_MEASURE , CASE WHEN C.NET_UNIT_PRICE IS NULL THEN 0 ELSE %Round(%DecMult(C.NET_UNIT_PRICE, C.QTY_SCHEDULED), 0) END , C.CURRENCY_CD FROM PS_ORD_HEADER A , PS_ORD_LINE B , PS_ORD_SCHEDULE C , PS_CUSTOMER D , PS_SET_CNTRL_REC E WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.ORDER_NO = B.ORDER_NO AND B.BUSINESS_UNIT = C.BUSINESS_UNIT AND B.ORDER_NO = C.ORDER_NO AND B.ORDER_INT_LINE_NO = C.ORDER_INT_LINE_NO AND D.SETID = E.SETID AND E.SETCNTRLVALUE = A.BUSINESS_UNIT AND E.RECNAME = 'CUSTOMER' AND D.CUST_ID = A.SOLD_TO_CUST_ID

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

Prompt Table: SP_BU_OM_NONVW

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

Default Value: NEXT

Prompt Table: ORD_AN_VW

3 ORDER_INT_LINE_NO Number(5,0) INTEGER NOT NULL Order Line
4 SCHED_LINE_NBR Number(6,0) INTEGER NOT NULL Schedule Line Number
5 SOLD_TO_CUST_ID Character(15) VARCHAR2(15) NOT NULL Sold To Customer

Prompt Table: CUST_SLD_VW

6 NAME1 Character(40) VARCHAR2(40) NOT NULL Name 1
7 SHIP_FROM_BU Character(5) VARCHAR2(5) NOT NULL Ship from INV BU
8 ORDER_DATE Date(10) DATE Date Initials Issue Description 022701 mv SP2 (F-CJORGENS-3) CSR Desktop

Default Value: %date

9 ORDER_GRP Character(6) VARCHAR2(6) NOT NULL Order Group

Prompt Table: ORD_GROUP

10 PRODUCT_ID Character(18) VARCHAR2(18) NOT NULL Product ID

Prompt Table: %EDITTABLE

11 QTY_SCHEDULED Signed Number(17,4) DECIMAL(15,4) NOT NULL Quantity Scheduled
12 UNIT_OF_MEASURE Character(3) VARCHAR2(3) NOT NULL Used on an approval rule set.
MHR=Muti Hourly
PER=Percentage
SQF=Square Footage
13 EXTENDED_NET_PRICE Signed Number(29,4) DECIMAL(27,4) NOT NULL Ext Net Amount
14 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code