CA_SHIP_CUST_VW(SQL View) |
Index Back |
---|---|
Sold-To Customer viewThis view provides the sold-to customer id for all projects that are have contract lines tied to them. |
SELECT DISTINCT DTL.CONTRACT_NUM ,DTL.CONTRACT_LINE_NUM ,PROJ.BUSINESS_UNIT_PC ,PROJ.PROJECT_ID ,DTL.SHIP_TO_CUST_ID ,CUST.NAME1 FROM PS_CA_DETAIL DTL ,PS_CA_DETAIL_PROJ PROJ ,PS_CUST_SHP_A1_VW CUST WHERE DTL.CONTRACT_NUM = PROJ.CONTRACT_NUM AND DTL.CONTRACT_LINE_NUM = PROJ.CONTRACT_LINE_NUM AND DTL.BUSINESS_UNIT_PC = PROJ.BUSINESS_UNIT_PC AND DTL.SHIP_TO_CUST_ID = CUST.CUST_ID |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | CONTRACT_NUM | Character(25) | VARCHAR2(25) NOT NULL | Contract |
2 | CONTRACT_LINE_NUM | Number(3,0) | SMALLINT NOT NULL | Contract Line Num |
3 | BUSINESS_UNIT_PC | Character(5) | VARCHAR2(5) NOT NULL | PC Business Unit |
4 | PROJECT_ID | Character(15) | VARCHAR2(15) NOT NULL | Project Id ChartField |
5 | SHIP_TO_CUST_ID | Character(15) | VARCHAR2(15) NOT NULL | Ship To Customer |
6 | NAME1 | Character(40) | VARCHAR2(40) NOT NULL | Name 1 |