CDT_SCONDT_VW2(SQL View) |
Index Back |
---|---|
Scon hdr for customer groups |
SELECT S.SETID , CG.CUST_ID , SCON.CNTRCT_ID , SCON.DESCR , SCON.SCON_STATUS , SCON.START_DT , SCON.END_DT FROM PS_SET_CNTRL_REC S2 , PS_CUST_GROUP_TBL GRP , PS_SET_CNTRL_REC S , PS_CUST_CGRP_LNK CG , PS_SCON_HDR SCON WHERE S.RECNAME = 'CUST_SLD_VW' AND S.SETCNTRLVALUE = SCON.SETID AND CG.SETID = S.SETID AND CG.CUSTOMER_GROUP = SCON.CUSTOMER_GROUP AND S2.RECNAME = 'CUSTGP_SCON_VW' AND S2.SETCNTRLVALUE = SCON.SETID AND GRP.SETID = S2.SETID AND GRP.CUSTOMER_GROUP = CG.CUSTOMER_GROUP AND CG.CUST_GRP_TYPE = 'SCON' AND GRP.EFF_STATUS = 'A' AND %EffdtCheck(CUST_GROUP_TBL GRP2, GRP, %CurrentDateIn) AND SCON.END_DT <= (%DateAdd(%CurrentDateIn, 30)) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |
2 | CUST_ID | Character(15) | VARCHAR2(15) NOT NULL | Uniquely identifies an organizational entity that purchases goods or services from the enterprise. Represents the sold-to customer which is the customer organization that places orders. The CUST_ID may or may not be the same as the identifiers for the bill-to and ship-to locations. |
3 | CNTRCT_ID | Character(25) | VARCHAR2(25) NOT NULL | Buying Agreement ID |
4 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
5 | SCON_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Sales Contract Status
A=Active C=Closed H=Hold X=Cancelled |
6 | START_DT | Date(10) | DATE | Start Date |
7 | END_DT | Date(10) | DATE | End Date |