OM_PWC_OMRGN_VW(SQL View) |
Index Back |
---|
SELECT DISTINCT ORDH.BUSINESS_UNIT ,ORDH.SHIP_TO_CUST_ID ,ORDH.ORDER_NO ,ORDH.ORDER_DATE ,OL.ORDER_INT_LINE_NO ,OS.SCHED_LINE_NBR , OL.PRODUCT_ID , D.INV_ITEM_ID , OS.QTY_SCHEDULED ,OS.LIST_PRICE ,OS.LIST_PRICE_BASE , OL.UNIT_COST ,OS.CURRENCY_CD ,OL.UNIT_OF_MEASURE ,OS.SHIP_FROM_BU ,OS.CURRENCY_CD_BASE ,OH.HOLD_CD , 0 AS MARGIN , 0 AS MRGPCT , M.INVENTORY_ITEM , OL.CONFIG_CODE , ORDH.RATE_MULT ,ORDH.RATE_DIV ,ORDH.RATE_DATE ,ORDH.RT_TYPE FROM PS_ORD_HEADER ORDH , PS_ORD_LINE OL , PS_ORD_SCHEDULE OS , PS_ORD_HOLD OH , PS_IN_DEMAND D , PS_MASTER_ITEM_TBL M WHERE ORDH.BUSINESS_UNIT = OL.BUSINESS_UNIT AND ORDH.ORDER_NO = OL.ORDER_NO AND OL.BUSINESS_UNIT = OS.BUSINESS_UNIT AND OL.ORDER_NO = OS.ORDER_NO AND OL.ORDER_INT_LINE_NO = OS.ORDER_INT_LINE_NO AND OH.BUSINESS_UNIT = OS.BUSINESS_UNIT AND OH.ORDER_NO = OS.ORDER_NO AND OH.ORDER_INT_LINE_NO = OS.ORDER_INT_LINE_NO AND OH.SCHED_LINE_NBR = OS.SCHED_LINE_NBR AND ORDH.BUSINESS_UNIT = OH.BUSINESS_UNIT AND D.SOURCE_BUS_UNIT = OH.BUSINESS_UNIT AND D.ORDER_NO = OH.ORDER_NO AND D.ORDER_INT_LINE_NO = OL.ORDER_INT_LINE_NO AND D.INV_ITEM_ID = M.INV_ITEM_ID AND OH.HOLD_CD IN('MINMG','MAXMG','MGRULE') AND OH.EFF_STATUS = 'A' AND D.DEMAND_SOURCE = 'OM' AND D.IN_FULFILL_STATE <> '90' AND ORDH.ORDER_STATUS = 'O' |
# | 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 | SHIP_TO_CUST_ID | Character(15) | VARCHAR2(15) NOT NULL | Ship To Customer |
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_DATE | Date(10) | DATE | Date Initials Issue Description 022701 mv SP2 (F-CJORGENS-3) CSR Desktop |
5 | ORDER_INT_LINE_NO | Number(5,0) | INTEGER NOT NULL | Order Line |
6 | SCHED_LINE_NBR | Number(6,0) | INTEGER NOT NULL | Schedule Line Number |
7 | PRODUCT_ID | Character(18) | VARCHAR2(18) NOT NULL | Product ID |
8 | INV_ITEM_ID | Character(18) | VARCHAR2(18) NOT NULL | Item ID |
9 | QTY_SCHEDULED | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Quantity Scheduled |
10 | LIST_PRICE | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | List Price |
11 | LIST_PRICE_BASE | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | List Price (base) |
12 | UNIT_COST | Signed Number(16,4) | DECIMAL(14,4) NOT NULL | Unit Cost |
13 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
14 | UNIT_OF_MEASURE | Character(3) | VARCHAR2(3) NOT NULL |
Used on an approval rule set.
MHR=Muti Hourly PER=Percentage SQF=Square Footage |
15 | SHIP_FROM_BU | Character(5) | VARCHAR2(5) NOT NULL | Ship from INV BU |
16 | CURRENCY_CD_BASE | Character(3) | VARCHAR2(3) NOT NULL | Business Unit Base Currency |
17 | HOLD_CD | Character(6) | VARCHAR2(6) NOT NULL | Hold Code |
18 | MARGIN | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Margin |
19 | OM_PWC_MARGN_PCT | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Margin Percent |
20 | INVENTORY_ITEM | Character(1) | VARCHAR2(1) NOT NULL |
Inventory Item
N=No Y=Yes |
21 | CONFIG_CODE | Character(50) | VARCHAR2(50) NOT NULL | Product Configurator |
22 | RATE_MULT | Signed Number(17,8) | DECIMAL(15,8) NOT NULL | Rate Multiplier |
23 | RATE_DIV | Number(16,8) | DECIMAL(15,8) NOT NULL | Rate Divisor |
24 | RATE_DATE | Date(10) | DATE | Exchange Rate Date |
25 | RT_TYPE | Character(5) | VARCHAR2(5) NOT NULL | Defines a category of market rates for currency conversion. Some examples of rate types are commercial, average, floating, and historical. |