CE_SUBCST2_VW(SQL View) |
Index Back |
---|---|
View of Subcontracted Cost |
SELECT B.BUSINESS_UNIT_IN , A.CM_BOOK , B.PRODUCTION_ID , B.OP_SEQUENCE , A.BUSINESS_UNIT_RECV , A.RECEIVER_ID , A.RECV_LN_NBR , A.RECV_SHIP_SEQ_NBR , A.DISTRIB_LINE_NUM , A.MISC_CHARGE_CODE , A.CM_SEQ_COST , D.INV_ITEM_ID , A.COST_ELEMENT , A.CM_UNIT_COST_PO , A.CM_UNIT_COST_POVO , A.CM_UNIT_COST_VO , B.RECEIPT_DTTM , A.POSTED_FLAG , B.QTY_SH_RECVD , B.DUE_DT , B.UNIT_MEASURE_STD FROM PS_CM_MATCHED_BOOK A , PS_RECV_LN_SHIP B , PS_PO_SF_OP_LIST C , PS_SF_PRDNID_HEADR D WHERE B.BUSINESS_UNIT = A.BUSINESS_UNIT_RECV AND B.RECEIVER_ID = A.RECEIVER_ID AND B.RECV_LN_NBR = A.RECV_LN_NBR AND B.BUSINESS_UNIT_IN = C.BUSINESS_UNIT AND B.PRODUCTION_ID = C.PRODUCTION_ID AND B.OP_SEQUENCE = C.OP_SEQUENCE AND C.SUBCONTRACTED = 'Y' AND A.POSTED_FLAG = 'N' AND C.BUSINESS_UNIT = D.BUSINESS_UNIT AND C.PRODUCTION_ID = D.PRODUCTION_ID |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | CM_BOOK | Character(10) | VARCHAR2(10) NOT NULL | Cost Book |
3 | PRODUCTION_ID | Character(10) | VARCHAR2(10) NOT NULL | Production ID |
4 | OP_SEQUENCE | Number(4,0) | SMALLINT NOT NULL | Operation Sequence |
5 | BUSINESS_UNIT_RECV | Character(5) | VARCHAR2(5) NOT NULL | Receiving Business Unit |
6 | RECEIVER_ID | Character(10) | VARCHAR2(10) NOT NULL | Receiver number |
7 | RECV_LN_NBR | Number(5,0) | INTEGER NOT NULL | Receipt Line |
8 | RECV_SHIP_SEQ_NBR | Number(3,0) | SMALLINT NOT NULL | Receiver Shipping Sequence |
9 | DISTRIB_LINE_NUM | Number(5,0) | INTEGER NOT NULL | Distribution Line |
10 | MISC_CHARGE_CODE | Character(10) | VARCHAR2(10) NOT NULL | 10/8/98 ebn CN#CM800-2.0 : Added for Landed Cost Enhancement |
11 | CM_SEQ_COST | Number(15,0) | DECIMAL(15) NOT NULL | Cost Sequence Number. Incremented each time the actual cost is updated. |
12 | INV_ITEM_ID | Character(18) | VARCHAR2(18) NOT NULL | Item ID |
13 | COST_ELEMENT | Character(4) | VARCHAR2(4) NOT NULL | Cost Element |
14 | CM_UNIT_COST_PO | Signed Number(32,15) | DECIMAL(30,15) NOT NULL | 07/99 GMG CN800-9.0: |
15 | CM_UNIT_COST_POVO | Signed Number(32,15) | DECIMAL(30,15) NOT NULL | 07/99 GMG CN800-9.0: |
16 | CM_UNIT_COST_VO | Signed Number(32,15) | DECIMAL(30,15) NOT NULL | 07/99 GMG CN800-9.0: |
17 | RECEIPT_DTTM | DateTime(26) | TIMESTAMP | Receipt Datetime |
18 | POSTED_FLAG | Character(1) | VARCHAR2(1) NOT NULL |
A flag that indicates whether or not a Receivables item has been posted. This field is automatically updated by the Receivables Update program.
N=Not Posted X=Don't Post Y=Posted |
19 | QTY_SH_RECVD | Number(16,4) | DECIMAL(15,4) NOT NULL | F_KDHIL_R87H8 062804 MLM: Added new Line Quantity Received Label |
20 | DUE_DT | Date(10) | DATE | Specifies the date that a transaction is due. It is a generic field used in multiple PeopleSoft applications including Receivables Payables and Purchasing. For example it represents the date that payment is due for a voucher or the date that a scheduled shipment is due to be received. |
21 | UNIT_MEASURE_STD | Character(3) | VARCHAR2(3) NOT NULL | Standard Unit of Measure |