CDT_SCONSUMLVW2(SQL View) |
Index Back |
---|---|
Scon hdr for customer groups |
SELECT S.SETID , CG.CUST_ID , SCONL.CNTRCT_ID , SCONL.LANGUAGE_CD , SCONL.DESCR 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 , PS_SCON_HDR_LNG SCONL 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 SCONL.SETID = SCON.SETID AND SCONL.CNTRCT_ID = SCON.CNTRCT_ID |
# | 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 | LANGUAGE_CD | Character(3) | VARCHAR2(3) NOT NULL | Language Code |
5 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |